diff --git a/examples/adaptivity/adaptivity_ex1/adaptivity_ex1.C b/examples/adaptivity/adaptivity_ex1/adaptivity_ex1.C index f7771718318..8f844fffd6f 100644 --- a/examples/adaptivity/adaptivity_ex1/adaptivity_ex1.C +++ b/examples/adaptivity/adaptivity_ex1/adaptivity_ex1.C @@ -65,6 +65,10 @@ int main(int argc, char ** argv) // finalized. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip adaptive examples on a non-adaptive libMesh build #ifndef LIBMESH_ENABLE_AMR libmesh_example_requires(false, "--enable-amr"); diff --git a/examples/adaptivity/adaptivity_ex2/adaptivity_ex2.C b/examples/adaptivity/adaptivity_ex2/adaptivity_ex2.C index efe424ddba5..26383d314df 100644 --- a/examples/adaptivity/adaptivity_ex2/adaptivity_ex2.C +++ b/examples/adaptivity/adaptivity_ex2/adaptivity_ex2.C @@ -119,6 +119,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + #ifndef LIBMESH_ENABLE_AMR libmesh_example_requires(false, "--enable-amr"); #else diff --git a/examples/adaptivity/adaptivity_ex3/adaptivity_ex3.C b/examples/adaptivity/adaptivity_ex3/adaptivity_ex3.C index 696d5e2b246..ec290f3213b 100644 --- a/examples/adaptivity/adaptivity_ex3/adaptivity_ex3.C +++ b/examples/adaptivity/adaptivity_ex3/adaptivity_ex3.C @@ -118,6 +118,10 @@ int main(int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Single precision is inadequate for p refinement libmesh_example_requires(sizeof(Real) > 4, "--disable-singleprecision"); diff --git a/examples/adaptivity/adaptivity_ex4/adaptivity_ex4.C b/examples/adaptivity/adaptivity_ex4/adaptivity_ex4.C index aa8b1fae933..6514a4b1038 100644 --- a/examples/adaptivity/adaptivity_ex4/adaptivity_ex4.C +++ b/examples/adaptivity/adaptivity_ex4/adaptivity_ex4.C @@ -152,6 +152,10 @@ int main(int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Adaptive constraint calculations for fine Hermite elements seems // to require half-decent precision #ifdef LIBMESH_DEFAULT_SINGLE_PRECISION diff --git a/examples/adaptivity/adaptivity_ex5/adaptivity_ex5.C b/examples/adaptivity/adaptivity_ex5/adaptivity_ex5.C index 28644b8121e..417aceffe1a 100644 --- a/examples/adaptivity/adaptivity_ex5/adaptivity_ex5.C +++ b/examples/adaptivity/adaptivity_ex5/adaptivity_ex5.C @@ -129,6 +129,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip this 2D example if libMesh was compiled as 1D-only. libmesh_example_requires(2 <= LIBMESH_DIM, "2D support"); diff --git a/examples/adjoints/adjoints_ex1/adjoints_ex1.C b/examples/adjoints/adjoints_ex1/adjoints_ex1.C index 5a4447fbe47..ede061d8911 100644 --- a/examples/adjoints/adjoints_ex1/adjoints_ex1.C +++ b/examples/adjoints/adjoints_ex1/adjoints_ex1.C @@ -236,6 +236,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip adaptive examples on a non-adaptive libMesh build #ifndef LIBMESH_ENABLE_AMR libmesh_example_requires(false, "--enable-amr"); diff --git a/examples/adjoints/adjoints_ex2/adjoints_ex2.C b/examples/adjoints/adjoints_ex2/adjoints_ex2.C index 340facabda9..d18346288f4 100644 --- a/examples/adjoints/adjoints_ex2/adjoints_ex2.C +++ b/examples/adjoints/adjoints_ex2/adjoints_ex2.C @@ -236,6 +236,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip adaptive examples on a non-adaptive libMesh build #ifndef LIBMESH_ENABLE_AMR libmesh_example_requires(false, "--enable-amr"); diff --git a/examples/adjoints/adjoints_ex4/adjoints_ex4.C b/examples/adjoints/adjoints_ex4/adjoints_ex4.C index 48809e71e25..7286db358d6 100644 --- a/examples/adjoints/adjoints_ex4/adjoints_ex4.C +++ b/examples/adjoints/adjoints_ex4/adjoints_ex4.C @@ -205,6 +205,10 @@ int main (int argc, char** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip adaptive examples on a non-adaptive libMesh build #ifndef LIBMESH_ENABLE_AMR libmesh_example_requires(false, "--enable-amr"); diff --git a/examples/fem_system/fem_system_ex1/fem_system_ex1.C b/examples/fem_system/fem_system_ex1/fem_system_ex1.C index 375f1670ba3..cdcc74fb722 100644 --- a/examples/fem_system/fem_system_ex1/fem_system_ex1.C +++ b/examples/fem_system/fem_system_ex1/fem_system_ex1.C @@ -55,6 +55,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // This example fails without at least double precision FP #ifdef LIBMESH_DEFAULT_SINGLE_PRECISION libmesh_example_requires(false, "--disable-singleprecision"); diff --git a/examples/fem_system/fem_system_ex2/fem_system_ex2.C b/examples/fem_system/fem_system_ex2/fem_system_ex2.C index ba54f7d24b0..9ee6a5bed37 100644 --- a/examples/fem_system/fem_system_ex2/fem_system_ex2.C +++ b/examples/fem_system/fem_system_ex2/fem_system_ex2.C @@ -149,6 +149,10 @@ int main(int argc, char ** argv) // Initialize libMesh and any dependent libraries LibMeshInit init(argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip this example if we do not meet certain requirements #ifndef LIBMESH_HAVE_VTK libmesh_example_requires(false, "--enable-vtk"); diff --git a/examples/fem_system/fem_system_ex3/fem_system_ex3.C b/examples/fem_system/fem_system_ex3/fem_system_ex3.C index 2075e686c9a..17f947a8846 100644 --- a/examples/fem_system/fem_system_ex3/fem_system_ex3.C +++ b/examples/fem_system/fem_system_ex3/fem_system_ex3.C @@ -60,6 +60,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Parse the input file GetPot infile("fem_system_ex3.in"); diff --git a/examples/fem_system/fem_system_ex4/fem_system_ex4.C b/examples/fem_system/fem_system_ex4/fem_system_ex4.C index 3b34bcc8b5d..63aa10cf8cb 100644 --- a/examples/fem_system/fem_system_ex4/fem_system_ex4.C +++ b/examples/fem_system/fem_system_ex4/fem_system_ex4.C @@ -59,6 +59,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + #ifndef LIBMESH_ENABLE_AMR libmesh_example_requires(false, "--enable-amr"); #else diff --git a/examples/introduction/introduction_ex2/introduction_ex2.C b/examples/introduction/introduction_ex2/introduction_ex2.C index 2450b10e2fe..9a52e881fd8 100644 --- a/examples/introduction/introduction_ex2/introduction_ex2.C +++ b/examples/introduction/introduction_ex2/introduction_ex2.C @@ -71,6 +71,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 requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // A brief message to the user to inform her of the // exact name of the program being run, and its command line. libMesh::out << "Running " << argv[0]; diff --git a/examples/introduction/introduction_ex3/introduction_ex3.C b/examples/introduction/introduction_ex3/introduction_ex3.C index a052a93db0e..d54c3f0105d 100644 --- a/examples/introduction/introduction_ex3/introduction_ex3.C +++ b/examples/introduction/introduction_ex3/introduction_ex3.C @@ -81,6 +81,10 @@ int main (int argc, char ** argv) // Initialize libraries, like in example 2. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Brief message to the user regarding the program name // and command line arguments. libMesh::out << "Running " << argv[0]; diff --git a/examples/introduction/introduction_ex4/introduction_ex4.C b/examples/introduction/introduction_ex4/introduction_ex4.C index 45b7948ad17..46e12237aee 100644 --- a/examples/introduction/introduction_ex4/introduction_ex4.C +++ b/examples/introduction/introduction_ex4/introduction_ex4.C @@ -118,6 +118,10 @@ int main (int argc, char ** argv) // Initialize libMesh and any dependent libaries, like in example 2. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Declare a performance log for the main program // PerfLog perf_main("Main Program"); diff --git a/examples/introduction/introduction_ex5/introduction_ex5.C b/examples/introduction/introduction_ex5/introduction_ex5.C index 31e16ecf83a..f19d742f780 100644 --- a/examples/introduction/introduction_ex5/introduction_ex5.C +++ b/examples/introduction/introduction_ex5/introduction_ex5.C @@ -100,6 +100,10 @@ int main (int argc, char ** argv) // Initialize libMesh and any dependent libaries, like in example 2. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Check for proper usage. The quadrature rule // must be given at run time. if (argc < 3) diff --git a/examples/miscellaneous/miscellaneous_ex10/miscellaneous_ex10.C b/examples/miscellaneous/miscellaneous_ex10/miscellaneous_ex10.C index f4975bfc224..848ba361aae 100644 --- a/examples/miscellaneous/miscellaneous_ex10/miscellaneous_ex10.C +++ b/examples/miscellaneous/miscellaneous_ex10/miscellaneous_ex10.C @@ -73,6 +73,10 @@ int main (int argc, char ** argv) START_LOG("Initialize and create cubes", "main"); LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Create a GetPot object to parse the command line GetPot command_line (argc, argv); diff --git a/examples/miscellaneous/miscellaneous_ex11/miscellaneous_ex11.C b/examples/miscellaneous/miscellaneous_ex11/miscellaneous_ex11.C index cb664bc796f..55919a4ee94 100644 --- a/examples/miscellaneous/miscellaneous_ex11/miscellaneous_ex11.C +++ b/examples/miscellaneous/miscellaneous_ex11/miscellaneous_ex11.C @@ -79,6 +79,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip this 3D example if libMesh was compiled as 1D/2D-only. libmesh_example_requires (3 == LIBMESH_DIM, "3D support"); diff --git a/examples/miscellaneous/miscellaneous_ex5/miscellaneous_ex5.C b/examples/miscellaneous/miscellaneous_ex5/miscellaneous_ex5.C index 2fadd141ccf..fe6395a877c 100644 --- a/examples/miscellaneous/miscellaneous_ex5/miscellaneous_ex5.C +++ b/examples/miscellaneous/miscellaneous_ex5/miscellaneous_ex5.C @@ -500,6 +500,10 @@ int main (int argc, char** argv) { LibMeshInit init(argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip adaptive examples on a non-adaptive libMesh build #ifndef LIBMESH_ENABLE_AMR libmesh_example_requires(false, "--enable-amr"); diff --git a/examples/reduced_basis/reduced_basis_ex1/reduced_basis_ex1.C b/examples/reduced_basis/reduced_basis_ex1/reduced_basis_ex1.C index ceb43e5b960..73e80b6584f 100644 --- a/examples/reduced_basis/reduced_basis_ex1/reduced_basis_ex1.C +++ b/examples/reduced_basis/reduced_basis_ex1/reduced_basis_ex1.C @@ -78,6 +78,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + #if !defined(LIBMESH_HAVE_XDR) // We need XDR support to write out reduced bases libmesh_example_requires(false, "--enable-xdr"); diff --git a/examples/reduced_basis/reduced_basis_ex4/reduced_basis_ex4.C b/examples/reduced_basis/reduced_basis_ex4/reduced_basis_ex4.C index 31e2c126f1b..84f1f84055c 100644 --- a/examples/reduced_basis/reduced_basis_ex4/reduced_basis_ex4.C +++ b/examples/reduced_basis/reduced_basis_ex4/reduced_basis_ex4.C @@ -59,6 +59,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + #if !defined(LIBMESH_HAVE_XDR) // We need XDR support to write out reduced bases libmesh_example_requires(false, "--enable-xdr"); diff --git a/examples/reduced_basis/reduced_basis_ex5/reduced_basis_ex5.C b/examples/reduced_basis/reduced_basis_ex5/reduced_basis_ex5.C index 84e2383fad6..0f941c0563b 100644 --- a/examples/reduced_basis/reduced_basis_ex5/reduced_basis_ex5.C +++ b/examples/reduced_basis/reduced_basis_ex5/reduced_basis_ex5.C @@ -84,6 +84,10 @@ int main(int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + #if !defined(LIBMESH_HAVE_XDR) // We need XDR support to write out reduced bases libmesh_example_requires(false, "--enable-xdr"); diff --git a/examples/reduced_basis/reduced_basis_ex6/reduced_basis_ex6.C b/examples/reduced_basis/reduced_basis_ex6/reduced_basis_ex6.C index 3a671c8ae26..11c004affcb 100644 --- a/examples/reduced_basis/reduced_basis_ex6/reduced_basis_ex6.C +++ b/examples/reduced_basis/reduced_basis_ex6/reduced_basis_ex6.C @@ -112,6 +112,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + #if !defined(LIBMESH_HAVE_XDR) // We need XDR support to write out reduced bases libmesh_example_requires(false, "--enable-xdr"); diff --git a/examples/subdomains/subdomains_ex2/subdomains_ex2.C b/examples/subdomains/subdomains_ex2/subdomains_ex2.C index 7382ed6c1ee..d61c469f28c 100644 --- a/examples/subdomains/subdomains_ex2/subdomains_ex2.C +++ b/examples/subdomains/subdomains_ex2/subdomains_ex2.C @@ -93,6 +93,10 @@ int main (int argc, char ** argv) // Initialize libMesh and any dependent libaries, like in example 2. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Declare a performance log for the main program // PerfLog perf_main("Main Program"); diff --git a/examples/systems_of_equations/systems_of_equations_ex1/systems_of_equations_ex1.C b/examples/systems_of_equations/systems_of_equations_ex1/systems_of_equations_ex1.C index 716ad582abb..cad429b6950 100644 --- a/examples/systems_of_equations/systems_of_equations_ex1/systems_of_equations_ex1.C +++ b/examples/systems_of_equations/systems_of_equations_ex1/systems_of_equations_ex1.C @@ -69,6 +69,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip this 2D example if libMesh was compiled as 1D-only. libmesh_example_requires(2 <= LIBMESH_DIM, "2D support"); diff --git a/examples/systems_of_equations/systems_of_equations_ex2/systems_of_equations_ex2.C b/examples/systems_of_equations/systems_of_equations_ex2/systems_of_equations_ex2.C index 72474767b1d..14ddae8cf9f 100644 --- a/examples/systems_of_equations/systems_of_equations_ex2/systems_of_equations_ex2.C +++ b/examples/systems_of_equations/systems_of_equations_ex2/systems_of_equations_ex2.C @@ -93,6 +93,10 @@ int main (int argc, char** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip this 2D example if libMesh was compiled as 1D-only. libmesh_example_requires(2 <= LIBMESH_DIM, "2D support"); diff --git a/examples/systems_of_equations/systems_of_equations_ex3/systems_of_equations_ex3.C b/examples/systems_of_equations/systems_of_equations_ex3/systems_of_equations_ex3.C index f9b1dc38b00..d76b348da85 100644 --- a/examples/systems_of_equations/systems_of_equations_ex3/systems_of_equations_ex3.C +++ b/examples/systems_of_equations/systems_of_equations_ex3/systems_of_equations_ex3.C @@ -81,6 +81,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Skip this 2D example if libMesh was compiled as 1D-only. libmesh_example_requires(2 <= LIBMESH_DIM, "2D support"); diff --git a/examples/systems_of_equations/systems_of_equations_ex4/systems_of_equations_ex4.C b/examples/systems_of_equations/systems_of_equations_ex4/systems_of_equations_ex4.C index be485a45f42..c00948b9c98 100644 --- a/examples/systems_of_equations/systems_of_equations_ex4/systems_of_equations_ex4.C +++ b/examples/systems_of_equations/systems_of_equations_ex4/systems_of_equations_ex4.C @@ -77,6 +77,10 @@ int main (int argc, char ** argv) // Initialize libMesh and any dependent libaries LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Initialize the cantilever mesh const unsigned int dim = 2; diff --git a/examples/systems_of_equations/systems_of_equations_ex5/systems_of_equations_ex5.C b/examples/systems_of_equations/systems_of_equations_ex5/systems_of_equations_ex5.C index bcfae049773..bb86dea039b 100644 --- a/examples/systems_of_equations/systems_of_equations_ex5/systems_of_equations_ex5.C +++ b/examples/systems_of_equations/systems_of_equations_ex5/systems_of_equations_ex5.C @@ -81,6 +81,10 @@ int main (int argc, char ** argv) // Initialize libMesh and any dependent libaries LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // This example NaNs with the Eigen sparse linear solvers libmesh_example_requires(libMesh::default_solver_package() != EIGEN_SOLVERS, "--enable-petsc or --enable-laspack"); diff --git a/examples/systems_of_equations/systems_of_equations_ex6/systems_of_equations_ex6.C b/examples/systems_of_equations/systems_of_equations_ex6/systems_of_equations_ex6.C index d2714f56b3d..69aa7c57018 100644 --- a/examples/systems_of_equations/systems_of_equations_ex6/systems_of_equations_ex6.C +++ b/examples/systems_of_equations/systems_of_equations_ex6/systems_of_equations_ex6.C @@ -430,6 +430,10 @@ int main (int argc, char ** argv) // Initialize libMesh and any dependent libraries LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Initialize the cantilever mesh const unsigned int dim = 3; diff --git a/examples/transient/transient_ex1/transient_ex1.C b/examples/transient/transient_ex1/transient_ex1.C index dc00da68d3c..d86202a161c 100644 --- a/examples/transient/transient_ex1/transient_ex1.C +++ b/examples/transient/transient_ex1/transient_ex1.C @@ -105,6 +105,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // This example requires Adaptive Mesh Refinement support - although // it only refines uniformly, the refinement code used is the same // underneath diff --git a/examples/transient/transient_ex2/transient_ex2.C b/examples/transient/transient_ex2/transient_ex2.C index ed1d6ec77de..716bc09b318 100644 --- a/examples/transient/transient_ex2/transient_ex2.C +++ b/examples/transient/transient_ex2/transient_ex2.C @@ -101,6 +101,10 @@ int main (int argc, char** argv) // Initialize libraries, like in example 2. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Check for proper usage. if (argc < 2) libmesh_error_msg("Usage: " << argv[0] << " [meshfile]"); diff --git a/examples/vector_fe/vector_fe_ex1/vector_fe_ex1.C b/examples/vector_fe/vector_fe_ex1/vector_fe_ex1.C index c4a2b9a6716..3c6201016b0 100644 --- a/examples/vector_fe/vector_fe_ex1/vector_fe_ex1.C +++ b/examples/vector_fe/vector_fe_ex1/vector_fe_ex1.C @@ -80,6 +80,10 @@ int main (int argc, char ** argv) // Initialize libraries. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Brief message to the user regarding the program name // and command line arguments. libMesh::out << "Running " << argv[0]; diff --git a/examples/vector_fe/vector_fe_ex2/vector_fe_ex2.C b/examples/vector_fe/vector_fe_ex2/vector_fe_ex2.C index 33db55cd868..8aa7f072149 100644 --- a/examples/vector_fe/vector_fe_ex2/vector_fe_ex2.C +++ b/examples/vector_fe/vector_fe_ex2/vector_fe_ex2.C @@ -49,6 +49,10 @@ int main (int argc, char** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Parse the input file GetPot infile("vector_fe_ex2.in"); diff --git a/examples/vector_fe/vector_fe_ex3/vector_fe_ex3.C b/examples/vector_fe/vector_fe_ex3/vector_fe_ex3.C index 80346c8e894..9cc141fc171 100644 --- a/examples/vector_fe/vector_fe_ex3/vector_fe_ex3.C +++ b/examples/vector_fe/vector_fe_ex3/vector_fe_ex3.C @@ -49,6 +49,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Parse the input file GetPot infile("vector_fe_ex3.in"); diff --git a/examples/vector_fe/vector_fe_ex4/vector_fe_ex4.C b/examples/vector_fe/vector_fe_ex4/vector_fe_ex4.C index 00d1859e064..e45365ff686 100644 --- a/examples/vector_fe/vector_fe_ex4/vector_fe_ex4.C +++ b/examples/vector_fe/vector_fe_ex4/vector_fe_ex4.C @@ -49,6 +49,10 @@ int main (int argc, char ** argv) // Initialize libMesh. LibMeshInit init (argc, argv); + // This example requires a linear solver package. + libmesh_example_requires(libMesh::default_solver_package() != INVALID_SOLVER_PACKAGE, + "--enable-petsc, --enable-trilinos, or --enable-eigen"); + // Parse the input file GetPot infile("vector_fe_ex4.in");