Skip to content

Commit ad4a3a6

Browse files
fix from Nick
1 parent 2b93d40 commit ad4a3a6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

model/src/w3oacpmd.F90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ SUBROUTINE CPL_OASIS_INIT(ID_LCOMM)
135135
#endif
136136
! * Argument
137137
type(MPI_COMM), INTENT(OUT) :: ID_LCOMM ! Model local communicator
138+
INTEGER :: ID_LCOMM_INT
138139
!
139140
!----------------------------------------------------------------------
140141
! * Executable part
@@ -146,7 +147,8 @@ SUBROUTINE CPL_OASIS_INIT(ID_LCOMM)
146147
ENDIF
147148
!
148149
!! Get the value of a local MPI communicator to be used by WW3 for its internal parallelisation
149-
CALL OASIS_GET_LOCALCOMM(ID_LCOMM, IL_ERR)
150+
CALL OASIS_GET_LOCALCOMM(ID_LCOMM_INT, IL_ERR)
151+
ID_LCOMM%mpi_val = ID_LCOMM_INT
150152
IF (IL_ERR /= 0) THEN
151153
CALL OASIS_ABORT(IL_COMPID, 'CPL_OASIS_INIT', 'Problem during oasis_get_localcomm')
152154
ENDIF

0 commit comments

Comments
 (0)