Skip to content

Commit

Permalink
When we create a new level of refinement, we need to set the "level_s… (
Browse files Browse the repository at this point in the history
AMReX-Codes#1630)

…teps" of that

new level appropriately.

## Summary

## Additional background

## Checklist

The proposed changes:
- [x] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX users
- [ ] are described in the proposed changes to the AMReX documentation, if appropriate
  • Loading branch information
asalmgren authored Dec 12, 2020
1 parent 389a0cc commit 52d32c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Src/Amr/AMReX_Amr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2615,6 +2615,8 @@ Amr::regrid (int lbase,
{
a->init();
amr_level[lev].reset(a);
if (lev > 0)
level_steps[lev] = level_steps[lev-1] * n_cycle[lev-1];
this->SetBoxArray(lev, amr_level[lev]->boxArray());
this->SetDistributionMap(lev, amr_level[lev]->DistributionMap());
}
Expand Down

0 comments on commit 52d32c6

Please sign in to comment.