Skip to content
Snippets Groups Projects
Commit 19628896 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Fix logic error in an assertion

The CI system found this for me, because it only goes wrong
when dune-foamgrid is not available.
parent 208fa5c0
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -133,7 +133,7 @@ int main (int argc, char *argv[]) ...@@ -133,7 +133,7 @@ int main (int argc, char *argv[])
#if HAVE_DUNE_FOAMGRID #if HAVE_DUNE_FOAMGRID
typedef std::conditional<dim==1 or dim!=dimworld,FoamGrid<dim,dimworld>,UGGrid<dim> >::type GridType; typedef std::conditional<dim==1 or dim!=dimworld,FoamGrid<dim,dimworld>,UGGrid<dim> >::type GridType;
#else #else
static_assert(dim!=dimworld, "You need to have dune-foamgrid installed for dim != dimworld!"); static_assert(dim==dimworld, "You need to have dune-foamgrid installed for dim != dimworld!");
typedef std::conditional<dim==1,OneDGrid<dim>,UGGrid<dim> >::type GridType; typedef std::conditional<dim==1,OneDGrid<dim>,UGGrid<dim> >::type GridType;
#endif #endif
......
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