From 9edb7e7c9760ce32f9d706812d0d68a57a0f9cc2 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Tue, 21 Jan 2025 15:23:46 -0600 Subject: [PATCH 1/3] Skip misc_ex17 when PETSc is not enabled --- .../miscellaneous/miscellaneous_ex17/miscellaneous_ex17.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/miscellaneous/miscellaneous_ex17/miscellaneous_ex17.C b/examples/miscellaneous/miscellaneous_ex17/miscellaneous_ex17.C index e0d3f8996c..f9b1d9e5e5 100644 --- a/examples/miscellaneous/miscellaneous_ex17/miscellaneous_ex17.C +++ b/examples/miscellaneous/miscellaneous_ex17/miscellaneous_ex17.C @@ -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()); From 90e43448a5c4836a5d33d0b030cd79f816ebd817 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Tue, 21 Jan 2025 15:36:08 -0600 Subject: [PATCH 2/3] Fix wrong link for vector_fe_ex9 --- doc/html/src/examples.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/html/src/examples.html b/doc/html/src/examples.html index 2a2cf7b5d2..7e3265e7cc 100644 --- a/doc/html/src/examples.html +++ b/doc/html/src/examples.html @@ -164,7 +164,7 @@

A Series of Example Programs

  • Hybridized Local Discontinuous Galerkin Elements for Poisson
  • -
  • Hybridized Local Discontinuous Galerkin Elements for Navier-Stokes
  • +
  • Hybridized Local Discontinuous Galerkin Elements for Navier-Stokes
  • From 45f092b6ded98812d382992f2fcdd182348c7214 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Tue, 21 Jan 2025 15:37:41 -0600 Subject: [PATCH 3/3] Keep example html link on single line Not strictly necessary, but I prefer this since it matches how all the other examples are formatted. --- doc/html/src/examples.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/html/src/examples.html b/doc/html/src/examples.html index 7e3265e7cc..1074897cb5 100644 --- a/doc/html/src/examples.html +++ b/doc/html/src/examples.html @@ -203,10 +203,7 @@

    A Series of Example Programs

  • Static Condensation with Second Order Lagrange Elements
  • -
  • - Demonstrating mix of preallocated/hash-table matrix assemblies - -
  • +
  • Demonstrating mix of preallocated/hash-table matrix assemblies