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

« back to all changes in this revision

Viewing changes to src/base/memv2f.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 memv2f &
29
 
!================
30
 
 
31
 
 ( idbia0 , idbra0 ,                                              &
32
 
   ndim   , ncelet , ncel   , nfac   , nfabor , nfml   , nprfml , &
33
 
   nnod   , lndfac , lndfbr , ncelbr ,                            &
34
 
   nvar   , nscal  , nphas  ,                                     &
35
 
   nideve , nrdeve , nituse , nrtuse ,                            &
36
 
   idtr   , iviscf , iviscb ,                                     &
37
 
   idam   , ixam   , idrtp  ,                                     &
38
 
   ismbr  , irovsd ,                                              &
39
 
   iw1    , iw2    , iw3    , iw4    , iw5    , iw6    , iw7    , &
40
 
   iw8    , iw9    , iw10   ,                                     &
41
 
   ifinia , ifinra )
42
 
 
43
 
!===============================================================================
44
 
!  FONCTION
45
 
!  --------
46
 
 
47
 
!  GESTION MEMOIRE V2F PHI-MODEL
48
 
 
49
 
!-------------------------------------------------------------------------------
50
 
! Arguments
51
 
!__________________.____._____.________________________________________________.
52
 
! name             !type!mode ! role                                           !
53
 
!__________________!____!_____!________________________________________________!
54
 
! idbia0           ! i  ! <-- ! number of first free position in ia            !
55
 
! idbra0           ! i  ! <-- ! number of first free position in ra            !
56
 
! ndim             ! i  ! <-- ! spatial dimension                              !
57
 
! ncelet           ! i  ! <-- ! number of extended (real + ghost) cells        !
58
 
! ncel             ! i  ! <-- ! number of cells                                !
59
 
! nfac             ! i  ! <-- ! number of interior faces                       !
60
 
! nfabor           ! i  ! <-- ! number of boundary faces                       !
61
 
! nfml             ! i  ! <-- ! number of families (group classes)             !
62
 
! nprfml           ! i  ! <-- ! number of properties per family (group class)  !
63
 
! nnod             ! i  ! <-- ! number of vertices                             !
64
 
! lndfac           ! i  ! <-- ! size of nodfac indexed array                   !
65
 
! lndfbr           ! i  ! <-- ! size of nodfbr indexed array                   !
66
 
! ncelbr           ! i  ! <-- ! number of cells with faces on boundary         !
67
 
! nvar             ! i  ! <-- ! total number of variables                      !
68
 
! nscal            ! i  ! <-- ! total number of scalars                        !
69
 
! nphas            ! i  ! <-- ! number of phases                               !
70
 
! nideve, nrdeve   ! i  ! <-- ! sizes of idevel and rdevel arrays              !
71
 
! nituse, nrtuse   ! i  ! <-- ! sizes of ituser and rtuser arrays              !
72
 
! idtr             ! e  ! --> ! "pointeur" sur dtr                             !
73
 
! iviscf, b        ! e  ! --> ! "pointeur" sur viscf, viscb                    !
74
 
! idam, ixam       ! e  ! --> ! "pointeur" sur dam, xam                        !
75
 
! idrtp            ! e  ! --> ! "pointeur" sur drtp                            !
76
 
! ismbr            ! e  ! --> ! "pointeur" sur smbr                            !
77
 
! irovsd           ! e  ! --> ! "pointeur" sur rovsdt                          !
78
 
! iw1,2,...,10     ! e  ! --> ! "pointeur" sur w1 a w10                        !
79
 
! ifinia           ! i  ! --> ! number of first free position in ia (at exit)  !
80
 
! ifinra           ! i  ! --> ! number of first free position in ra (at exit)  !
81
 
!__________________.____._____.________________________________________________.
82
 
 
83
 
!     TYPE : E (ENTIER), R (REEL), A (ALPHANUMERIQUE), T (TABLEAU)
84
 
!            L (LOGIQUE)   .. ET TYPES COMPOSES (EX : TR TABLEAU REEL)
85
 
!     MODE : <-- donnee, --> resultat, <-> Donnee modifiee
86
 
!            --- tableau de travail
87
 
!===============================================================================
88
 
 
89
 
implicit none
90
 
 
91
 
!===============================================================================
92
 
! Common blocks
93
 
!===============================================================================
94
 
 
95
 
include "paramx.h"
96
 
include "numvar.h"
97
 
include "optcal.h"
98
 
 
99
 
!===============================================================================
100
 
 
101
 
! Arguments
102
 
 
103
 
integer          idbia0 , idbra0
104
 
integer          ndim   , ncelet , ncel   , nfac   , nfabor
105
 
integer          nfml   , nprfml
106
 
integer          nnod   , lndfac , lndfbr , ncelbr
107
 
integer          nvar   , nscal  , nphas
108
 
integer          nideve , nrdeve , nituse , nrtuse
109
 
 
110
 
integer          idtr
111
 
integer          iviscf , iviscb
112
 
integer          idam   , ixam
113
 
integer          idrtp  , ismbr  , irovsd
114
 
integer          iw1    , iw2    , iw3    , iw4    , iw5    , iw6
115
 
integer          iw7    , iw8    , iw9    , iw10
116
 
integer          ifinia , ifinra
117
 
 
118
 
integer          idebia, idebra
119
 
 
120
 
!===============================================================================
121
 
 
122
 
!---> INITIALISATION
123
 
 
124
 
idebia = idbia0
125
 
idebra = idbra0
126
 
 
127
 
 
128
 
!---> PLACE MEMOIRE RESERVEE AVEC DEFINITION DE IFINIA IFINRA
129
 
 
130
 
idtr   =       idebra
131
 
iviscf =       idtr   + ncelet
132
 
iviscb =       iviscf + nfac
133
 
idam   =       iviscb + nfabor
134
 
ixam   =       idam   + ncelet
135
 
idrtp  =       ixam   + nfac*2
136
 
ismbr  =       idrtp  + ncelet
137
 
irovsd =       ismbr  + ncelet
138
 
iw1    =       irovsd + ncelet
139
 
iw2    =       iw1    + ncelet
140
 
iw3    =       iw2    + ncelet
141
 
iw4    =       iw3    + ncelet
142
 
iw5    =       iw4    + ncelet
143
 
iw6    =       iw5    + ncelet
144
 
iw7    =       iw6    + ncelet
145
 
iw8    =       iw7    + ncelet
146
 
iw9    =       iw8    + ncelet
147
 
iw10   =       iw9    + ncelet
148
 
ifinra =       iw10   + ncelet
149
 
 
150
 
!---> VERIFICATION
151
 
 
152
 
CALL RASIZE('MEMV2F',IFINRA)
153
 
!==========
154
 
 
155
 
return
156
 
end subroutine