1
!-------------------------------------------------------------------------------
3
! This file is part of the Code_Saturne Kernel, element of the
4
! Code_Saturne CFD tool.
6
! Copyright (C) 1998-2009 EDF S.A., France
8
! contact: saturne-support@edf.fr
10
! The Code_Saturne Kernel is free software; you can redistribute it
11
! and/or modify it under the terms of the GNU General Public License
12
! as published by the Free Software Foundation; either version 2 of
13
! the License, or (at your option) any later version.
15
! The Code_Saturne Kernel is distributed in the hope that it will be
16
! useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17
! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
! GNU General Public License for more details.
20
! You should have received a copy of the GNU General Public License
21
! along with the Code_Saturne Kernel; if not, write to the
22
! Free Software Foundation, Inc.,
23
! 51 Franklin St, Fifth Floor,
24
! Boston, MA 02110-1301 USA
26
!-------------------------------------------------------------------------------
31
( idbia0 , idbra0 , ifinia , ifinra , ra )
32
!===============================================================================
36
! MEMORY MANAGEMENT FOR THE ATMOSPHERIC SPECIFIC PHYSICS MODULE
38
!-------------------------------------------------------------------------------
40
!__________________.____._____.________________________________________________.
41
! name !type!mode ! role !
42
!__________________!____!_____!________________________________________________!
43
! idbia0 ! i ! <-- ! number of first free position in ia !
44
! idbra0 ! i ! <-- ! number of first free position in ra !
45
! ifinia ! i ! --> ! number of first free position in ia (at exit) !
46
! ifinra ! i ! --> ! number of first free position in ra (at exit) !
47
!__________________.____._______________.________________________________________________!
49
! TYPE : E (ENTIER), R (REEL), A (ALPHANUMERIQUE), T (TABLEAU)
50
! L (LOGIQUE) .. ET TYPES COMPOSES (EX : TR TABLEAU REEL)
51
! MODE : <-- donnee, --> resultat, <-> Donnee modifiee
52
! --- tableau de travail
53
!===============================================================================
57
!===============================================================================
59
!===============================================================================
66
!===============================================================================
70
integer idbia0, idbra0, ifinia, ifinra
71
double precision ra(*)
75
integer idebia, idebra, imode
76
double precision rvoid(1)
78
!===============================================================================
80
!===============================================================================
85
!===============================================================================
86
! 2. MEMORY MANAGEMENT FOR THE METEO PROFILES
87
!===============================================================================
89
! 2.1 READING THE METEO FILE IN ORDER TO ESTIMATE THE REQUIRED SIZE OF
91
!-------------------------------------------------------------------------------
96
! Nb les arguments ne sont pas utilises quand IMODE=0
100
rvoid , rvoid , rvoid , &
101
rvoid , rvoid , rvoid , &
105
rvoid , rvoid , rvoid )
109
! 2.2 MEMORY MANAGEMENT :
110
! ------------------------
119
izdmet = itmmet + nbmetm
120
iztmet = izdmet + nbmetd
121
iumet = iztmet + nbmett
122
ivmet = iumet + nbmetd*nbmetm
123
iwmet = ivmet + nbmetd*nbmetm
124
iekmet = iwmet + nbmetd*nbmetm
125
iepmet = iekmet + nbmetd*nbmetm
126
ittmet = iepmet + nbmetd*nbmetm
127
iqvmet = ittmet + nbmett*nbmetm
128
ipmer = iqvmet + nbmett*nbmetm
129
ixmet = ipmer + nbmetm
130
iymet = ixmet + nbmetm
131
irmet = iymet + nbmetm
132
itpmet = irmet + nbmett*nbmetm
133
iphmet = itpmet + nbmett*nbmetm
134
ifinra = iphmet + nbmett*nbmetm
138
CALL IASIZE('MEMATM',IFINIA)
141
CALL RASIZE('MEMATM',IFINRA)