LMDZ
write_field_phy.F90
Go to the documentation of this file.
1 !
2 ! $Id$
3 !
4 MODULE write_field_phy
5 
6  CONTAINS
7 
8  SUBROUTINE writefield_phy(name,Field,ll)
9  USE dimphy
12  USE write_field
13 
14  IMPLICIT NONE
15  include 'dimensions.h'
16  include 'paramet.h'
17 
18  character(len=*) :: name
19  INTEGER :: ll
20  real, dimension(klon_omp,ll) :: Field
21  real,save,allocatable :: Field_tmp(:,:)
22  real, dimension(klon_glo,ll):: New_Field
23  real, dimension(iim,jjp1,ll):: Field_2d
24 
25  CALL gather(field,new_field)
26 !$OMP MASTER
27  IF (is_mpi_root) THEN
28  CALL grid1dto2d_glo(new_field,field_2d)
29  CALL writefield(name,field_2d)
30  ENDIF
31 !$OMP END MASTER
32 
33 
34  END SUBROUTINE writefield_phy
35 
36  END MODULE write_field_phy
!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)
Definition: dimphy.F90:1