Repository navigation
Checkpoint Embiggeneer not working with radiation #3149
Replies: 1 comment
|
The Embiggener in its current form cannot read radiation checkpoints. This is a gap in Why it fails With On a fine level where the deferred-sync flux register exists, the last line is
I checked this on Castro 26.10. Patch sketch (not tested)
int radiation(0);
Vector<Real> rad_de, rad_dT;
// in ScanArguments():
if (pp.contains("radiation")) {
pp.get("radiation", radiation);
}
if (radiation) {
std::string tok, path;
do {
is >> tok;
if (tok.find("delta_e_rat") == 0) { is >> rad_de[lev]; }
else if (tok.find("delta_T_rat") == 0) { is >> rad_dT[lev]; }
else { path = tok; }
} while (path.empty());
std::string flag;
is >> flag;
if (flag == "Present") {
Real dt_old; IntVect ratio; int fine_lev, ncomp; BoxArray ba;
is >> dt_old >> ratio >> fine_lev >> ncomp;
ba.readFrom(is); // skip the deferred-sync FluxRegister
}
}In
if (radiation && ParallelDescriptor::IOProcessor()) {
int p = os.precision(20);
os << "delta_e_rat_level[" << lev << "]= " << rad_de[lev] << '\n';
os << "delta_T_rat_level[" << lev << "]= " << rad_dT[lev] << '\n';
os.precision(p);
os << Level << "/RadFlux" << " Absent\n";
}Then run Limit: the patch writes If this works for you, consider opening a PR so that the Embiggener supports radiation upstream. |
Uh oh!
There was an error while loading. Please reload this page.
Greetings everyone,
I'm trying to use Checkpoint Embiggener on hydro-radiation model, and it doesn't work. I've tried different models (different max_level, ref_ratio, star at center/corner), and it always ends with the same error:
But if I try it with the same models with only hydro calculations (no radiation), it works fine:
I've tried to look at the exact place where this error happens, and found the 'RealBox check' in
AMReX_RealBox.cpp. It seems like Embiggener just can't read the checkpoint file with radiation. Can this problem be fixed, or Embiggener just can't be used with radiation? Thank you for your time.Best regards,
Georgii
All reactions