Skip to content

Commit

Permalink
Optional point weight file (pnt_wght.ww3.nc) for unstructured grid to…
Browse files Browse the repository at this point in the history
… speed up initialization (#1333)
  • Loading branch information
JessicaMeixner-NOAA authored Dec 20, 2024
1 parent 488e3c8 commit e82df78
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 77 deletions.
2 changes: 1 addition & 1 deletion model/src/w3gridmd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ MODULE W3GRIDMD
#ifdef W3_ST4
INTEGER :: SWELLFPAR, SDSISO, SDSBRFDF, SINTABLE,&
TAUWBUG
REAL :: SDSBCHOICE
REAL :: SDSBCHOICE
REAL :: ZWND, ALPHA0, Z0MAX, BETAMAX, SINTHP,&
ZALP, Z0RAT, TAUWSHELTER, SWELLF, &
SWELLF2,SWELLF3,SWELLF4, SWELLF5, &
Expand Down
7 changes: 5 additions & 2 deletions model/src/w3initmd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,6 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
STOP
ENDIF
#endif

!
! 1.c Open files without unpacking MDS ,,,
!
Expand Down Expand Up @@ -1240,7 +1239,11 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
!
! 4.d Preprocessing for point output.
!
IF ( FLOUT(2) ) CALL W3IOPP ( NPT, XPT, YPT, PNAMES, IMOD )
#ifdef W3_MPI
IF ( FLOUT(2) ) CALL W3IOPP ( NPT, XPT, YPT, PNAMES, IMOD, MPI_COMM_WAVE )
#else
IF ( FLOUT(2) ) CALL W3IOPP ( NPT, XPT, YPT, PNAMES, IMOD, 1 )
#endif
#ifdef W3_PDLIB
CALL DEALLOCATE_PDLIB_GLOBAL(IMOD)
#endif
Expand Down
Loading

0 comments on commit e82df78

Please sign in to comment.