Skip to content

Commit

Permalink
Change default n substep. (#1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored Dec 3, 2024
1 parent ba6770a commit 64e6ea5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/TimeIntegration/ERF_ComputeTimestep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ ERF::estTimeStep (int level, long& dt_fast_ratio) const
if (fixed_dt[level] > 0. && fixed_fast_dt[level] > 0.) {
dt_fast_ratio = static_cast<long>( fixed_dt[level] / fixed_fast_dt[level] );
} else if (fixed_dt[level] > 0.) {
dt_fast_ratio = static_cast<long>( std::ceil((fixed_dt[level]/estdt_comp)) );
} else {
dt_fast_ratio = (estdt_lowM_inv > 0.0) ? static_cast<long>( std::ceil((estdt_lowM/estdt_comp)) ) : 1;
dt_fast_ratio = static_cast<long>( 6 );
}

// Force time step ratio to be an even value
Expand Down

0 comments on commit 64e6ea5

Please sign in to comment.