blob: a2c754f9c5b017396a558deff534be57297e2a42 (
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
|
#include <assert.h>
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
#include "carpet.hh"
#include "CAR.hh"
static const char* rcsid = "$Header:$";
CCTK_FILEVERSION(CAR_Paramcheck_cc)
namespace CarpetAdaptiveRegrid {
using namespace std;
using namespace Carpet;
void CarpetAdaptiveRegridParamcheck (CCTK_ARGUMENTS)
{
DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
int type;
const CCTK_INT * const domain_from_coordbase
= (const CCTK_INT *) CCTK_ParameterGet ("domain_from_coordbase", "Carpet", &type);
assert (domain_from_coordbase);
assert (type == PARAMETER_BOOLEAN);
if (! *domain_from_coordbase) {
CCTK_PARAMWARN ("CarpetAdaptiveRegrid requires that Carpet::domain_from_coordbase=yes");
}
}
}
|