Skip to content

Commit

Permalink
ensure initial_shrink still gets applied. together with pr83, this (#84)
Browse files Browse the repository at this point in the history
ensures the initial timestep is computed as expected. This will require
redoing some regression tests due to the change in the initial dt.

Co-authored-by: Ann Almgren <[email protected]>
  • Loading branch information
cgilet and asalmgren authored Nov 6, 2023
1 parent db1c123 commit 7a525e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/incflo_advance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void incflo::Advance()
Real strt_step = static_cast<Real>(ParallelDescriptor::second());

// Compute time step size
int initialisation = 0;
int initialisation = ( m_dt < 0 );
bool explicit_diffusion = (m_diff_type == DiffusionType::Explicit);
ComputeDt(initialisation, explicit_diffusion);

Expand Down

0 comments on commit 7a525e0

Please sign in to comment.