Skip to content

Commit

Permalink
Merge pull request #4056 from jwpeterson/fix_misc_ex17_disable_optional
Browse files Browse the repository at this point in the history
Skip misc_ex17 when PETSc is not enabled
  • Loading branch information
roystgnr authored Jan 22, 2025
2 parents 591e066 + 45f092b commit 60d918d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 2 additions & 5 deletions doc/html/src/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h1>A Series of Example Programs</h1>

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

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

</ol> </li>

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

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

<li>
<L1><a href="examples/miscellaneous_ex17.html">Demonstrating mix of preallocated/hash-table matrix assemblies</a>
</L1>
</li>
<li><L1><a href="examples/miscellaneous_ex17.html">Demonstrating mix of preallocated/hash-table matrix assemblies</a></L1></li>

</ol> </li>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ int main (int argc, char ** argv)
// Skip this 2D example if libMesh was compiled as 1D-only.
libmesh_example_requires(2 <= LIBMESH_DIM, "2D support");

// This example is meant to test a PETSc-specific feature, so let's just skip it if
// libmesh is not built with Petsc support.
libmesh_example_requires(libMesh::default_solver_package() == PETSC_SOLVERS, "--enable-petsc");

// Create a mesh, with dimension to be overridden later, distributed
// across the default MPI communicator.
Mesh mesh(init.comm());
Expand Down

0 comments on commit 60d918d

Please sign in to comment.