aboutsummaryrefslogtreecommitdiff
path: root/src/paramcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/paramcheck.c')
-rw-r--r--src/paramcheck.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/paramcheck.c b/src/paramcheck.c
new file mode 100644
index 0000000..3cce974
--- /dev/null
+++ b/src/paramcheck.c
@@ -0,0 +1,21 @@
+/* $Header$ */
+
+#include "cctk.h"
+#include "cctk_Arguments.h"
+#include "cctk_Parameters.h"
+
+void dissipation_paramcheck (CCTK_ARGUMENTS)
+{
+ DECLARE_CCTK_ARGUMENTS;
+ DECLARE_CCTK_PARAMETERS;
+
+ 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");
+ }
+}