Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Source/Diagnostics/FullDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,13 +764,17 @@ FullDiagnostics::InitializeBufferData (int i_buffer, int lev, bool restart ) {
// Coarsen and refine so that the new BoxArray is coarsenable.
ba.coarsen(m_crse_ratio).refine(m_crse_ratio);

// Box covering the extent of the user-defined diagnostic domain
amrex::Box domain = diag_box;
domain.coarsen(m_crse_ratio).refine(m_crse_ratio);

// Update the physical co-ordinates m_lo and m_hi using the final index values
// from the coarsenable, cell-centered BoxArray, ba.
for ( int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
diag_dom.setLo( idim, warpx.Geom(lev).ProbLo(idim) +
ba.getCellCenteredBox(0).smallEnd(idim) * warpx.Geom(lev).CellSize(idim));
domain.smallEnd(idim) * warpx.Geom(lev).CellSize(idim));
diag_dom.setHi( idim, warpx.Geom(lev).ProbLo(idim) +
(ba.getCellCenteredBox( static_cast<int>(ba.size())-1 ).bigEnd(idim) + 1) * warpx.Geom(lev).CellSize(idim));
(domain.bigEnd(idim) + 1) * warpx.Geom(lev).CellSize(idim));
}

}
Expand Down
Loading