Skip to content
Snippets Groups Projects
Commit 4239ab56 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

added ALUGRID_CONFORM as possible type and output infor.

[[Imported from SVN: r4872]]
parent 6dda674c
No related branches found
No related tags found
No related merge requests found
...@@ -10,11 +10,12 @@ AC_DEFUN([DUNE_GRID_DIMENSION],[ ...@@ -10,11 +10,12 @@ AC_DEFUN([DUNE_GRID_DIMENSION],[
during compilation (default=disabled)]),, with_grid_dim=0) during compilation (default=disabled)]),, with_grid_dim=0)
AC_ARG_WITH(grid_type, AC_ARG_WITH(grid_type,
AC_HELP_STRING([--with-grid-type= ALBERTAGRID | ALUGRID_CUBE | ALUGRID_SIMPLEX | ONEDGRID | SGRID | UGGRID | YASPGRID], AC_HELP_STRING([--with-grid-type= ALBERTAGRID | ALUGRID_CUBE | ALUGRID_SIMPLEX | ALUGRID_CONFORM | ONEDGRID | SGRID | UGGRID | YASPGRID],
[only enabled if grid-dim deliverd, sets type of grid (default=YASPGRID)]),, with_grid_type=YASPGRID) [only enabled if grid-dim deliverd, sets type of grid (default=YASPGRID)]),, with_grid_type=YASPGRID)
if test x$with_grid_dim != x0 ; then if test x$with_grid_dim != x0 ; then
echo -n "checking grid-dim and grid-type... "
# make sure that given grid dim is valid # make sure that given grid dim is valid
if test x$with_grid_dim != x1 && test x$with_grid_dim != x2 && test x$with_grid_dim != x3 ; then if test x$with_grid_dim != x1 && test x$with_grid_dim != x2 && test x$with_grid_dim != x3 ; then
AC_MSG_ERROR([Delivered grid-dim = $with_grid_dim is not valid. Valid are only 1, 2, or 3 .]) AC_MSG_ERROR([Delivered grid-dim = $with_grid_dim is not valid. Valid are only 1, 2, or 3 .])
...@@ -24,6 +25,7 @@ if test x$with_grid_dim != x0 ; then ...@@ -24,6 +25,7 @@ if test x$with_grid_dim != x0 ; then
if test $with_grid_type != "ALBERTAGRID" && if test $with_grid_type != "ALBERTAGRID" &&
test $with_grid_type != "ALUGRID_CUBE" && test $with_grid_type != "ALUGRID_CUBE" &&
test $with_grid_type != "ALUGRID_SIMPLEX" && test $with_grid_type != "ALUGRID_SIMPLEX" &&
test $with_grid_type != "ALUGRID_CONFORM" &&
test $with_grid_type != "ONEDGRID" && test $with_grid_type != "ONEDGRID" &&
test $with_grid_type != "SGRID" && test $with_grid_type != "SGRID" &&
test $with_grid_type != "UGGRID" && test $with_grid_type != "UGGRID" &&
...@@ -38,5 +40,6 @@ if test x$with_grid_dim != x0 ; then ...@@ -38,5 +40,6 @@ if test x$with_grid_dim != x0 ; then
AC_SUBST(GRIDTYPE, $with_grid_type ) AC_SUBST(GRIDTYPE, $with_grid_type )
AC_SUBST(GRIDDIM_CPPFLAGS, $griddim_cppflags) AC_SUBST(GRIDDIM_CPPFLAGS, $griddim_cppflags)
DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $griddim_cppflags" DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $griddim_cppflags"
echo "yes (GRIDDIM=$GRIDDIM and GRIDTYPE=$GRIDTYPE)"
fi fi
]) ])
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