Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Aug 14, 2024
1 parent fd6cc0b commit bb81f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/AmrCore/AMReX_AmrMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,14 +489,14 @@ AmrMesh::ChopGrids (int lev, BoxArray& ba, int target_size) const
if (refine_grid_layout_dims[idim]) {
int new_chunk_size = chunk[idim] / 2;
int rr = (lev > 0) ? ref_ratio[lev-1][idim] : 1;
if (lev > 0) {
if (rr > 1) {
new_chunk_size = (new_chunk_size/rr) * rr;
}
if (new_chunk_size != 0 &&
new_chunk_size%blocking_factor[lev][idim] == 0)
{
chunk[idim] = new_chunk_size;
if (lev == 0) {
if (rr == 1) {
ba.maxSize(chunk);
} else {
IntVect bf(1);
Expand Down

0 comments on commit bb81f61

Please sign in to comment.