Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Moved balance to just after dump step so we can control how often a b…
Browse files Browse the repository at this point in the history
…alance gets done
  • Loading branch information
daminton committed Apr 26, 2023
1 parent 9b2c7d7 commit 5136422
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/swiftest/swiftest_driver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ program swiftest_driver
if (idump == dump_cadence) then
idump = 0
call nbody_system%dump(param, system_history)
#ifdef COARRAY
if (param%lcoarray) call nbody_system%coarray_balance(param)
#endif
end if
#ifdef COARRAY
if (this_image() == 1 .or. param%log_output) then
Expand All @@ -166,7 +169,6 @@ program swiftest_driver
if (param%lenergy) call nbody_system%conservation_report(param, lterminal=.true.)
#ifdef COARRAY
end if ! (this_image() == 1)
if (param%lcoarray) call nbody_system%coarray_balance(param)
#endif
end if
end if
Expand Down

0 comments on commit 5136422

Please sign in to comment.