RTNZAS3UPI6GG3KY4Z5WVXJ4R2YF5427BB6WAV3GHRS5W7XPOSUQC
PQB3EKQ6MBCXPTW4HB7SGMSTOTYMB3EFZX2573OFCQI6PSOEKCSQC
722HZ7UFINNE3YKSYKP2NHZ5XEG5QQLQHSKC7PREJZR3EX6RDYUAC
UUGQGVC4WEKN64WAP7F5QPS2UHGQB5ZLMFRIYNWKMIEBDO3QRX4AC
ORAAQXS3UNKXYDJBCTHNEIDJIZDHWMM5EVCZKVMFRKQK2NIQNJGAC
BVR7DVINVPQG7PA6Z7QYVYNQ43YZL7XCC6AOMSMWMGAAB2Q43STAC
U77PE56ICORZNQW33NXGSEMW7GDHCSSZ4EXB6OHBJSHEG6WHYSSQC
AEVGZIZEUIC52MCK3J4V547YEV2R4YQL3JUJW7FSP4R34PSZ43DAC
CCTK_REAL xmin "Domain size"
{
*:* :: ""
} -1.0
CCTK_REAL xmax "Domain size"
{
*:* :: ""
} 1.0
CCTK_REAL ymin "Domain size"
{
*:* :: ""
} -1.0
CCTK_REAL ymax "Domain size"
{
*:* :: ""
} 1.0
CCTK_REAL zmin "Domain size"
{
*:* :: ""
} -1.0
CCTK_REAL zmax "Domain size"
{
*:* :: ""
} 1.0
CCTK_INT ncells_x "Number of grid cells"
{
1:*
} 100
CCTK_INT ncells_y "Number of grid cells"
{
1:*
} 100
CCTK_INT ncells_z "Number of grid cells"
{
1:*
} 100
CCTK_INT ghost_size "Number of ghost zones"
{
0:* :: ""
} 1
CCTK_REAL dtfac "The standard timestep condition dt = dtfac*min(delta_space)"
{
*:* :: ""
} 0.5
cctkGH->cctk_delta_space[d] = 1.0;
cctkGH->cctk_delta_space[d] = dx[d];
CCTK_VINFO("x0=[%g,%g,%g]", cctkGH->cctk_origin_space[0],
cctkGH->cctk_origin_space[1], cctkGH->cctk_origin_space[2]);
CCTK_VINFO("dx=[%g,%g,%g]", cctkGH->cctk_delta_space[0],
cctkGH->cctk_delta_space[1], cctkGH->cctk_delta_space[2]);
// Initialize time stepping
extern "C" void WaveToyAMReX_Setup(CCTK_ARGUMENTS) {
DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
const CCTK_REAL *restrict const x0 = ghext->geom.ProbLo();
const CCTK_REAL *restrict const x1 = ghext->geom.ProbHi();
for (int d = 0; d < dim; ++d) {
CCTK_REAL dx = (x1[d] - x0[d]) / ghext->ncells;
cctkGH->cctk_origin_space[d] = x0[d] + 0.5 * dx;
cctkGH->cctk_delta_space[d] = dx;
}
CCTK_VINFO("x0=[%g,%g,%g]", cctkGH->cctk_origin_space[0],
cctkGH->cctk_origin_space[1], cctkGH->cctk_origin_space[2]);
CCTK_VINFO("dx=[%g,%g,%g]", cctkGH->cctk_delta_space[0],
cctkGH->cctk_delta_space[1], cctkGH->cctk_delta_space[2]);
CCTK_REAL mindx = 1.0 / 0.0;
for (int d = 0; d < dim; ++d)
mindx = fmin(mindx, cctkGH->cctk_delta_space[d]);
cctkGH->cctk_time = 0.0;
cctkGH->cctk_delta_time = 0.5 * mindx;
CCTK_VINFO("t=%g", cctkGH->cctk_time);
CCTK_VINFO("dt=%g", cctkGH->cctk_delta_time);
}