Skip to content

Commit

Permalink
Tweak other ww3 similar to shel
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsexton03 committed Jul 16, 2024
1 parent 863f97e commit ee61569
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions model/src/ww3_ounp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ PROGRAM W3OUNP
!
#ifdef W3_MPI
CALL MPI_INIT ( IERR_MPI )
MPI_COMM_WW3=MPI_COMM_WORLD !< MPI_COMM_WW3
CALL MPI_COMM_SIZE ( MPI_COMM_WW3, NAPROC, IERR_MPI )
CALL MPI_COMM_RANK ( MPI_COMM_WW3, IAPROC, IERR_MPI )
IAPROC = IAPROC + 1 ! this is to have IAPROC between 1 and NAPROC
Expand Down
1 change: 1 addition & 0 deletions model/src/ww3_prnc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ PROGRAM W3PRNC
!
#ifdef W3_MPI
CALL MPI_INIT ( IERR_MPI )
MPI_COMM_WW3=MPI_COMM_WORLD !< MPI_COMM_WW3
CALL MPI_COMM_SIZE ( MPI_COMM_WW3, NAPROC, IERR_MPI )
CALL MPI_COMM_RANK ( MPI_COMM_WW3, IAPROC, IERR_MPI )
IAPROC = IAPROC + 1 ! this is to have IAPROC between 1 and NAPROC
Expand Down
1 change: 1 addition & 0 deletions model/src/ww3_prtide.F90
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ PROGRAM W3PRTIDE
!
#ifdef W3_MPI
CALL MPI_INIT ( IERR_MPI )
MPI_COMM_WW3=MPI_COMM_WORLD !< MPI_COMM_WW3
CALL MPI_COMM_SIZE ( MPI_COMM_WW3, NAPROC, IERR_MPI )
CALL MPI_COMM_RANK ( MPI_COMM_WW3, IAPROC, IERR_MPI )
IAPROC = IAPROC + 1 ! this is to have IAPROC between 1 and NAPROC
Expand Down
1 change: 1 addition & 0 deletions model/src/ww3_strt.F90
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ PROGRAM W3STRT
!
#ifdef W3_MPI
CALL MPI_INIT ( IERR_MPI )
MPI_COMM_WW3=MPI_COMM_WORLD !< MPI_COMM_WW3
CALL MPI_COMM_SIZE ( MPI_COMM_WW3, NAPROC, IERR_MPI )
CALL MPI_COMM_RANK ( MPI_COMM_WW3, IAPROC, IERR_MPI )
IAPROC = IAPROC + 1
Expand Down
2 changes: 2 additions & 0 deletions model/src/ww3_systrk.F90
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ PROGRAM WW3_SYSTRK
! Start of parallel region
CALL MPI_INIT(ierr)

MPI_COMM_WW3=MPI_COMM_WORLD !< MPI_COMM_WW3

CALL MPI_COMM_RANK(MPI_COMM_WW3, rank, ierr)
CALL MPI_COMM_SIZE(MPI_COMM_WW3, nproc, ierr)

Expand Down

0 comments on commit ee61569

Please sign in to comment.