~ubuntu-branches/ubuntu/precise/code-saturne/precise

« back to all changes in this revision

Viewing changes to src/base/memcli.f90

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-24 00:00:08 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20111124000008-2vo99e38267942q5
Tags: 2.1.0-3
Install a missing file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
!-------------------------------------------------------------------------------
2
 
 
3
 
!     This file is part of the Code_Saturne Kernel, element of the
4
 
!     Code_Saturne CFD tool.
5
 
 
6
 
!     Copyright (C) 1998-2009 EDF S.A., France
7
 
 
8
 
!     contact: saturne-support@edf.fr
9
 
 
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.
14
 
 
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.
19
 
 
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
25
 
 
26
 
!-------------------------------------------------------------------------------
27
 
 
28
 
subroutine memcli &
29
 
!================
30
 
 
31
 
 ( idbia0 , idbra0 ,                                              &
32
 
   ndim   , ncelet , ncel   , nfac   , nfabor , nfml   , nprfml , &
33
 
   nnod   , lndfac , lndfbr , ncelbr ,                            &
34
 
   nvar   , nscal  , nphas  ,                                     &
35
 
   isvhb  , isvtb  ,                                              &
36
 
   iicodc , ircodc ,                                              &
37
 
   iw1    , iw2    , iw3    , iw4    , iw5    , iw6    ,          &
38
 
   icoefu , irijip , iuetbo , ivsvdr , ihbord , itbord ,          &
39
 
   ifinia , ifinra )
40
 
 
41
 
!===============================================================================
42
 
!  FONCTION
43
 
!  --------
44
 
 
45
 
!  GESTION MEMOIRE CONDITIONS LIMITES
46
 
 
47
 
!-------------------------------------------------------------------------------
48
 
! Arguments
49
 
!__________________.____._____.________________________________________________.
50
 
! name             !type!mode ! role                                           !
51
 
!__________________!____!_____!________________________________________________!
52
 
! idbia0           ! i  ! <-- ! number of first free position in ia            !
53
 
! idbra0           ! i  ! <-- ! number of first free position in ra            !
54
 
! ndim             ! i  ! <-- ! spatial dimension                              !
55
 
! ncelet           ! i  ! <-- ! number of extended (real + ghost) cells        !
56
 
! ncel             ! i  ! <-- ! number of cells                                !
57
 
! nfac             ! i  ! <-- ! number of interior faces                       !
58
 
! nfabor           ! i  ! <-- ! number of boundary faces                       !
59
 
! nfml             ! i  ! <-- ! number of families (group classes)             !
60
 
! nprfml           ! i  ! <-- ! number of properties per family (group class)  !
61
 
! nnod             ! i  ! <-- ! number of vertices                             !
62
 
! lndfac           ! i  ! <-- ! size of nodfac indexed array                   !
63
 
! lndfbr           ! i  ! <-- ! size of nodfbr indexed array                   !
64
 
! ncelbr           ! i  ! <-- ! number of cells with faces on boundary         !
65
 
! nvar             ! i  ! <-- ! total number of variables                      !
66
 
! nscal            ! i  ! <-- ! total number of scalars                        !
67
 
! nphas            ! i  ! <-- ! number of phases                               !
68
 
! isvhb            ! e  ! <-- ! indicateur de stockage de hbord                !
69
 
! isvtb            ! e  ! <-- ! indicateur de stockage de tbord                !
70
 
! iicodc,ircodc    ! e  ! --> ! "pointeur" sur icodlc rcodcl                   !
71
 
! iw1,2,3,4,5,6    ! e  ! --> ! "pointeur" sur w1,2,3,4,5,6                    !
72
 
! iuetbo           ! e  ! --> ! "pointeur" sur uetbor                          !
73
 
! ihbord           ! e  ! --> ! "pointeur" sur hbord                           !
74
 
! itbord           ! e  ! --> ! "pointeur" sur hbord                           !
75
 
! irijip           ! e  ! --> ! "pointeur" sur rijipb                          !
76
 
