OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
get_group_id.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
!||====================================================================
24
!|| get_group_id ../engine/source/interfaces/int22/get_group_id.F
25
!||--- called by ------------------------------------------------------
26
!|| sinit22_fvm ../engine/source/interfaces/int22/sinit22_fvm.F
27
!||====================================================================
28
SUBROUTINE
get_group_id
(
29
1 II , NG , IG , IPARG )
30
C-----------------------------------------------
31
C I m p l i c i t T y p e s
32
C-----------------------------------------------
33
#include "implicit_f.inc"
34
C-----------------------------------------------
35
C C o m m o n B l o c k s
36
C-----------------------------------------------
37
#include "com01_c.inc"
38
#include "param_c.inc"
39
C-----------------------------------------------
40
C D u m m y A r g u m e n t s
41
C-----------------------------------------------
42
INTEGER
,
INTENT(IN)
:: II, IPARG(NPARG,*)
43
INTEGER
,
INTENT(INOUT)
:: NG, IG
44
C-----------------------------------------------
45
C L o c a l V a r i a b l e s
46
C-----------------------------------------------
47
INTEGER
NEL, NFL, I, NG_
48
LOGICAL
DONE
49
C-----------------------------------------------
50
C D e s c r i p t i o n
51
C-----------------------------------------------
52
C Interface Type22 (/INTER/TYPE22) is an FSI coupling method based on cut cell method.
53
C This experimental cut cell method is not completed, abandoned, and is not an official option.
54
C
55
C Defines following surjective application
56
C [1:SPHI] --> [1:NGROUP] x [1:MVSIZ]
57
C II |--> (NG,IG)
58
C (intent IN) (intent OUT)
59
C-----------------------------------------------
60
C S o u r c e L i n e s
61
C-----------------------------------------------
62
done=.false.
63
DO
ng_=1,ngroup
64
nel=iparg(2,ng_)
65
nfl=iparg(3,ng_)
66
IF
((ii>nfl).AND.(ii<=nfl+nel))
THEN
67
ig = ii - nfl
68
ng = ng_
69
done =.true.
70
EXIT
!exit loop
71
ELSE
72
cycle
!next NG
73
ENDIF
74
if
(.NOT.(done).OR.ii==0)
then
75
print *,
"int 22 : error in group sorting."
76
stop
77
end if
78
ENDDO
!next NG
79
C-----------------------------------------------
80
RETURN
81
END SUBROUTINE
get_group_id
get_group_id
subroutine get_group_id(ii, ng, ig, iparg)
Definition
get_group_id.F:30
engine
source
interfaces
int22
get_group_id.F
Generated by
1.15.0