We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 591e066 commit 9edb7e7Copy full SHA for 9edb7e7
1 file changed
examples/miscellaneous/miscellaneous_ex17/miscellaneous_ex17.C
@@ -81,6 +81,10 @@ int main (int argc, char ** argv)
81
// Skip this 2D example if libMesh was compiled as 1D-only.
82
libmesh_example_requires(2 <= LIBMESH_DIM, "2D support");
83
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
+
88
// Create a mesh, with dimension to be overridden later, distributed
89
// across the default MPI communicator.
90
Mesh mesh(init.comm());
0 commit comments