Ignore:
Timestamp:
Jun 7, 2007, 12:01:52 PM (17 years ago)
Author:
Laurent Fairhead
Message:

Suite du merge entre la version et la HEAD: quelques modifications
de Yann sur le

LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phylmd/condsurf.F

    r766 r776  
    33      SUBROUTINE condsurf( jour, jourvrai, lmt_bils )
    44      USE dimphy
     5      USE mod_grid_phy_lmdz
     6      USE mod_phys_lmdz_para
    57      IMPLICIT none
    68c
     
    3941      CHARACTER*20 fich
    4042     
    41       REAL :: lmt_bils_glo(klon2)
    42       REAL,ALLOCATABLE,SAVE :: lmt_bils_mpi(:)
     43      REAL :: lmt_bils_glo(klon_glo)
    4344     
    44       LOGICAL,SAVE :: first
    45 c$OMP THREADPRIVATE(first)
    4645cc
    4746cc   .....................................................................
     
    5352c
    5453c
    55       IF (first) THEN
    56         ALLOCATE(lmt_bils_mpi(klon_mpi))
    57       ENDIF
    5854     
    5955      IF (jour.LT.0 .OR. jour.GT.(360-1)) THEN
     
    9288c
    9389c$OMP MASTER
    94       IF (phy_rank==0) THEN
     90      IF (is_mpi_root) THEN
    9591      ierr = NF_OPEN (fich, NF_NOWRITE,nid)
    9692      IF (ierr.NE.NF_NOERR) THEN
     
    106102      debut(1) = 1
    107103      debut(2) = jourvrai
    108       epais(1) = klon2
     104      epais(1) = klon_glo
    109105      epais(2) = 1
    110 c
    111106c Bilan flux de chaleur au sol:
    112107c
     
    132127      ierr = NF_CLOSE(nid)
    133128     
    134       ENDIF ! phyrank==0
     129      ENDIF ! is_mpi_root==0
    135130
    136       CALL scatterField(lmt_bils_glo,lmt_bils_mpi,1)
    137131c$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)
    140133           
    141134c
Note: See TracChangeset for help on using the changeset viewer.