Skip to content

Commit

Permalink
fix adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
gouarin committed Oct 18, 2023
1 parent dae7c4a commit 9101844
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 @@ -177,8 +177,8 @@ namespace samurai
old_fields_t old_fields;
if constexpr (keep_previous)
{
auto mesh_old = mesh;
old_fields_t old_fields = detail::copy_fields(mesh_old, m_fields);
auto mesh_old = mesh;
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 9101844

Please sign in to comment.