Changeset 776 for LMDZ4/trunk/libf/phylmd/condsurf.F
- Timestamp:
- Jun 7, 2007, 12:01:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/condsurf.F
r766 r776 3 3 SUBROUTINE condsurf( jour, jourvrai, lmt_bils ) 4 4 USE dimphy 5 USE mod_grid_phy_lmdz 6 USE mod_phys_lmdz_para 5 7 IMPLICIT none 6 8 c … … 39 41 CHARACTER*20 fich 40 42 41 REAL :: lmt_bils_glo(klon2) 42 REAL,ALLOCATABLE,SAVE :: lmt_bils_mpi(:) 43 REAL :: lmt_bils_glo(klon_glo) 43 44 44 LOGICAL,SAVE :: first45 c$OMP THREADPRIVATE(first)46 45 cc 47 46 cc ..................................................................... … … 53 52 c 54 53 c 55 IF (first) THEN56 ALLOCATE(lmt_bils_mpi(klon_mpi))57 ENDIF58 54 59 55 IF (jour.LT.0 .OR. jour.GT.(360-1)) THEN … … 92 88 c 93 89 c$OMP MASTER 94 IF ( phy_rank==0) THEN90 IF (is_mpi_root) THEN 95 91 ierr = NF_OPEN (fich, NF_NOWRITE,nid) 96 92 IF (ierr.NE.NF_NOERR) THEN … … 106 102 debut(1) = 1 107 103 debut(2) = jourvrai 108 epais(1) = klon 2104 epais(1) = klon_glo 109 105 epais(2) = 1 110 c111 106 c Bilan flux de chaleur au sol: 112 107 c … … 132 127 ierr = NF_CLOSE(nid) 133 128 134 ENDIF ! phyrank==0129 ENDIF ! is_mpi_root==0 135 130 136 CALL scatterField(lmt_bils_glo,lmt_bils_mpi,1)137 131 c$OMP END MASTER 138 c$OMP BARRIER 139 CALL scatterField_omp(lmt_bils_mpi,lmt_bils,1) 132 CALL scatter(lmt_bils_glo,lmt_bils) 140 133 141 134 c
Note: See TracChangeset
for help on using the changeset viewer.