Commit d829751c authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix whitespace issues in configure.ac

parent 0eb0cc6a
......@@ -1493,7 +1493,7 @@ case "$with_subgrid" in
with_subgrid_feedback=GEAR
with_subgrid_black_holes=none
with_subgrid_task_order=GEAR
with_subgrid_sink=none
with_subgrid_sink=none
enable_fof=no
;;
QLA)
......@@ -1506,7 +1506,7 @@ case "$with_subgrid" in
with_subgrid_feedback=none
with_subgrid_black_holes=none
with_subgrid_task_order=default
with_subgrid_sink=none
with_subgrid_sink=none
enable_fof=no
;;
EAGLE)
......@@ -1519,7 +1519,7 @@ case "$with_subgrid" in
with_subgrid_feedback=EAGLE
with_subgrid_black_holes=EAGLE
with_subgrid_task_order=EAGLE
with_subgrid_sink=none
with_subgrid_sink=none
enable_fof=yes
;;
*)
......@@ -2025,62 +2025,62 @@ case "$with_black_holes" in
;;
esac
# sink model.
# Sink model.
AC_ARG_WITH([sink],
[AS_HELP_STRING([--with-sink=<model>],
[Sink particle model to use @<:@none, default: none@:>@]
)],
[with_sink="$withval"],
[with_sink="none"]
[AS_HELP_STRING([--with-sink=<model>],
[Sink particle model to use @<:@none, default: none@:>@]
)],
[with_sink="$withval"],
[with_sink="none"]
)
if test "$with_subgrid" != "none"; then
if test "$with_sink" != "none"; then
AC_MSG_ERROR([Cannot provide with-subgrid and with-sink together])
else
with_sink="$with_subgrid_sink"
fi
if test "$with_sink" != "none"; then
AC_MSG_ERROR([Cannot provide with-subgrid and with-sink together])
else
with_sink="$with_subgrid_sink"
fi
fi
case "$with_sink" in
none)
AC_DEFINE([SINK_NONE], [1], [No sink particle model])
;;
*)
AC_MSG_ERROR([Unknown sink particle model model: $with_sink])
;;
none)
AC_DEFINE([SINK_NONE], [1], [No sink particle model])
;;
*)
AC_MSG_ERROR([Unknown sink particle model model: $with_sink])
;;
esac
# Task order
AC_ARG_WITH([task-order],
[AS_HELP_STRING([--with-task-order=<model>],
[Task order to use @<:@default, EAGLE, GEAR default: default@:>@]
)],
[with_task_order="$withval"],
[with_task_order="default"]
[AS_HELP_STRING([--with-task-order=<model>],
[Task order to use @<:@default, EAGLE, GEAR default: default@:>@]
)],
[with_task_order="$withval"],
[with_task_order="default"]
)
if test "$with_subgrid" != "none"; then
if test "$with_task_order" != "default"; then
AC_MSG_ERROR([Cannot provide with-subgrid and with-task-order together])
else
with_task_order="$with_subgrid_task_order"
fi
if test "$with_task_order" != "default"; then
AC_MSG_ERROR([Cannot provide with-subgrid and with-task-order together])
else
with_task_order="$with_subgrid_task_order"
fi
fi
case "$with_task_order" in
EAGLE)
AC_DEFINE([TASK_ORDER_EAGLE], [1], [EAGLE task order])
;;
default)
AC_DEFINE([TASK_ORDER_DEFAULT], [1], [Default (i.e. EAGLE/OWLS) task order])
;;
GEAR)
AC_DEFINE([TASK_ORDER_GEAR], [1], [GEAR task order])
;;
*)
AC_MSG_ERROR([Unknown task ordering: $with_task_order])
;;
EAGLE)
AC_DEFINE([TASK_ORDER_EAGLE], [1], [EAGLE task order])
;;
default)
AC_DEFINE([TASK_ORDER_DEFAULT], [1], [Default (i.e. EAGLE/OWLS) task order])
;;
GEAR)
AC_DEFINE([TASK_ORDER_GEAR], [1], [GEAR task order])
;;
*)
AC_MSG_ERROR([Unknown task ordering: $with_task_order])
;;
esac
# External potential
......
Supports Markdown
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