aboutsummaryrefslogtreecommitdiff
path: root/src/paramcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/paramcheck.c')
-rw-r--r--src/paramcheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/paramcheck.c b/src/paramcheck.c
index 47d541a..e2ccc0d 100644
--- a/src/paramcheck.c
+++ b/src/paramcheck.c
@@ -15,8 +15,8 @@ void dissipation_paramcheck (CCTK_ARGUMENTS)
}
for (d=0; d<cctk_dim; ++d) {
- if (cctk_nghostzones[d] < order/2) {
- CCTK_PARAMWARN ("This thorn requires at least order/2 ghost zones");
+ if (cctk_nghostzones[d] < (order+1)/2) {
+ CCTK_PARAMWARN ("This thorn requires at least (order+1)/2 ghost zones");
}
}
}