Commit 87d56bdb authored by Christoph Grüninger's avatar Christoph Grüninger

[finiteelements] Add error message when Alberta 2d is missing.

Add flags to enable Alberta with CMake.
parent 664c923d
......@@ -53,6 +53,7 @@ set(TESTS
add_executable(adaptivefinitevolume adaptivefinitevolume.cc)
add_dune_all_flags(adaptivefinitevolume)
add_dune_alberta_flags(adaptivefinitevolume WORLDDIM 2)
add_dune_mpi_flags(adaptivefinitevolume)
add_executable(adaptiveintegration adaptiveintegration.cc)
......
......@@ -270,7 +270,7 @@ public:
int main(int argc, char** argv)
{
#if HAVE_ALBERTA && ALBERTA_DIM==2
static const int dim = 2; /*@\label{fem:dim}@*/
static const int dim = 2; /*@\label{fem:dim}@*/
const char* gridfile = "grids/2dgrid.al"; /*@\label{fem:file}@*/
typedef Dune::AlbertaGrid<dim,dim> GridType;
......@@ -311,5 +311,7 @@ int main(int argc, char** argv)
#else
std::cout << "for solving and visualizing dune-istl is necessary." << "\n";
#endif // HAVE_DUNE_ISTL
#else
std::cerr << "You need Alberta in 2d for this program." << std::endl;
#endif // HAVE_ALBERTA && ALBERTA_DIM==2
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment