88 |
|
|
89 |
function gr_phy_write_3d(pfi) |
function gr_phy_write_3d(pfi) |
90 |
|
|
91 |
! Transforme une variable dépendant de la position verticale de la |
! Transforme une variable de la grille physique à la grille d'écriture. |
|
! grille physique à la grille d'écriture. |
|
92 |
! The grid for output files does not duplicate the first longitude |
! The grid for output files does not duplicate the first longitude |
93 |
! in the last longitude. |
! in the last longitude. |
94 |
|
! Input array has rank 2. Horizontal index is in the first dimension. |
95 |
|
|
96 |
use dimphy, only: klon |
use dimphy, only: klon |
|
use dimens_m, only: llm |
|
97 |
use numer_rec, only: assert |
use numer_rec, only: assert |
98 |
|
|
99 |
REAL, intent(in):: pfi(:, :) |
REAL, intent(in):: pfi(:, :) |
100 |
real gr_phy_write_3d(iim, jjm + 1, llm) |
real gr_phy_write_3d(iim, jjm + 1, size(pfi, 2)) |
101 |
|
|
102 |
! Variable local to the procedure: |
! Variable local to the procedure: |
103 |
integer l |
integer l |
104 |
|
|
105 |
!----------------------------------------------------------------------- |
!----------------------------------------------------------------------- |
106 |
|
|
107 |
call assert(shape(pfi) == (/klon, llm/), "gr_phy_write_3d") |
call assert(size(pfi, 1) == klon, "gr_phy_write_3d") |
108 |
|
|
109 |
do l = 1, llm |
do l = 1, size(pfi, 2) |
110 |
gr_phy_write_3d(:, :, l) = gr_phy_write_2d(pfi(:, l)) |
gr_phy_write_3d(:, :, l) = gr_phy_write_2d(pfi(:, l)) |
111 |
end do |
end do |
112 |
|
|