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

Commit

Permalink
Fixed the conservation report so that the header is printed only on t…
Browse files Browse the repository at this point in the history
…he first call
  • Loading branch information
daminton committed Aug 17, 2021
1 parent 44dbbfd commit d44b452
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 @@ -35,9 +35,9 @@ module subroutine io_conservation_report(self, param, lterminal)
if (param%energy_out /= "") then
if (lfirst .and. (param%out_stat /= "OLD")) then
open(unit = EGYIU, file = param%energy_out, form = "formatted", status = "replace", action = "write", err = 667, iomsg = errmsg)
write(EGYIU,EGYHEADER, err = 667, iomsg = errmsg)
else
open(unit = EGYIU, file = param%energy_out, form = "formatted", status = "old", action = "write", position = "append", err = 667, iomsg = errmsg)
write(EGYIU,EGYHEADER, err = 667, iomsg = errmsg)
end if
end if
call pl%h2b(cb)
Expand Down

0 comments on commit d44b452

Please sign in to comment.