blob: 1e2c5e19ddf7e8285eca552d7e29974379d39d5d (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
@file CheckParameters.c
@date
@author Gabrielle Allen
@desc
Check parameters for the wave equation initial data
@enddesc
@@*/
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
static char *rcsid = "$Header$";
/*@@
@routine IDScalarWaveC_CheckParameters
@date
@author Gabrielle Allen
@desc
Check parameters for the wave equation initial data
@enddesc
@calls
@calledby
@history
@hdate Mon Oct 11 11:49:21 1999 @hauthor Tom Goodale
@hdesc Converted to C++
@hdate Thu Feb 17 09:20:41 2000 @hauthor Tom Goodale
@hdesc Converted to C
@endhistory
@@*/
void IDScalarWaveC_CheckParameters(CCTK_ARGUMENTS)
{
DECLARE_CCTK_ARGUMENTS
DECLARE_CCTK_PARAMETERS
if(CCTK_Equals(initial_data,"box"))
{
if (!CCTK_Equals(type, "box"))
{
CCTK_PARAMWARN("Must have a box grid with box initial data");
}
if (kx == 0 || ky == 0 || kz == 0)
{
CCTK_PARAMWARN("Cannot have zero kx,ky,kz for box initial data");
}
}
return;
}
|