QN2UTSQP4IMCMVXZNR24J22N24ASGXF6EWXQ2P3VWVQERUPFAFDQC
2DD222JSYRPHTXKSRXLSOMSCQPZUORNFLLO2P3GMIDELAAMD5MEQC
RTNZAS3UPI6GG3KY4Z5WVXJ4R2YF5427BB6WAV3GHRS5W7XPOSUQC
722HZ7UFINNE3YKSYKP2NHZ5XEG5QQLQHSKC7PREJZR3EX6RDYUAC
BVR7DVINVPQG7PA6Z7QYVYNQ43YZL7XCC6AOMSMWMGAAB2Q43STAC
RCLGQ2LZMFVPBPTU2G55DJ6HZPOGGTPZRZCY54VGP6YLHANJ2LAQC
WASO7G5FJXRXWNH2U2FLUNEKU6VE63OI3HUYP64BVD4LMD6KE7OQC
U77PE56ICORZNQW33NXGSEMW7GDHCSSZ4EXB6OHBJSHEG6WHYSSQC
AEVGZIZEUIC52MCK3J4V547YEV2R4YQL3JUJW7FSP4R34PSZ43DAC
UZAKARMGORRQG733ZUPJOEGL5FG243I32NCC2SRSFDCZKUQ5A52QC
const int nlevels = 2;
ghext->leveldata.resize(nlevels);
for (int level = 0; level < nlevels; ++level) {
GHExt::LevelData &leveldata = ghext->leveldata.at(level);
leveldata.level = level;
// Domain
const RealBox domain({AMREX_D_DECL(xmin, ymin, zmin)},
{AMREX_D_DECL(xmax, ymax, zmax)});
// Maximum number of levels
const int maxlevels = 1;
// Number of coarse grid cells
const Vector<int> ncells{ncells_x, ncells_y, ncells_z};
const int coord = -1; // undefined?
// Define physical box
RealBox domain({AMREX_D_DECL(xmin, ymin, zmin)},
{AMREX_D_DECL(xmax, ymax, zmax)});
ghext->amrmesh = make_unique<AmrMesh>(domain, maxlevels, ncells, coord,
reffacts, periodic);
const int max_grid_size = 32;
ghext->amrmesh->SetMaxGridSize(max_grid_size);
ghext->amrmesh->MakeNewGrids(0.0);
// Define geometry
Vector<int> is_periodic(AMREX_SPACEDIM, 1); // periodic in all directions
leveldata.geom.define(box, &domain, CoordSys::cartesian,
is_periodic.data());
CCTK_VINFO("Geometry:");
cout << ghext->amrmesh->Geom(0) << "\n";
CCTK_VINFO("BoxArray:");
cout << ghext->amrmesh->boxArray(0) << "\n";
CCTK_VINFO("DistributionMap:");
cout << ghext->amrmesh->DistributionMap(0) << "\n";
// Distributed boxes
leveldata.dmap = DistributionMapping(leveldata.grids);
const int nlevels = 1;
ghext->leveldata.resize(nlevels);
for (int level = 0; level < nlevels; ++level) {
GHExt::LevelData &leveldata = ghext->leveldata.at(level);
leveldata.level = level;