diff options
author | sai <sai@eec4d7dc-71c2-46d6-addf-10296150bf52> | 1999-11-06 16:19:25 +0000 |
---|---|---|
committer | sai <sai@eec4d7dc-71c2-46d6-addf-10296150bf52> | 1999-11-06 16:19:25 +0000 |
commit | 593f30e3475617fe87b90d2e79c52075a300af89 (patch) | |
tree | 672be35c8145be1ec4cdf3d87806de83d6f2e444 /src/CheckParameters.c | |
parent | 630466884939120028346f0957828c2b41248b6e (diff) |
This commit was generated by cvs2svn to compensate for changes in r2, which
included commits to RCS files with non-trunk default branches.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@3 eec4d7dc-71c2-46d6-addf-10296150bf52
Diffstat (limited to 'src/CheckParameters.c')
-rw-r--r-- | src/CheckParameters.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/CheckParameters.c b/src/CheckParameters.c new file mode 100644 index 0000000..c7fcc79 --- /dev/null +++ b/src/CheckParameters.c @@ -0,0 +1,52 @@ +/*@@ + @file CheckParameters.c + @date Wed Nov 3 10:17:46 MET 1999 + @author Sai Iyer + @desc + Check Cartoon2D parameters + @enddesc + @@*/ + +#include "cctk.h" +#include "cctk_parameters.h" +#include "cctk_arguments.h" + +static char *rcsid = "$Id$"; + + /*@@ + @routine Cartoon2D_CheckParameters + @date Wed Nov 3 10:17:46 MET 1999 + @author Sai Iyer + @desc + Check Cartoon2D parameters + @enddesc + @calls + @calledby + @history + + @endhistory + +@@*/ + +void Cartoon2D_CheckParameters(CCTK_CARGUMENTS) +{ + DECLARE_CCTK_CARGUMENTS + DECLARE_CCTK_PARAMETERS + + if(cctk_gsh[1] != 2*cctk_nghostzones[1]+1) + { + CCTK_PARAMWARN("Grid size in y direction inappropriate."); + } + + if(order < 2*cctk_nghostzones[0]) + { + CCTK_PARAMWARN("Ghostzone width in x direction too small."); + } + + if(order < 1 || order > 5) + { + CCTK_PARAMWARN("Interpolation order should be between 1 and 5."); + } + return; +} + |