Skip to content

Commit

Permalink
Missed some Get() fixes. Was not a bug, but nice if you want timestep…
Browse files Browse the repository at this point in the history
…s on the fly
  • Loading branch information
bprather committed Jan 7, 2025
1 parent c221d5b commit 4850465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kharma/grmhd/grmhd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Real EstimateTimestep(MeshData<Real> *md)
// TODO maybe split normal, ISMR timesteps? Excised pole/recalculated ctop too?
double min_ndt = std::numeric_limits<double>::max();
for (auto &pmb : pmesh->block_list) {
auto rc = pmb->meshblock_data.Get().get();
auto rc = pmb->meshblock_data.Get(md->StageName()).get();
// We only need this block-wise to check boundary flags for ISMR, could special-case that
const bool polar_inner_x2 = pmb->boundary_flag[BoundaryFace::inner_x2] == BoundaryFlag::user;
const bool polar_outer_x2 = pmb->boundary_flag[BoundaryFace::outer_x2] == BoundaryFlag::user;
Expand Down Expand Up @@ -629,7 +629,7 @@ void UpdateAveragedCtop(MeshData<Real> *md)
auto pmesh = md->GetMeshPointer();
auto& params = pmesh->packages.Get<KHARMAPackage>("Boundaries")->AllParams();
for (auto &pmb : pmesh->block_list) {
auto &rc = pmb->meshblock_data.Get();
auto &rc = pmb->meshblock_data.Get(md->StageName());
for (int i = 0; i < BOUNDARY_NFACES; i++) {
BoundaryFace bface = (BoundaryFace)i;
auto bname = KBoundaries::BoundaryName(bface);
Expand Down

0 comments on commit 4850465

Please sign in to comment.