Permalink
Browse files

graceful exit

  • Loading branch information...
1 parent ced4b74 commit 26a3a5739a97782076788c88ac6d73ae6cc6c194 @benkirk benkirk committed Mar 19, 2013
Showing with 4 additions and 5 deletions.
  1. +4 −5 examples/miscellaneous/miscellaneous_ex8/miscellaneous_ex8.C
@@ -113,13 +113,12 @@ void init_sys(EquationSystems& es,
int main(int argc, char** argv)
{
// Skip this example if we do not meet certain requirements
-#if LIBMESH_DIM != 3
- std::cout << "This example requires 3D support - skipping.\n";
- return 77;
+ libmesh_example_assert(3 <= LIBMESH_DIM, "3D support");
+#ifndef LIBMESH_HAVE_EIGEN
+ libmesh_example_assert(false, "--enable-eigen");
#endif
#ifndef LIBMESH_HAVE_ZLIB_H
- std::cout << "This example requires zlib support - skipping.\n";
- return 77;
+ libmesh_example_assert(false, "--enable-zlib");
#endif
// Initialize libMesh.

0 comments on commit 26a3a57

Please sign in to comment.