Skip to content

Commit b2e0711

Browse files
committed
Fix complex-enabled bug in unit test.
Fixes one of the issues reported in #2071. Note: our current CIVET complex testing is not running or compiling the unit tests, so this slipped through the cracks. I have a different PR in that will hopefully address the unit testing issue so this won't happen again. Refs #2029.
1 parent ecdc14b commit b2e0711

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

tests/mesh/mesh_function.C

+10-6
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,16 @@ public:
120120
for (const auto & node : mesh.local_node_ptr_range())
121121
{
122122
(*mesh_function)(*node, /*time=*/ 0., vec_values);
123-
Real mesh_function_value = projection_function(*node,
124-
es.parameters,
125-
dummy,
126-
dummy);
127-
128-
CPPUNIT_ASSERT_DOUBLES_EQUAL(vec_values(0), mesh_function_value, TOLERANCE*TOLERANCE);
123+
Number mesh_function_value =
124+
projection_function(*node,
125+
es.parameters,
126+
dummy,
127+
dummy);
128+
129+
CPPUNIT_ASSERT_DOUBLES_EQUAL
130+
(libmesh_real(vec_values(0)),
131+
libmesh_real(mesh_function_value),
132+
TOLERANCE*TOLERANCE);
129133
}
130134
}
131135
#endif // LIBMESH_ENABLE_AMR

0 commit comments

Comments
 (0)