Skip to content

Commit

Permalink
Disable misc_ex11 with --disable-second
Browse files Browse the repository at this point in the history
  • Loading branch information
roystgnr committed Apr 22, 2014
1 parent 133d245 commit 1ea7b56
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/miscellaneous/miscellaneous_ex11/miscellaneous_ex11.C
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@
// Bring in everything from the libMesh namespace
using namespace libMesh;

#ifdef LIBMESH_ENABLE_SECOND
// Function prototype. This is the function that will assemble
// the stiffness matrix and the right-hand-side vector ready
// for solution.
void assemble_shell (EquationSystems& es, const std::string& system_name);
#endif

// Begin the main program.
int main (int argc, char** argv)
Expand All @@ -86,6 +88,11 @@ int main (int argc, char** argv)
libmesh_example_assert(false, "--enable-amr");
#else

// Skip this example without --enable-second; requires d2phi
#ifndef LIBMESH_ENABLE_SECOND
libmesh_example_assert(false, "--enable-second");
#else

// Create a 2D mesh distributed across the default MPI communicator.
// Subdivision surfaces do not appear to work with ParallelMesh yet.
SerialMesh mesh (init.comm(), 2);
Expand Down Expand Up @@ -224,12 +231,16 @@ int main (int argc, char** argv)
std::cout << "z-displacement of the center point: " << w << std::endl;
std::cout << "Analytic solution for pure bending: " << w_analytic << std::endl;

#endif // #ifdef LIBMESH_ENABLE_SECOND

#endif // #ifdef LIBMESH_ENABLE_AMR

// All done.
return 0;
}

#ifdef LIBMESH_ENABLE_SECOND

// We now define the matrix and rhs vector assembly function
// for the shell system. This function implements the
// linear Kirchhoff-Love theory for thin shells. At the
Expand Down Expand Up @@ -624,3 +635,5 @@ void assemble_shell (EquationSystems& es, const std::string& system_name)
}
} // end of ghost element loop
}

#endif // LIBMESH_ENABLE_SECOND

0 comments on commit 1ea7b56

Please sign in to comment.