Skip to content

Commit 93293b2

Browse files
authored
Merge pull request #675 from mandli/switch-gauge-format
Switch gauge binary file format order
2 parents 3523802 + 69096ff commit 93293b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/2d/shallow/gauges_module.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,10 @@ subroutine set_gauges(restart, num_eqn, num_aux, fname)
294294
"# file format ascii, time series follow in this file"
295295
else if (gauges(i)%file_format == 2) then
296296
write(OUTGAUGEUNIT, '(a)') &
297-
"# file format binary64, time series in .bin file"
297+
"# file format binary32, time series in .bin file"
298298
else if (gauges(i)%file_format == 3) then
299299
write(OUTGAUGEUNIT, '(a)') &
300-
"# file format binary32, time series in .bin file"
300+
"# file format binary64, time series in .bin file"
301301
endif
302302

303303
close(OUTGAUGEUNIT)
@@ -749,14 +749,14 @@ subroutine print_gauges_and_reset_nextLoc(gauge_num)
749749
(gauges(gauge_num)%data(k, j), k=1,nvals)
750750
end do
751751

752-
else if (gauges(gauge_num)%file_format >= 2) then
752+
else if (gauges(gauge_num)%file_format == 2 .or. &
753+
gauges(gauge_num)%file_format == 3) then
753754

754755
! binary output
755-
756756
open(unit=myunit, file=gauges(gauge_num)%file_name_bin, &
757757
status='unknown', position='append',access='stream')
758758

759-
if (gauges(gauge_num)%file_format == 3) then
759+
if (gauges(gauge_num)%file_format == 2) then
760760
allocate(gdata4(nvals+1, ntimes))
761761
gdata4(1, 1:ntimes) = real(gauges(gauge_num)%level(1:ntimes), kind=4)
762762
gdata4(2:nvals+1, 1:ntimes) = &

0 commit comments

Comments
 (0)