Skip to content

Commit

Permalink
exec damping twice for mr
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiyiVirtonomy committed Sep 24, 2024
1 parent f801548 commit c964d96
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void beam_multi_resolution(double dp_factor, bool damping_on, int refinement_lev

int main(int ac, char *av[])
{
beam_multi_resolution(2.5, false, 2);
beam_multi_resolution(3.5, true, 2);
}

//------------------------------------------------------------------------------
Expand Down Expand Up @@ -186,7 +186,10 @@ void beam_multi_resolution(double dp_factor, bool damping_on, int refinement_lev
auto damping_exec = [&](Real dt)
{
if (refinement_level > 0)
{
damping_mr_res->exec(dt);
damping_mr_res->exec(dt);
}
else
damping_single_res->exec(dt);
};
Expand Down

0 comments on commit c964d96

Please sign in to comment.