diff options
Diffstat (limited to 'src/paramcheck.cc')
-rw-r--r-- | src/paramcheck.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/paramcheck.cc b/src/paramcheck.cc new file mode 100644 index 0000000..c3d65ca --- /dev/null +++ b/src/paramcheck.cc @@ -0,0 +1,25 @@ +#include "cctk.h" +#include "cctk_Parameters.h" +#include "cctk_Arguments.h" +#include "cctk_Functions.h" + + + +extern "C" void PunctureTracker_ParamCheck(CCTK_ARGUMENTS) +{ + DECLARE_CCTK_ARGUMENTS + DECLARE_CCTK_PARAMETERS + + // do this only on processor 0 + if (CCTK_MyProc(cctkGH) != 0) + return; + + for (int i=0; i < 10; ++i) + { + if (which_surface_to_store_info[i] != -1) + { + if (which_surface_to_store_info[i] >= nsurfaces) + CCTK_PARAMWARN("You assigned a greater surface index than there are spherical surfaces!"); + } + } +} |