Ignore:
Timestamp:
Jun 30, 2023, 8:18:43 PM (11 months ago)
Author:
yann meurdesoif
Message:

Suppress CPP_MPI key usage in source code. MPI wrappers is used to supress missing symbol if the mpi library is not linked

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dynphy_lonlat/calfis_loc.F

    r4464 r4600  
    3838      USE IOPHY
    3939#endif
     40      USE lmdz_mpi
     41
    4042#ifdef CPP_PARA
    4143      USE parallel_lmdz,ONLY:omp_chunk,using_mpi,jjb_u,jje_u,jjb_v,jje_v
     
    117119      include "comgeom2.h"
    118120      include "iniprint.h"
    119 #ifdef CPP_MPI
    120       include 'mpif.h'
    121 #endif
    122121c    Arguments :
    123122c    -----------
     
    233232      REAL,SAVE,dimension(1:iim,1:llm):: du_send,du_recv,dv_send,dv_recv
    234233      INTEGER :: ierr
    235 #ifdef CPP_MPI
    236234      INTEGER,dimension(MPI_STATUS_SIZE,4) :: Status
    237 #else
    238       INTEGER,dimension(1,4) :: Status
    239 #endif
    240235      INTEGER, dimension(4) :: Req
    241236      REAL,ALLOCATABLE,SAVE:: zdufi2(:,:),zdvfi2(:,:)
     
    873868
    874869c$OMP BARRIER
    875 #ifdef CPP_MPI
     870
    876871c$OMP MASTER
    877872!$OMP CRITICAL (MPI)
     
    882877!$OMP END CRITICAL (MPI)
    883878c$OMP END MASTER
    884 #endif
     879
    885880c$OMP BARRIER
    886881     
     
    889884      if (MPI_rank<MPI_Size-1) then
    890885c$OMP BARRIER
    891 #ifdef CPP_MPI
     886
    892887c$OMP MASTER     
    893888!$OMP CRITICAL (MPI)
     
    898893!$OMP END CRITICAL (MPI)
    899894c$OMP END MASTER
    900 #endif
     895
    901896      endif
    902897
     
    904899
    905900
    906 #ifdef CPP_MPI
    907901c$OMP MASTER   
    908902!$OMP CRITICAL (MPI)
     
    916910!$OMP END CRITICAL (MPI)
    917911c$OMP END MASTER
    918 #endif
    919912
    920913c$OMP BARRIER     
Note: See TracChangeset for help on using the changeset viewer.