Skip to content

Commit 9bb878d

Browse files
committed
Only testPetscBinaryRead with Real==double
They'll only read the format they're configured for, and this test file was written with type double, not float, not complex<double>, etc.
1 parent fda57de commit 9bb878d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/numerics/petsc_matrix_test.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ public:
2424
SPARSEMATRIXTEST
2525

2626
// Our repo's test files use PetscScalar==double
27-
#ifdef LIBMESH_USE_COMPLEX_NUMBERS
27+
#ifndef LIBMESH_USE_COMPLEX_NUMBERS
28+
#ifdef LIBMESH_DEFAULT_DOUBLE_PRECISION
2829
CPPUNIT_TEST(testPetscBinaryRead);
30+
#endif
2931
#endif
3032

3133
CPPUNIT_TEST(testPetscBinaryWrite);

0 commit comments

Comments
 (0)