|
Last change
on this file since 1534 was
1523,
checked in by emillour, 10 years ago
|
|
All models: More updates to make planetary codes (+Earth) setups converge.
- in dyn3d_common:
- convmas.F => convmas.F90
- enercin.F => enercin.F90
- flumass.F => flumass.F90
- massbar.F => massbar.F90
- tourpot.F => tourpot.F90
- vitvert.F => vitvert.F90
- in misc:
- move "q_sat" from "dyn3d_common" to "misc" (in Earth model, it is also called
by the physics)
- move "write_field" from "dyn3d_common" to "misc"(may be called from physics
or dynamics and depends on neither).
- in phy_common:
- move "write_field_phy" here since it may be called from any physics package)
- add module "regular_lonlat_mod" to store global information on lon-lat grid
- in dynlonlat_phylonlat/phy*:
- turn "iniphysiq.F90" into module "iniphysiq_mod.F90"
(and of course adapt gcm.F[90] and 1D models accordingly)
EM
|
|
File size:
736 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 | 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 |
|---|
Note: See
TracBrowser
for help on using the repository browser.