Last change
on this file since 3814 was
3814,
checked in by ymipsl, 10 years ago
|
remove all dynamic dependency in LMDZ physics except for the include "dimensions.h"
YM
|
File size:
692 bytes
|
Line | |
---|
1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | MODULE write_field_phy |
---|
5 | |
---|
6 | CONTAINS |
---|
7 | |
---|
8 | SUBROUTINE WriteField_phy(name,Field,ll) |
---|
9 | USE dimphy |
---|
10 | USE mod_phys_lmdz_para |
---|
11 | USE mod_grid_phy_lmdz |
---|
12 | USE Write_Field |
---|
13 | |
---|
14 | IMPLICIT NONE |
---|
15 | |
---|
16 | character(len=*) :: name |
---|
17 | INTEGER :: ll |
---|
18 | real, dimension(klon_omp,ll) :: Field |
---|
19 | real,save,allocatable :: Field_tmp(:,:) |
---|
20 | real, dimension(klon_glo,ll):: New_Field |
---|
21 | real, dimension(nbp_lon,nbp_lat,ll):: Field_2d |
---|
22 | |
---|
23 | CALL Gather(Field,New_Field) |
---|
24 | !$OMP MASTER |
---|
25 | IF (is_mpi_root) THEN |
---|
26 | CALL Grid1Dto2D_glo(New_Field,Field_2D) |
---|
27 | CALL WriteField(name,Field_2d) |
---|
28 | ENDIF |
---|
29 | !$OMP END MASTER |
---|
30 | |
---|
31 | |
---|
32 | END SUBROUTINE WriteField_phy |
---|
33 | |
---|
34 | END MODULE write_field_phy |
---|
Note: See
TracBrowser
for help on using the repository browser.