aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@850bcc8b-0e4f-0410-8c26-8d28fbf1eda9>2005-04-30 16:46:20 +0000
committerschnetter <schnetter@850bcc8b-0e4f-0410-8c26-8d28fbf1eda9>2005-04-30 16:46:20 +0000
commitefcd06a3138fbffba457960d8992111983695e82 (patch)
tree7e282951ec2afbc8bc06edcbba1608d8bc9e2df5
parente3719c2bc603c6e88fe41f9986980a62b5fb36d0 (diff)
Check whether there are enough ghost zones.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Dissipation/trunk@9 850bcc8b-0e4f-0410-8c26-8d28fbf1eda9
-rw-r--r--schedule.ccl5
-rw-r--r--src/basegrid.c (renamed from src/paramcheck.c)6
-rw-r--r--src/make.code.defn2
3 files changed, 9 insertions, 4 deletions
diff --git a/schedule.ccl b/schedule.ccl
index 759bf04..e52b474 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -1,6 +1,11 @@
# Schedule definitions for thorn Dissipation
# $Header$
+SCHEDULE dissipation_basegrid AT basegrid
+{
+ LANG: C
+} "Ensure that there are enough ghost zones"
+
SCHEDULE dissipation_add IN MoL_PostRHS
{
LANG: C
diff --git a/src/paramcheck.c b/src/basegrid.c
index e2ccc0d..ad01c26 100644
--- a/src/paramcheck.c
+++ b/src/basegrid.c
@@ -4,19 +4,19 @@
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
-void dissipation_paramcheck (CCTK_ARGUMENTS)
+void dissipation_basegrid (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");
}
for (d=0; d<cctk_dim; ++d) {
if (cctk_nghostzones[d] < (order+1)/2) {
- CCTK_PARAMWARN ("This thorn requires at least (order+1)/2 ghost zones");
+ CCTK_WARN (0, "This thorn requires at least (order+1)/2 ghost zones");
}
}
}
diff --git a/src/make.code.defn b/src/make.code.defn
index a36a5cf..b1abd5b 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -2,7 +2,7 @@
# $Header$
# Source files in this directory
-SRCS = apply_dissipation.F77 dissipation.c paramcheck.c
+SRCS = apply_dissipation.F77 basegrid.c dissipation.c
# Subdirectories containing source files
SUBDIRS =