Skip to content

Commit

Permalink
Fixed bug where params%dt was updating, but was not reflected in calc…
Browse files Browse the repository at this point in the history
…ulation of params%time
  • Loading branch information
mbeidler3 committed Mar 2, 2022
1 parent 830b489 commit 5a2e9af
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,16 @@ program main
do it=params%ito,params%t_steps,params%t_skip
call adv_GCinterp_psiwE_top(params,spp,P,F)

params%time = params%init_time &
+REAL(it-1_ip+params%t_skip,rp)*params%dt
params%it = it-1_ip+params%t_skip
if (.not.params%LargeCollisions) then
params%time = params%init_time &
+REAL(it-1_ip+params%t_skip,rp)*params%dt
params%it = it-1_ip+params%t_skip
else
params%time = params%init_time &
+REAL(it-1_ip+params%t_skip,rp)/REAL(params%t_skip,rp)* &
params%snapshot_frequency
params%it = it-1_ip+params%t_skip
endif

call save_simulation_outputs(params,spp,F)

Expand Down

0 comments on commit 5a2e9af

Please sign in to comment.