Skip to content
Snippets Groups Projects
Commit e84fb168 authored by Timo Koch's avatar Timo Koch
Browse files

[el2p] Fix the test if pdelab is not present

The test has to have a main function. The test should
be skipped if pdelab is not present.
parent 111c9296
No related branches found
No related tags found
1 merge request!35[el2p] Fix the test if pdelab is not present
......@@ -24,10 +24,11 @@
#include <config.h>
#if HAVE_DUNE_PDELAB
#include "el2pproblem.hh"
#endif
#include <dune/common/precision.hh>
#include <dune/common/version.hh>
#include "el2pproblem.hh"
#include <dumux/common/start.hh>
/*!
......@@ -63,13 +64,13 @@ void usage(const char *progName, const std::string &errorMsg)
////////////////////////
int main(int argc, char** argv)
{
#if HAVE_DUNE_PDELAB
typedef TTAG(El2P_TestProblem) TypeTag;
return Dumux::start<TypeTag>(argc, argv, usage);
}
#else // HAVE_DUNE_PDELAB
#warning You need to have dune-pdelab installed and patched to run this test.
std::cerr << "You need to have dune-pdelab installed and patched to run this test." << std::endl;
return 77;
#endif // HAVE_DUNE_PDELAB
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment