LMDZ
write_field_phy.F90
Go to the documentation of this file.
1 !
2 ! $Id: write_field_phy.F90 2342 2015-08-19 13:21:38Z emillour $
3 !
5 
6  ! Dump a field on the global (nbp_lon by nbp_lat) physics grid
7 
8  CONTAINS
9 
10  SUBROUTINE writefield_phy(name,Field,ll)
11  USE mod_phys_lmdz_para, ONLY: klon_omp, is_mpi_root, &
12  gather
15  USE write_field, ONLY: writefield
16 
17  IMPLICIT NONE
18 
19  CHARACTER(len=*),INTENT(IN) :: name
20  INTEGER,INTENT(IN) :: ll
21  REAL,INTENT(IN) :: Field(klon_omp,ll)
22 
23  real, dimension(klon_glo,ll):: New_Field
24  real, dimension(nbp_lon,nbp_lat,ll):: Field_2d
25 
26  CALL gather(field,new_field)
27 !$OMP MASTER
28  IF (is_mpi_root) THEN
29  CALL grid1dto2d_glo(new_field,field_2d)
30  CALL writefield(name,field_2d)
31  ENDIF
32 !$OMP END MASTER
33 
34 
35  END SUBROUTINE writefield_phy
36 
37  END MODULE write_field_phy
integer, save klon_glo
!IM Implemente en modes sequentiel et parallele CALL gather(rlat, rlat_glo) CALL bcast(rlat_glo) CALL gather(rlon
subroutine writefield_phy(name, Field, ll)