OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
get_group_id.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> 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 )
30C-----------------------------------------------
31C I m p l i c i t T y p e s
32C-----------------------------------------------
33#include "implicit_f.inc"
34C-----------------------------------------------
35C C o m m o n B l o c k s
36C-----------------------------------------------
37#include "com01_c.inc"
38#include "param_c.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
42 INTEGER, INTENT(IN) :: II, IPARG(NPARG,*)
43 INTEGER, INTENT(INOUT) :: NG, IG
44C-----------------------------------------------
45C L o c a l V a r i a b l e s
46C-----------------------------------------------
47 INTEGER NEL, NFL, I, NG_
48 LOGICAL DONE
49C-----------------------------------------------
50C D e s c r i p t i o n
51C-----------------------------------------------
52C Interface Type22 (/INTER/TYPE22) is an FSI coupling method based on cut cell method.
53C This experimental cut cell method is not completed, abandoned, and is not an official option.
54C
55C Defines following surjective application
56C [1:SPHI] --> [1:NGROUP] x [1:MVSIZ]
57C II |--> (NG,IG)
58C (intent IN) (intent OUT)
59C-----------------------------------------------
60C S o u r c e L i n e s
61C-----------------------------------------------
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
79C-----------------------------------------------
80 RETURN
81 END SUBROUTINE get_group_id
subroutine get_group_id(ii, ng, ig, iparg)