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

Commit

Permalink
Added extra parens to deal with the situation in which no file name i…
Browse files Browse the repository at this point in the history
…s given, so no energy info is saved
  • Loading branch information
daminton committed Sep 23, 2021
1 parent 954d946 commit d76cfc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module subroutine io_conservation_report(self, param, lterminal)
param%lfirstenergy = .false.
end if

if ((param%out_type == REAL4_TYPE) .or. (param%out_type == REAL8_TYPE) .and. (param%energy_out /= "")) then
if (((param%out_type == REAL4_TYPE) .or. (param%out_type == REAL8_TYPE)) .and. (param%energy_out /= "")) then
write(EGYIU,EGYFMT, err = 667, iomsg = errmsg) param%t, Eorbit_now, param%Ecollisions, Ltot_now, GMtot_now
close(EGYIU, err = 667, iomsg = errmsg)
end if
Expand Down

0 comments on commit d76cfc0

Please sign in to comment.