Changeset 776 for LMDZ4/trunk/libf/phylmd/phytrac.F
- Timestamp:
- Jun 7, 2007, 12:01:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/phytrac.F
r766 r776 64 64 USE ioipsl 65 65 USE dimphy 66 USE mod_grid_phy_lmdz 67 USE mod_phys_lmdz_para 66 68 USE comgeomphy 67 69 USE iophy … … 211 213 c$OMP THREADPRIVATE(trs) 212 214 cym SAVE trs 213 REAL :: trs_tmp(klon2) 214 REAL,SAVE,ALLOCATABLE :: trs_mpi(:) 215 REAL :: trs_tmp(klon_glo) 215 216 216 217 REAL,save,allocatable :: masktr(:,:) ! Masque reservoir de sol traceur … … 403 404 if (debutphy) then 404 405 allocate( trs(klon,nbtr) ) 405 c$OMP MASTER406 allocate( trs_mpi(klon_mpi) )407 c$OMP END MASTER408 406 allocate( masktr(klon,nbtr)) 409 407 allocate( fshtr(klon,nbtr) ) … … 447 445 trs(:,:) = 0. 448 446 c$OMP MASTER 449 if ( phy_rank==0) then447 if (is_mpi_root) then 450 448 trs_tmp(:)=0. 451 449 open (99,file='starttrac',status='old', 452 450 . err=999,form='formatted') 453 read(99,*) (trs_tmp(i),i=1,klon 2)451 read(99,*) (trs_tmp(i),i=1,klon_glo) 454 452 999 close(99) 455 453 endif 456 call ScatterField(trs_tmp,trs_mpi,1)457 454 c$OMP END MASTER 458 call ScatterField_omp(trs_mpi,trs(:,1),1) 455 call Scatter(trs_tmp,trs(:,1)) 456 459 457 c print*, 'apres starttrac' 460 458 … … 923 921 if (lafin) then 924 922 print*, 'c est la fin de la physique' 925 call Gather Field_omp(trs(:,1),trs_mpi,1)923 call Gather(trs(:,1),trs_tmp) 926 924 c$OMP MASTER 927 call GatherField(trs_mpi,trs_tmp,1) 928 if (phy_rank==0) then 925 if (is_mpi_root) then 929 926 930 927 open (99,file='restarttrac', form='formatted') 931 do i=1,klon 928 do i=1,klon_glo 932 929 write(99,*) trs_tmp(i) 933 930 enddo
Note: See TracChangeset
for help on using the changeset viewer.