aboutsummaryrefslogtreecommitdiff
path: root/CarpetDev/CarpetAdaptiveRegrid/src/CAR_Paramcheck.cc
diff options
context:
space:
mode:
authorhawke <schnetter@cct.lsu.edu>2004-11-13 15:28:00 +0000
committerhawke <schnetter@cct.lsu.edu>2004-11-13 15:28:00 +0000
commit557d95df12f6e8e7a033e9a840b4a4a3ad9b5f9f (patch)
treec71b0f422fc0ea9300b269544d1bd5d5f3f72c54 /CarpetDev/CarpetAdaptiveRegrid/src/CAR_Paramcheck.cc
parentfa9124abf804f600c0442477ad67bec8db0c4ef8 (diff)
CarpetAdaptiveRegrid
The first part of CarpetAdaptiveRegrid. At the moment the only piece of "working" code is the F90 that does the box manipulation. This can be tested using the standalone makefile in src/test. darcs-hash:20041113152820-5d2e4-7bbcb3804e5643c7753c9ab663df4dc7d357d7e9.gz
Diffstat (limited to 'CarpetDev/CarpetAdaptiveRegrid/src/CAR_Paramcheck.cc')
-rw-r--r--CarpetDev/CarpetAdaptiveRegrid/src/CAR_Paramcheck.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/CarpetDev/CarpetAdaptiveRegrid/src/CAR_Paramcheck.cc b/CarpetDev/CarpetAdaptiveRegrid/src/CAR_Paramcheck.cc
new file mode 100644
index 000000000..5a6970565
--- /dev/null
+++ b/CarpetDev/CarpetAdaptiveRegrid/src/CAR_Paramcheck.cc
@@ -0,0 +1,36 @@
+#include <assert.h>
+
+#include "cctk.h"
+#include "cctk_Arguments.h"
+#include "cctk_Parameters.h"
+
+#include "carpet.hh"
+#include "CAR.hh"
+
+static const char* rcsid = "$Header:$";
+
+CCTK_FILEVERSION(CAR_Paramcheck_cc)
+
+namespace CarpetAdaptiveRegrid {
+
+ using namespace std;
+ using namespace Carpet;
+
+ int CarpetAdaptiveRegridParamcheck (CCTK_ARGUMENTS)
+ {
+ DECLARE_CCTK_ARGUMENTS;
+ DECLARE_CCTK_PARAMETERS;
+
+ int type;
+ const CCTK_INT * const domain_from_coordbase
+ = (const CCTK_INT *) CCTK_ParameterGet ("domain_from_coordbase", "Carpet", &type);
+ assert (domain_from_coordbase);
+ assert (type == PARAMETER_BOOLEAN);
+ if (! *domain_from_coordbase) {
+ CCTK_PARAMWARN ("CarpetAdaptiveRegrid requires that Carpet::domain_from_coordbase=yes");
+ }
+
+ return 0;
+ }
+
+}