Skip to content

Commit fb49ce1

Browse files
committed
Fix unit tests with --disable-metaphysicl
Without --enable-metaphysicl, that macro isn't false, it's undefined.
1 parent 1f2ea31 commit fb49ce1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/numerics/type_vector_test.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
5050
CPPUNIT_TEST( testVectorMultBase ); \
5151
CPPUNIT_TEST( testVectorAddAssignBase ); \
5252
CPPUNIT_TEST( testVectorSubAssignBase ); \
53-
if (LIBMESH_HAVE_METAPHYSICL) \
54-
CPPUNIT_TEST( testReplaceAlgebraicType );
53+
CPPUNIT_TEST( testReplaceAlgebraicType );
5554

5655

5756
using namespace libMesh;
@@ -494,9 +493,9 @@ class TypeVectorTestBase : public CppUnit::TestCase {
494493
LIBMESH_ASSERT_FP_EQUAL( 2.0 , libmesh_real(avector(2)) , TOLERANCE*TOLERANCE );
495494
}
496495

497-
#ifdef LIBMESH_HAVE_METAPHYSICL
498496
void testReplaceAlgebraicType()
499497
{
498+
#ifdef LIBMESH_HAVE_METAPHYSICL
500499
typedef typename MetaPhysicL::ReplaceAlgebraicType<
501500
std::vector<TypeVector<double>>,
502501
typename TensorTools::IncrementRank<
@@ -505,8 +504,8 @@ class TypeVectorTestBase : public CppUnit::TestCase {
505504
constexpr bool assertion =
506505
std::is_same<ReplacedType, std::vector<TensorValue<double>>>::value;
507506
CPPUNIT_ASSERT(assertion);
508-
}
509507
#endif
508+
}
510509
};
511510

512511
#endif // #ifdef __type_vector_test_h__

0 commit comments

Comments
 (0)