OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
init_th0.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "com04_c.inc"
#include "com10_c.inc"
#include "param_c.inc"
#include "tabsiz_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine init_th0 (iparg, elbuf_tab, igeo, ixr, th, weight)

Function/Subroutine Documentation

◆ init_th0()

subroutine init_th0 ( integer, dimension(nparg,*) iparg,
type (elbuf_struct_), dimension(ngroup) elbuf_tab,
integer, dimension(npropgi,*) igeo,
integer, dimension(nixr,*) ixr,
type (th_), intent(in), target th,
integer, dimension(numnod), intent(in) weight )

Definition at line 38 of file init_th0.F.

40C-----------------------------------------------
41C M o d u l e s
42C-----------------------------------------------
43 USE elbufdef_mod
44 USE cluster_mod
45 USE stack_mod
46 USE groupdef_mod
47 USE th_mod
49 use element_mod , only : nixr
50C-----------------------------------------------
51C I m p l i c i t T y p e s
52C-----------------------------------------------
53#include "implicit_f.inc"
54C-----------------------------------------------
55C C o m m o n B l o c k s
56C-----------------------------------------------
57#include "com01_c.inc"
58#include "com04_c.inc"
59#include "com10_c.inc"
60#include "param_c.inc"
61#include "tabsiz_c.inc"
62C-----------------------------------------------
63C D u m m y A r g u m e n t s
64C-----------------------------------------------
65 INTEGER IPARG(NPARG,*),IGEO(NPROPGI,*),IXR(NIXR,*)
66 INTEGER, DIMENSION(NUMNOD), INTENT(in) :: WEIGHT
67C REAL
68 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP) :: ELBUF_TAB
69 TYPE (TH_), INTENT(IN),TARGET :: TH
70C-----------------------------------------------
71C L o c a l V a r i a b l e s
72C-----------------------------------------------
73 LOGICAL :: BOOL
74 INTEGER :: ID,LOCAL_ID
75 INTEGER, POINTER :: ITHGR,ITHB
76 INTEGER, DIMENSION(10) :: ALREADY_DONE
77 INTEGER :: SITHBUF
78
79C=======================================================================
80
81C-------------------------------------------------------
82C TH GROUP
83C-------------------------------------------------------
84 already_done(1:10) = 0
85
86 DO id=1,9
87 IF(nthgrp01(id)/=0) THEN
88 IF(id==1) THEN
89 ithgr => th%ITHGRPA(1)
90 ithb=> th%ITHBUFA(1)
91 sithbuf = th%SITHBUFA
92 ENDIF
93 IF(id==2) THEN
94 ithgr => th%ITHGRPB(1)
95 ithb=> th%ITHBUFB(1)
96 sithbuf = th%SITHBUFB
97 ENDIF
98 IF(id==3) THEN
99 ithgr => th%ITHGRPC(1)
100 ithb =>th%ITHBUFC(1)
101 sithbuf = th%SITHBUFC
102 ENDIF
103 IF(id==4) THEN
104 ithgr => th%ITHGRPD(1)
105 ithb => th%ITHBUFD(1)
106 sithbuf = th%SITHBUFD
107 ENDIF
108 IF(id==5) THEN
109 ithgr => th%ITHGRPE(1)
110 ithb => th%ITHBUFE(1)
111 sithbuf = th%SITHBUFE
112 ENDIF
113 IF(id==6) THEN
114 ithgr => th%ITHGRPF(1)
115 ithb => th%ITHBUFF(1)
116 sithbuf = th%SITHBUFF
117 ENDIF
118 IF(id==7) THEN
119 ithgr => th%ITHGRPG(1)
120 ithb => th%ITHBUFG(1)
121 sithbuf = th%SITHBUFG
122 ENDIF
123 IF(id==8) THEN
124 ithgr => th%ITHGRPH(1)
125 ithb => th%ITHBUFH(1)
126 sithbuf = th%SITHBUFH
127 ENDIF
128 IF(id==9) THEN
129 ithgr => th%ITHGRPI(1)
130 ithb => th%ITHBUFI(1)
131 sithbuf = th%SITHBUFI
132 ENDIF
133 already_done(id) = 1
134 CALL init_th(iparg,ithb,elbuf_tab,igeo,ixr,
135 . ithgr,nthgrp1(id),id,weight,sithbuf)
136 ENDIF
137 ENDDO
138
139 id = 10
140 already_done(id) = 1
141 CALL init_th(iparg,th%ITHBUF,elbuf_tab,igeo,ixr,
142 . th%ITHGRP,nthgrp,id,weight,th%SITHBUF)
143
144 DO id=1,9
145 bool=.false.
146 IF(abfile(id)/=0) THEN
147 IF(id==2.OR.id==4.OR.id==5.OR.id==6.OR.id==7.OR.id==8.OR.id==9) THEN
148 local_id = 1
149 IF(already_done(local_id)==0) THEN
150 ithgr => th%ITHGRPA(1)
151 ithb=> th%ITHBUFA(1)
152 bool=.true.
153 ENDIF
154
155 ELSEIF(id==3) THEN
156 local_id = 2
157 IF(already_done(local_id)==0) THEN
158 ithgr => th%ITHGRPB(1)
159 ithb=> th%ITHBUFB(1)
160 bool=.true.
161 ENDIF
162 ENDIF
163 ENDIF
164 IF(bool.EQV..true.) THEN
165 already_done(local_id)=1
166 CALL init_th(iparg,ithb,elbuf_tab,igeo,ixr,
167 . ithgr,nthgrp1(id),id,weight,th%SITHBUF)
168 ENDIF
169 ENDDO
170
171
172 RETURN
subroutine init_th(iparg, ithbuf, elbuf_tab, igeo, ixr, ithgrp, nthgrp2, id, weight, sithbuf)
Definition init_th.F:49
initmumps id