38 SUBROUTINE init_th0( IPARG,ELBUF_TAB,IGEO,IXR,TH,
49 use element_mod ,
only : nixr
53#include "implicit_f.inc"
61#include "tabsiz_c.inc"
65 INTEGER IPARG(NPARG,*),IGEO(NPROPGI,*),IXR(NIXR,*)
66 INTEGER,
DIMENSION(NUMNOD),
INTENT(in) :: WEIGHT
68 TYPE (ELBUF_STRUCT_),
DIMENSION(NGROUP) :: ELBUF_TAB
69 TYPE (TH_),
INTENT(IN),
TARGET :: TH
74 INTEGER :: ID,LOCAL_ID
75 INTEGER,
POINTER :: ITHGR,ITHB
76 INTEGER,
DIMENSION(10) :: ALREADY_DONE
84 already_done(1:10) = 0
87 IF(nthgrp01(id)/=0)
THEN
89 ithgr => th%ITHGRPA(1)
94 ithgr => th%ITHGRPB(1)
99 ithgr => th%ITHGRPC(1)
101 sithbuf = th%SITHBUFC
104 ithgr => th%ITHGRPD(1)
105 ithb => th%ITHBUFD(1)
106 sithbuf = th%SITHBUFD
109 ithgr => th%ITHGRPE(1)
110 ithb => th%ITHBUFE(1)
111 sithbuf = th%SITHBUFE
114 ithgr => th%ITHGRPF(1)
115 ithb => th%ITHBUFF(1)
116 sithbuf = th%SITHBUFF
119 ithgr => th%ITHGRPG(1)
120 ithb => th%ITHBUFG(1)
121 sithbuf = th%SITHBUFG
124 ithgr => th%ITHGRPH(1)
125 ithb => th%ITHBUFH(1)
126 sithbuf = th%SITHBUFH
129 ithgr => th%ITHGRPI(1)
130 ithb => th%ITHBUFI(1)
131 sithbuf = th%SITHBUFI
134 CALL init_th(iparg,ithb,elbuf_tab,igeo,ixr,
135 . ithgr,nthgrp1(id),id,weight,sithbuf)
141 CALL init_th(iparg,th%ITHBUF,elbuf_tab,igeo,ixr,
142 . th%ITHGRP,nthgrp,id,weight,th%SITHBUF)
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
149 IF(already_done(local_id)==0)
THEN
150 ithgr => th%ITHGRPA(1)
157 IF(already_done(local_id)==0)
THEN
158 ithgr => th%ITHGRPB(1)
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)
subroutine init_th(iparg, ithbuf, elbuf_tab, igeo, ixr, ithgrp, nthgrp2, id, weight, sithbuf)