Skip to content

Commit

Permalink
working on test
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Dec 26, 2023
1 parent dde25b3 commit bbc7aea
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions model/tests/test_io_points_bin.F90
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ program test_io_points_bin
use w3adatmd
implicit none

integer, target :: i, j, k, l
integer :: ndsop, iotest, imod, ndstst, ndsbul, ndsm
integer, target :: i
integer :: ndsop, iotest, ndsbul, ndsm
integer :: ndstrc, ntrace
real :: m2km
character*7 expected_ptnme
character*6 my_fmt
real :: expected_loc_1
integer :: write_test_file
integer :: ierr

print *, 'Testing WW3 binary point file code.'

Expand Down Expand Up @@ -93,16 +91,22 @@ integer function write_test_file()
(/ 2, 11 /))
character*40 ptnme(11)
integer :: time(2) = (/ 19680606, 0 /)
integer :: nspec = 2
integer :: nspec = 72
integer :: iw(11) = (/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /)
integer :: ii(11) = (/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /)
integer :: il(11) = (/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /)
real :: iceo(11) = (/ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0. /)
real :: iceho(11) = (/ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0. /)
real :: icefo(11) = (/ 1000., 1000., 1000., 1000., 1000., 1000., 1000., 1000., 1000., 1000., 1000. /)
real :: dpo(11) = (/ 50., 50., 45., 40., 35., 30., 25., 20., 15., 10., 5. /)
real :: dpo(11), wao(11), wdo(11), aso(11), cao(11), cdo(11), grdid(11)
real :: spco(2, 11)
real :: wao(11) = (/ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0. /)
real :: wdo(11) = (/ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0. /)
real :: aso(11) = (/ -999.900024, -999.900024, -999.900024, -999.900024, -999.900024, &
-999.900024, -999.900024, -999.900024, -999.900024, -999.900024, -999.900024 /)
real :: cao(11) = (/ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0. /)
real :: cdo(11) = (/ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0. /)
character*13 :: grdid(11)
real :: spco(72, 11)
integer :: i, j
integer :: ierr

Expand All @@ -117,11 +121,9 @@ integer function write_test_file()
else
write(ptnme(i), '(a,i2)') 'Point', i
endif
print *, ptnme(i)
grdid(i) = 'ww3 '
end do

print *, ptloc

! Open the file.
open(ntlu, file="out_pnt.ww3", form="unformatted", status="replace", &
action="write", convert="big_endian", iostat=ierr)
Expand Down

0 comments on commit bbc7aea

Please sign in to comment.