Skip to content

Commit

Permalink
(force) minor change to dtclean to prevent it from being the shortest…
Browse files Browse the repository at this point in the history
… timestep in hydro sims
  • Loading branch information
jameswurster committed Apr 21, 2021
1 parent f016c85 commit ea06b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/force.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2841,8 +2841,8 @@ subroutine finish_cell_and_store_results(icall,cell,fxyzu,xyzh,vxyzu,poten,dt,dv
! coefficient of 0.5 was empirically determined, but may be required
! for all MHD simulations, not just those with hdivbbmax > 1.0
!dtclean = 0.5*C_cour*hi/(hdivbbmax * vwavei + epsilon(0.)) ! line 1
if (hdivbbmax > 1.0) hdivbbmax = 2.0*hdivbbmax ! line 2a
dtclean = C_cour*hi/(hdivbbmax * vwavei + epsilon(0.)) ! line 2b
if (hdivbbmax > 1.0) hdivbbmax = 2.0*hdivbbmax ! line 2a
dtclean = C_cour*hi/(hdivbbmax * vwavei + tiny(0.)) ! line 2b
endif
endif

Expand Down

0 comments on commit ea06b49

Please sign in to comment.