Skip to content

Commit 60d918d

Browse files
authored
Merge pull request #4056 from jwpeterson/fix_misc_ex17_disable_optional
Skip misc_ex17 when PETSc is not enabled
2 parents 591e066 + 45f092b commit 60d918d

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

doc/html/src/examples.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ <h1>A Series of Example Programs</h1>
164164

165165
<li><L1><a href="examples/vector_fe_ex8.html">Hybridized Local Discontinuous Galerkin Elements for Poisson</a></L1></li>
166166

167-
<li><L1><a href="examples/vector_fe_ex8.html">Hybridized Local Discontinuous Galerkin Elements for Navier-Stokes</a></L1></li>
167+
<li><L1><a href="examples/vector_fe_ex9.html">Hybridized Local Discontinuous Galerkin Elements for Navier-Stokes</a></L1></li>
168168

169169
</ol> </li>
170170

@@ -203,10 +203,7 @@ <h1>A Series of Example Programs</h1>
203203

204204
<li><L1><a href="examples/miscellaneous_ex16.html">Static Condensation with Second Order Lagrange Elements</a></L1></li>
205205

206-
<li>
207-
<L1><a href="examples/miscellaneous_ex17.html">Demonstrating mix of preallocated/hash-table matrix assemblies</a>
208-
</L1>
209-
</li>
206+
<li><L1><a href="examples/miscellaneous_ex17.html">Demonstrating mix of preallocated/hash-table matrix assemblies</a></L1></li>
210207

211208
</ol> </li>
212209

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)