Skip to content

Commit

Permalink
Fix do loop in init routine.
Browse files Browse the repository at this point in the history
  • Loading branch information
chegermiller authored and camilleanne committed Jun 23, 2023
1 parent 98ded70 commit 4c80f6b
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions model/src/w3initmd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2815,7 +2815,7 @@ SUBROUTINE W3MPIO ( IMOD )
! CAH: Added parameters from second partitioning scheme
!
IF ( FLGRDALL( 4, 18) ) THEN
K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_SEND_INIT (PHS2(1,K),NSEALM , MPI_REAL, IROOT, &
Expand All @@ -2825,10 +2825,11 @@ SUBROUTINE W3MPIO ( IMOD )
WRITE (NDST,9011) IH, ' 4/01', IROOT, IT, IRQGO(IH), IERR
#endif
#ifdef W3_MPI
END DO
END IF
!
IF ( FLGRDALL( 4, 19) ) THEN
K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_SEND_INIT (PTP2(1,K),NSEALM , MPI_REAL, IROOT, &
Expand All @@ -2838,10 +2839,11 @@ SUBROUTINE W3MPIO ( IMOD )
WRITE (NDST,9011) IH, ' 4/01', IROOT, IT, IRQGO(IH), IERR
#endif
#ifdef W3_MPI
END DO
END IF
!
IF ( FLGRDALL( 4, 20) ) THEN
K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_SEND_INIT (PDIR2(1,K),NSEALM , MPI_REAL, IROOT, &
Expand All @@ -2851,10 +2853,11 @@ SUBROUTINE W3MPIO ( IMOD )
WRITE (NDST,9011) IH, ' 4/01', IROOT, IT, IRQGO(IH), IERR
#endif
#ifdef W3_MPI
END DO
END IF
!
IF ( FLGRDALL( 4, 21) ) THEN
K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_SEND_INIT (PSI2(1,K),NSEALM , MPI_REAL, IROOT, &
Expand All @@ -2864,10 +2867,11 @@ SUBROUTINE W3MPIO ( IMOD )
WRITE (NDST,9011) IH, ' 4/01', IROOT, IT, IRQGO(IH), IERR
#endif
#ifdef W3_MPI
END DO
END IF
!
IF ( FLGRDALL( 4, 22) ) THEN
K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_SEND_INIT (PTHP02(1,K),NSEALM , MPI_REAL, IROOT, &
Expand All @@ -2877,10 +2881,11 @@ SUBROUTINE W3MPIO ( IMOD )
WRITE (NDST,9011) IH, ' 4/01', IROOT, IT, IRQGO(IH), IERR
#endif
#ifdef W3_MPI
END DO
END IF
!
IF ( FLGRDALL( 4, 23) ) THEN
K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_SEND_INIT (PT12(1,K),NSEALM , MPI_REAL, IROOT, &
Expand All @@ -2890,6 +2895,7 @@ SUBROUTINE W3MPIO ( IMOD )
WRITE (NDST,9011) IH, ' 4/01', IROOT, IT, IRQGO(IH), IERR
#endif
#ifdef W3_MPI
END DO
END IF
!
IF ( FLGRDALL( 4,24) ) THEN
Expand Down Expand Up @@ -4140,7 +4146,7 @@ SUBROUTINE W3MPIO ( IMOD )
! CAH: Added parameters from second partitioning scheme
!
IF ( FLGRDALL( 4, 18) ) THEN
DO K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_RECV_INIT (PHS2(I0,K),1,WW3_FIELD_VEC, IFROM, IT, &
Expand All @@ -4154,7 +4160,7 @@ SUBROUTINE W3MPIO ( IMOD )
END IF
!
IF ( FLGRDALL( 4, 19) ) THEN
DO K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_RECV_INIT (PTP2(I0,K),1,WW3_FIELD_VEC, IFROM, IT, &
Expand All @@ -4168,7 +4174,7 @@ SUBROUTINE W3MPIO ( IMOD )
END IF
!
IF ( FLGRDALL( 4, 20) ) THEN
DO K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_RECV_INIT (PDIR2(I0,K),1,WW3_FIELD_VEC, IFROM, IT, &
Expand All @@ -4182,7 +4188,7 @@ SUBROUTINE W3MPIO ( IMOD )
END IF
!
IF ( FLGRDALL( 4, 21) ) THEN
DO K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_RECV_INIT (PSI2(I0,K),1,WW3_FIELD_VEC, IFROM, IT, &
Expand All @@ -4196,7 +4202,7 @@ SUBROUTINE W3MPIO ( IMOD )
END IF
!
IF ( FLGRDALL( 4, 22) ) THEN
DO K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_RECV_INIT (PTHP02(I0,K),1,WW3_FIELD_VEC, IFROM, IT, &
Expand All @@ -4210,7 +4216,7 @@ SUBROUTINE W3MPIO ( IMOD )
END IF
!
IF ( FLGRDALL( 4, 23) ) THEN
DO K=0
DO K=0, 1
IH = IH + 1
IT = IT + 1
CALL MPI_RECV_INIT (PT12(I0,K),1,WW3_FIELD_VEC, IFROM, IT, &
Expand Down

0 comments on commit 4c80f6b

Please sign in to comment.