aboutsummaryrefslogtreecommitdiff
path: root/src/paramcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/paramcheck.c')
-rw-r--r--src/paramcheck.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/paramcheck.c b/src/paramcheck.c
index 3cce974..47d541a 100644
--- a/src/paramcheck.c
+++ b/src/paramcheck.c
@@ -8,14 +8,15 @@ void dissipation_paramcheck (CCTK_ARGUMENTS)
{
DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
+ int d;
if (cctk_dim != 3) {
CCTK_PARAMWARN ("This thorn supports only dim=3");
- CCTK_WARN (0, "This thorn supports only dim=3");
}
- if (cctk_nghostzones[0] < 2 || cctk_nghostzones[1] < 2
- || cctk_nghostzones[2] < 2) {
- CCTK_PARAMWARN ("This thorn requires at least 2 ghost zones");
+ for (d=0; d<cctk_dim; ++d) {
+ if (cctk_nghostzones[d] < order/2) {
+ CCTK_PARAMWARN ("This thorn requires at least order/2 ghost zones");
+ }
}
}