Skip to content

Commit 9edb7e7

Browse files
committed
Skip misc_ex17 when PETSc is not enabled
1 parent 591e066 commit 9edb7e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/miscellaneous/miscellaneous_ex17/miscellaneous_ex17.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ int main (int argc, char ** argv)
8181
// Skip this 2D example if libMesh was compiled as 1D-only.
8282
libmesh_example_requires(2 <= LIBMESH_DIM, "2D support");
8383

84+
// This example is meant to test a PETSc-specific feature, so let's just skip it if
85+
// libmesh is not built with Petsc support.
86+
libmesh_example_requires(libMesh::default_solver_package() == PETSC_SOLVERS, "--enable-petsc");
87+
8488
// Create a mesh, with dimension to be overridden later, distributed
8589
// across the default MPI communicator.
8690
Mesh mesh(init.comm());

0 commit comments

Comments
 (0)