aboutsummaryrefslogtreecommitdiff
path: root/src/CheckParam.c
diff options
context:
space:
mode:
authorknarf <knarf@ac85fae7-cede-4708-beff-ae01c7fa1c26>2009-11-18 16:36:37 +0000
committerknarf <knarf@ac85fae7-cede-4708-beff-ae01c7fa1c26>2009-11-18 16:36:37 +0000
commit7c7511d577c233d97a5edf7f4403768935bf696b (patch)
tree61396f20a2174bbc708734fabf72e101001c4a53 /src/CheckParam.c
This is a _temporary_ repository to be able to start to work on the
code right now. I have put in the public version of Whisky to start from. Everybody with commit rights should get commit messages (and the other way around). It should not be a problem to add people to that list, just ask. I don't want to get into political problems because someone feels excluded, but I also don't want to give everyone access per se. Frank git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/GRHydro_InitData/trunk@3 ac85fae7-cede-4708-beff-ae01c7fa1c26
Diffstat (limited to 'src/CheckParam.c')
-rw-r--r--src/CheckParam.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CheckParam.c b/src/CheckParam.c
new file mode 100644
index 0000000..68f446c
--- /dev/null
+++ b/src/CheckParam.c
@@ -0,0 +1,15 @@
+#include "cctk.h"
+#include "cctk_Arguments.h"
+#include "cctk_Parameters.h"
+
+void Whisky_InitData_CheckParameters(CCTK_ARGUMENTS)
+{
+ DECLARE_CCTK_ARGUMENTS
+ DECLARE_CCTK_PARAMETERS
+
+ if (timelevels < 2)
+ {
+ CCTK_PARAMWARN("You have to set 'HydroBase::timelevels to at least 2");
+ }
+}
+