From 9be15d9f9d01cfc0e1e6338005d919a9ee4f876a Mon Sep 17 00:00:00 2001 From: ackerlar Date: Thu, 10 Oct 2024 13:20:55 +0200 Subject: [PATCH] change commRank type to integer --- src/cpl_driver.F90 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpl_driver.F90 b/src/cpl_driver.F90 index 8aa733bdc..9e62800de 100644 --- a/src/cpl_driver.F90 +++ b/src/cpl_driver.F90 @@ -57,7 +57,7 @@ module cpl_driver integer :: localRank ! local MPI rank integer :: localSize ! local MPI size integer :: localComm ! local MPI size - logical :: commRank ! true for ranks doing OASIS communication + integer :: commRank integer :: comp_id ! id returned by oasis_init_comp logical, save :: oasis_was_initialized @@ -774,11 +774,11 @@ subroutine cpl_oasis3mct_define_unstr(partit, mesh) !------------------------------------------------------------------ call oasis_enddef(ierror) - if (commRank) print *, 'fesom oasis_enddef: COMPLETED' + if (ierror .eq. oasis_ok) print *, 'fesom oasis_enddef: COMPLETED' #ifndef __oifs - if (commRank) print *, 'FESOM: calling exchange_roots' + if (ierror .eq. oasis_ok) print *, 'FESOM: calling exchange_roots' call exchange_roots(source_root, target_root, 1, partit%MPI_COMM_FESOM, MPI_COMM_WORLD) - if (commRank) print *, 'FESOM source/target roots: ', source_root, target_root + if (ierror .eq. oasis_ok) print *, 'FESOM source/target roots: ', source_root, target_root #endif ! WAS VOM FOLGENDEN BRAUCHE ICH NOCH ??? @@ -1006,4 +1006,4 @@ end module cpl_driver #else module cpl_driver end module cpl_driver -#endif \ No newline at end of file +#endif