OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
get_group_id.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "param_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine get_group_id (ii, ng, ig, iparg)

Function/Subroutine Documentation

◆ get_group_id()

subroutine get_group_id ( integer, intent(in) ii,
integer, intent(inout) ng,
integer, intent(inout) ig,
integer, dimension(nparg,*), intent(in) iparg )

Definition at line 28 of file get_group_id.F.

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