Skip to content

Commit e8f437c

Browse files
committed
fix build if TFEL is not available
1 parent 18de2df commit e8f437c

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/TensorModifier.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* \date 01/09/2025
66
*/
77

8+
#ifdef MGIS_HAVE_TFEL
9+
810
#include "MGIS/Function/BasicLinearSpace.hxx"
911
#include "MGIS/Function/Function.hxx"
1012
#include "MGIS/Function/Tensors.hxx"
1113
#include "MGIS/Function/Tensors/TensorModifier.hxx"
1214

1315
namespace mgis::function {
1416

15-
#ifdef MGIS_HAVE_TFEL
1617

1718
static_assert(
1819
EvaluatorConcept<TensorModifier<tfel::math::stensor<3u, mgis::real>,
@@ -26,6 +27,6 @@ namespace mgis::function {
2627
FunctionView<BasicLinearSpace>>> ==
2728
6);
2829

29-
#endif /* MGIS_HAVE_TFEL */
30-
3130
} // end of namespace mgis::function
31+
32+
#endif /* MGIS_HAVE_TFEL */

src/TensorView.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
* \date 01/09/2025
66
*/
77

8+
#ifdef MGIS_HAVE_TFEL
9+
810
#include "MGIS/Function/BasicLinearSpace.hxx"
911
#include "MGIS/Function/Function.hxx"
1012
#include "MGIS/Function/Tensors.hxx"
1113
#include "MGIS/Function/Tensors/TensorView.hxx"
1214

1315
namespace mgis::function {
1416

15-
#ifdef MGIS_HAVE_TFEL
16-
1717
static_assert(
1818
EvaluatorConcept<TensorView<Function<BasicLinearSpace>,
1919
tfel::math::stensor<3u, mgis::real>>>);
@@ -26,6 +26,6 @@ namespace mgis::function {
2626
tfel::math::stensor<3u, mgis::real>>> ==
2727
6);
2828

29-
#endif /* MGIS_HAVE_TFEL */
30-
3129
} // end of namespace mgis::function
30+
31+
#endif /* MGIS_HAVE_TFEL */

0 commit comments

Comments
 (0)