! ivsvdr           ! e  ! --> ! "pointeur" sur visvdr                          !
77
 
! ifinia           ! i  ! --> ! number of first free position in ia (at exit)  !
78
 
! ifinra           ! i  ! --> ! number of first free position in ra (at exit)  !
79
 
!__________________.____._____.________________________________________________.
80
 
 
81
 
!     TYPE : E (ENTIER), R (REEL), A (ALPHANUMERIQUE), T (TABLEAU)
82
 
!            L (LOGIQUE)   .. ET TYPES COMPOSES (EX : TR TABLEAU REEL)
83
 
!     MODE : <-- donnee, --> resultat, <-> Donnee modifiee
84
 
!            --- tableau de travail
85
 
!===============================================================================
86
 
 
87
 
implicit none
88
 
 
89
 
!===============================================================================
90
 
! Common blocks
91
 
!===============================================================================
92
 
 
93
 
include "paramx.h"
94
 
include "optcal.h"
95
 
include "ppppar.h"
96
 
include "radiat.h"
97
 
 
98
 
!===============================================================================
99
 
 
100
 
! Arguments
101
 
 
102
 
integer          idbia0 , idbra0
103
 
integer          ndim   , ncelet , ncel   , nfac   , nfabor
104
 
integer          nfml   , nprfml
105
 
integer          nnod   , lndfac , lndfbr , ncelbr
106
 
integer          nvar   , nscal  , nphas
107
 
integer          isvhb  , isvtb
108
 
integer          iicodc , ircodc
109
 
integer          iw1    , iw2    , iw3    , iw4    , iw5    , iw6
110
 
integer          icoefu , irijip , iuetbo , ivsvdr
111
 
integer          ihbord , itbord
112
 
integer          ifinia , ifinra
113
 
 
114
 
integer          idebia , idebra, irij, iphas, iiuetb
115
 
 
116
 
!===============================================================================
117
 
 
118
 
!---> INITIALISATION
119
 
 
120
 
idebia = idbia0
121
 
idebra = idbra0
122
 
 
123
 
irij = 0
124
 
do iphas = 1, nphas
125
 
  if(itytur(iphas).eq.3) then
126
 
    irij = 1
127
 
  endif
128
 
enddo
129
 
 
130
 
iiuetb = 0
131
 
do iphas = 1, nphas
132
 
  if(itytur(iphas).eq.4.and.idries(iphas).eq.1)then
133
 
    iiuetb = 1
134
 
  endif
135
 
enddo
136
 
 
137
 
!---> PLACE MEMOIRE RESERVEE AVEC DEFINITION DE IFINIA IFINRA
138
 
 
139
 
iicodc =       idebia
140
 
ifinia =       iicodc + nfabor*nvar
141
 
 
142
 
ircodc =       idebra
143
 
iw1    =       ircodc + nfabor*nvar*3
144
 
iw2    =       iw1    + ncelet
145
 
iw3    =       iw2    + ncelet
146
 
iw4    =       iw3    + ncelet
147
 
iw5    =       iw4    + ncelet
148
 
iw6    =       iw5    + ncelet
149
 
icoefu =       iw6    + ncelet
150
 
irijip =       icoefu + nfabor*ndim
151
 
iuetbo =       irijip + nfabor*6*irij
152
 
ivsvdr =       iuetbo + nfabor*nphas*iiuetb
153
 
ifinra =       ivsvdr + ncelet*nphas*iiuetb
154
 
 
155
 
ihbord =       ifinra
156
 
if(isvhb.gt.0) then
157
 
  ifinra =       ihbord + nfabor
158
 
endif
159
 
itbord =       ifinra
160
 
if(isvtb.gt.0.or.iirayo.gt.0) then
161
 
  ifinra =       itbord + nfabor
162
 
endif
163
 
 
164
 
!---> VERIFICATION
165
 
 
166
 
CALL IASIZE('MEMCLI',IFINIA)
167
 
!==========
168
 
 
169
 
CALL RASIZE('MEMCLI',IFINRA)
170
 
!==========
171
 
 
172
 
return
173
 
end subroutine