aboutsummaryrefslogtreecommitdiff
path: root/src/paramcheck.cc
blob: c3d65cac77c741e446d127095a69ca76d10e2c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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!");
     }
   }
}