Skip to content
Snippets Groups Projects
Commit 76195d07 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix data types of fromDualCell functions

The constness check was made one the wrong one (typenames were inverted)
parent 58cfc824
No related branches found
No related tags found
1 merge request!133Simplify access functions to the number of items
...@@ -116,8 +116,8 @@ class PrimalToDiamondDualConnectivityDataMapper : public IPrimalToDualConnectivi ...@@ -116,8 +116,8 @@ class PrimalToDiamondDualConnectivityDataMapper : public IPrimalToDualConnectivi
template <typename OriginDataType, typename DestinationDataType, ItemType destination_face_type> template <typename OriginDataType, typename DestinationDataType, ItemType destination_face_type>
void void
fromDualCell(const CellValue<DestinationDataType>& dual_cell_value, fromDualCell(const CellValue<OriginDataType>& dual_cell_value,
const ItemValue<OriginDataType, destination_face_type>& primal_face_value) const const ItemValue<DestinationDataType, destination_face_type>& primal_face_value) const
{ {
static_assert(not std::is_const_v<DestinationDataType>, "destination data type must not be constant"); static_assert(not std::is_const_v<DestinationDataType>, "destination data type must not be constant");
static_assert(std::is_same_v<std::remove_const_t<OriginDataType>, DestinationDataType>, "incompatible types"); static_assert(std::is_same_v<std::remove_const_t<OriginDataType>, DestinationDataType>, "incompatible types");
......
...@@ -142,8 +142,8 @@ class PrimalToDual1DConnectivityDataMapper : public IPrimalToDualConnectivityDat ...@@ -142,8 +142,8 @@ class PrimalToDual1DConnectivityDataMapper : public IPrimalToDualConnectivityDat
template <typename OriginDataType, typename DestinationDataType, ItemType destination_node_type> template <typename OriginDataType, typename DestinationDataType, ItemType destination_node_type>
void void
fromDualCell(const CellValue<DestinationDataType>& dual_cell_value, fromDualCell(const CellValue<OriginDataType>& dual_cell_value,
const ItemValue<OriginDataType, destination_node_type>& primal_node_value) const const ItemValue<DestinationDataType, destination_node_type>& primal_node_value) const
{ {
static_assert(is_node_in_1d_v<destination_node_type>, "invalid destination node type"); static_assert(is_node_in_1d_v<destination_node_type>, "invalid destination node type");
......
...@@ -159,8 +159,8 @@ class PrimalToMedianDualConnectivityDataMapper : public IPrimalToDualConnectivit ...@@ -159,8 +159,8 @@ class PrimalToMedianDualConnectivityDataMapper : public IPrimalToDualConnectivit
template <typename OriginDataType, typename DestinationDataType> template <typename OriginDataType, typename DestinationDataType>
void void
fromDualCell(const CellValue<DestinationDataType>& dual_cell_value, fromDualCell(const CellValue<OriginDataType>& dual_cell_value,
const NodeValue<OriginDataType>& primal_node_value) const const NodeValue<DestinationDataType>& primal_node_value) const
{ {
static_assert(not std::is_const_v<DestinationDataType>, "destination data type must not be constant"); static_assert(not std::is_const_v<DestinationDataType>, "destination data type must not be constant");
static_assert(std::is_same_v<std::remove_const_t<OriginDataType>, DestinationDataType>, "incompatible types"); static_assert(std::is_same_v<std::remove_const_t<OriginDataType>, DestinationDataType>, "incompatible types");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment