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

« back to all changes in this revision

Viewing changes to src/base/cs_join_perio_f2c.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-2010 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 defptr &
29
 
!================
30
 
 
31
 
 ( numper, crit, fract, plane, iwarnj, tx, ty, tz )
32
 
 
33
 
!===============================================================================
34
 
! Purpose:
35
 
! -------
36
 
 
37
 
! Definition of a periodicity of translation.
38
 
 
39
 
!-------------------------------------------------------------------------------
40
 
! Arguments
41
 
!__________________.____._____.________________________________________________.
42
 
! name             !type!mode ! role                                           !
43
 
!__________________!____!_____!________________________________________________!
44
 
! numper           ! i  ! <-- ! periodicity number                             !
45
 
! crit             ! a  ! <-- ! selection criteria for the border faces to     !
46
 
!                  !    !     ! transform                                      !
47
 
! fract            ! r  ! <-- ! fraction parameter                             !
48
 
! plane            ! r  ! <-- ! face coplanarity parameter                     !
49
 
! iwarnj           ! i  ! <-- ! verbosity level                                !
50
 
! tx               ! r  ! <-- ! X coordinate of the translation vector         !
51
 
! ty               ! r  ! <-- ! Y coordinate of the translation vector         !
52
 
! tz               ! r  ! <-- ! Z coordinate of the translation vector         !
53
 
!__________________!____!_____!________________________________________________!
54
 
 
55
 
!     Type: i (integer), r (real), s (string), a (array), l (logical),
56
 
!           and composite types (ex: ra real array)
57
 
!     mode: <-- input, --> output, <-> modifies data, --- work array
58
 
!===============================================================================
59
 
 
60
 
implicit none
61
 
 
62
 
!===============================================================================
63
 
! Common blocks
64
 
!===============================================================================
65
 
 
66
 
!===============================================================================
67
 
 
68
 
! Arguments
69
 
 
70
 
character*(*)    crit
71
 
integer          iwarnj, numper
72
 
double precision fract, plane
73
 
double precision tx, ty, tz
74
 
 
75
 
! Local variables
76
 
 
77
 
integer       lcrit
78
 
 
79
 
!===============================================================================
80
 
 
81
 
lcrit = len(crit)
82
 
 
83
 
call defpt1(numper, crit, fract, plane, iwarnj, tx, ty, tz, lcrit)
84
 
!==========
85
 
 
86
 
return
87
 
 
88
 
end subroutine
89
 
 
90
 
!===============================================================================
91
 
 
92
 
subroutine defpro &
93
 
!================
94
 
 
95
 
 ( numper, crit, fract, plane, iwarnj, ax, ay, az, theta, ix, iy, iz )
96
 
 
97
 
!===============================================================================
98
 
! Purpose:
99
 
! -------
100
 
 
101
 
! Definition of a periodicity of rotation.
102
 
 
103
 
!-------------------------------------------------------------------------------
104
 
! Arguments
105
 
!__________________.____._____.________________________________________________.
106
 
! name             !type!mode ! role                                           !
107
 
!__________________!____!_____!________________________________________________!
108
 
! numper           ! i  ! <-- ! periodicity number                             !
109
 
! crit             ! a  ! <-- ! selection criteria for the border faces to     !
110
 
!                  !    !     ! transform                                      !
111
 
! fract            ! r  ! <-- ! fraction parameter                             !
112
 
! plane            ! r  ! <-- ! face coplanarity parameter                     !
113
 
! iwarnj           ! i  ! <-- ! verbosity level                                !
114
 
! ax               ! r  ! <-- ! X coordinate of the rotation axis              !
115
 
! ay               ! r  ! <-- ! Y coordinate of the rotation axis              !
116
 
! az               ! r  ! <-- ! Z coordinate of the rotation axis              !
117
 
! theta            ! r  ! <-- ! angle of the rotation (radian)                 !
118
 
! ix               ! r  ! <-- ! X coordinate of the invariant point            !
119
 
! iy               ! r  ! <-- ! Y coordinate of the invariant point            !
120
 
! iz               ! r  ! <-- ! Z coordinate of the invariant point            !
121
 
!__________________!____!_____!________________________________________________!
122
 
 
123
 
!     Type: i (integer), r (real), s (string), a (array), l (logical),
124
 
!           and composite types (ex: ra real array)
125
 
!     mode: <-- input, --> output, <-> modifies data, --- work array
126
 
!===============================================================================
127
 
 
128
 
implicit none
129
 
 
130
 
!===============================================================================
131
 
! Common blocks
132
 
!===============================================================================
133
 
 
134
 
!===============================================================================
135
 
 
136
 
! Arguments
137
 
 
138
 
character*(*)    crit
139
 
integer          iwarnj, numper
140
 
double precision fract, plane
141
 
double precision ax, ay, az, theta, ix, iy, iz
142
 
 
143
 
! Local variables
144
 
 
145
 
integer       lcrit
146
 
 
147
 
!===============================================================================
148
 
 
149
 
lcrit = len(crit)
150
 
 
151
 
call defpr1(numper, crit, fract, plane, iwarnj, &
152
 
!==========
153
 
            ax, ay, az, theta, ix, iy, iz, lcrit)
154
 
 
155
 
return
156
 
 
157
 
end subroutine
158
 
 
159
 
!===============================================================================
160
 
 
161
 
subroutine defpge &
162
 
!================
163
 
 
164
 
 ( numper, crit, fract, plane, iwarnj, &
165
 
   r11, r12, r13, tx,                  &
166
 
   r21, r22, r23, ty,                  &
167
 
   r31, r32, r33, tz )
168
 
 
169
 
!===============================================================================
170
 
! Purpose:
171
 
! -------
172
 
 
173
 
! Definition of a general periodicity.
174
 
 
175
 
!-------------------------------------------------------------------------------
176
 
! Arguments
177
 
!__________________.____._____.________________________________________________.
178
 
! name             !type!mode ! role                                           !
179
 
!__________________!____!_____!________________________________________________!
180
 
! numper           ! i  ! <-- ! periodicity number                             !
181
 
! crit             ! a  ! <-- ! selection criteria for the border faces to     !
182
 
!                  !    !     ! transform                                      !
183
 
! fract            ! r  ! <-- ! fraction parameter                             !
184
 
! plane            ! r  ! <-- ! face coplanarity parameter                     !
185
 
! iwarnj           ! i  ! <-- ! verbosity level                                !
186
 
! r11              ! r  ! <-- ! coef. (1,1) of the homogeneous matrix          !
187
 
! r12              ! r  ! <-- ! coef. (1,2) of the homogeneous matrix          !
188
 
! r13              ! r  ! <-- ! coef. (1,3) of the homogeneous matrix          !
189
 
! tx               ! r  ! <-- ! coef. (1,4) of the homogeneous matrix          !
190
 
! r21              ! r  ! <-- ! coef. (2,1) of the homogeneous matrix          !
191
 
! r22              ! r  ! <-- ! coef. (2,2) of the homogeneous matrix          !
192
 
! r23              ! r  ! <-- ! coef. (2,3) of the homogeneous matrix          !
193
 
! ty               ! r  ! <-- ! coef. (2,4) of the homogeneous matrix          !
194
 
! r31              ! r  ! <-- ! coef. (3,1) of the homogeneous matrix          !
195
 
! r32              ! r  ! <-- ! coef. (3,2) of the homogeneous matrix          !
196
 
! r33              ! r  ! <-- ! coef. (3,3) of the homogeneous matrix          !
197
 
! tz               ! r  ! <-- ! coef. (3,4) of the homogeneous matrix          !
198
 
!__________________!____!_____!________________________________________________!
199
 
 
200
 
!     Type: i (integer), r (real), s (string), a (array), l (logical),
201
 
!           and composite types (ex: ra real array)
202
 
!     mode: <-- input, --> output, <-> modifies data, --- work array
203
 
 
204
 
!===============================================================================
205
 
 
206
 
implicit none
207
 
 
208
 
!===============================================================================
209
 
! Common blocks
210
 
!===============================================================================
211
 
 
212
 
!===============================================================================
213
 
 
214
 
! Arguments
215
 
 
216
 
character*(*)    crit
217
 
integer          iwarnj, numper
218
 
double precision fract, plane
219
 
double precision r11, r12, r13, r21, r22, r23, r31, r32, r33, tx, ty, tz
220
 
 
221
 
! Local variables
222
 
 
223
 
integer       lcrit
224
 
 
225
 
!===============================================================================
226
 
 
227
 
lcrit = len(crit)
228
 
 
229
 
call defpg1(numper, crit, fract, plane, iwarnj, &
230
 
!==========
231
 
            r11, r12, r13, tx, r21, r22, r23, ty, r31, r32, r33, tz, lcrit)
232
 
 
233
 
return
234
 
 
235
 
end subroutine