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/phytrac.F

    r766 r776  
    6464      USE ioipsl
    6565      USE dimphy
     66      USE mod_grid_phy_lmdz
     67      USE mod_phys_lmdz_para
    6668      USE comgeomphy
    6769      USE iophy
     
    211213c$OMP THREADPRIVATE(trs)
    212214cym      SAVE trs
    213       REAL :: trs_tmp(klon2)
    214       REAL,SAVE,ALLOCATABLE :: trs_mpi(:)
     215      REAL :: trs_tmp(klon_glo)
    215216     
    216217      REAL,save,allocatable :: masktr(:,:) ! Masque reservoir de sol traceur
     
    403404         if (debutphy) then
    404405           allocate( trs(klon,nbtr) )
    405 c$OMP MASTER
    406            allocate( trs_mpi(klon_mpi) ) 
    407 c$OMP END MASTER           
    408406           allocate( masktr(klon,nbtr))
    409407           allocate( fshtr(klon,nbtr) )
     
    447445         trs(:,:) = 0.
    448446c$OMP MASTER         
    449        if (phy_rank==0) then
     447       if (is_mpi_root) then
    450448         trs_tmp(:)=0.
    451449         open (99,file='starttrac',status='old',
    452450     .         err=999,form='formatted')
    453          read(99,*) (trs_tmp(i),i=1,klon2)
     451         read(99,*) (trs_tmp(i),i=1,klon_glo)
    454452999      close(99)
    455453       endif
    456        call ScatterField(trs_tmp,trs_mpi,1)
    457454c$OMP END MASTER
    458       call ScatterField_omp(trs_mpi,trs(:,1),1)
     455       call Scatter(trs_tmp,trs(:,1))
     456
    459457c         print*, 'apres starttrac'
    460458
     
    923921      if (lafin) then
    924922         print*, 'c est la fin de la physique'
    925          call GatherField_omp(trs(:,1),trs_mpi,1)
     923         call Gather(trs(:,1),trs_tmp)
    926924c$OMP MASTER     
    927          call GatherField(trs_mpi,trs_tmp,1)
    928          if (phy_rank==0) then
     925         if (is_mpi_root) then
    929926         
    930927           open (99,file='restarttrac',  form='formatted')
    931            do i=1,klon
     928           do i=1,klon_glo
    932929               write(99,*) trs_tmp(i)
    933930           enddo
Note: See TracChangeset for help on using the changeset viewer.