/[lmdze]/trunk/IOIPSL/Mathelp/trans_buff.f
ViewVC logotype

Contents of /trunk/IOIPSL/Mathelp/trans_buff.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 104 - (show annotations)
Thu Sep 4 10:05:52 2014 UTC (9 years, 8 months ago) by guez
File size: 1137 byte(s)
Removed procedure sortvarc0. Called sortvarc with an additional
argument resetvarc instead. (Following LMDZ.) Moved current time
computations and some printing statements from sortvarc to
caldyn. Could then remove arguments itau and time_0 of sortvarc, and
could remove "use dynetat0". Better to keep "dynetat0.f" as a gcm-only
file.

Moved some variables from module ener to module sortvarc.

Split file "mathelp.f" into single-procedure files.

Removed unused argument nadv of adaptdt. Removed dimension arguments
of bernoui.

Removed unused argument nisurf of interfoce_lim. Changed the size of
argument lmt_sst of interfoce_lim from klon to knon. Removed case when
newlmt is false.

dynredem1 is called only once in each run, either ce0l or gcm. So
variable nb in call to nf95_put_var was always 1. Removed variable nb.

Removed dimension arguments of calcul_fluxs. Removed unused arguments
precip_rain, precip_snow, snow of calcul_fluxs. Changed the size of
all the arrays in calcul_fluxs from klon to knon.

Removed dimension arguments of fonte_neige. Changed the size of all
the arrays in fonte_neige from klon to knon.

Changed the size of arguments tsurf and tsurf_new of interfsurf_hq
from klon to knon. Changed the size of argument ptsrf of soil from
klon to knon.

1 module trans_buff_m
2
3 implicit none
4
5 contains
6
7 SUBROUTINE trans_buff (ox, sx, oy, sy, oz, sz, xsz, ysz, zsz, v3d, sl, v1d)
8 !- This subroutine extracts from the full 3D variable the slab of
9 !- data that will be used later. Perhaps there are hardware routines
10 !- for this task on some computers. This routine will be obsolete in
11 !- a F90 environnement
12
13 !- INPUT
14 !- ox : Origin of slab of data in X
15 !- sx : Size of slab in X
16 !- oy : Origin of slab of data in Y
17 !- sy : Size of slab in Y
18 !- oz : Origin of slab of data in Z
19 !- sz : Size of slab in Z
20 !- xsz, ysz, zsz : 3 sizes of full variable v3d
21 !- v3d : The full 3D variable
22 !- sl : size of variable v1d
23 !- v1d : The 1D variable containing the slab
24
25 INTEGER :: ox, sx, oy, sy, oz, sz
26 INTEGER :: xsz, ysz, zsz
27 INTEGER :: sl
28 REAL :: v3d(xsz, ysz, zsz)
29 REAL :: v1d(sl)
30
31 !---------------------------------------------------------------------
32
33 V1d(:sx*sy*sz) = reshape(V3d(ox:ox-1+sx, oy:oy-1+sy, oz:oz-1+sz), &
34 SHAPE=(/sx*sy*sz/))
35
36 END SUBROUTINE trans_buff
37
38 end module trans_buff_m

  ViewVC Help
Powered by ViewVC 1.1.21