Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gouarin committed Oct 18, 2023
1 parent 9101844 commit 94fed48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/samurai/mr/adapt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ namespace samurai
}
update_ghost_mr(m_fields);

auto mesh_old = mesh;
old_fields_t old_fields;
if constexpr (keep_previous)
{
auto mesh_old = mesh;
old_fields = detail::copy_fields(mesh_old, m_fields);
old_fields = detail::copy_fields(mesh_old, m_fields);
}

for (std::size_t i = 0; i < max_level - min_level; ++i)
Expand Down

0 comments on commit 94fed48

Please sign in to comment.