OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i25sto.F File Reference
#include "implicit_f.inc"
#include "mvsiz_p.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine i25sto (j_stok, irect, x, nsv, local_i_stok, local_cand_n, local_cand_e, marge, prov_n, prov_e, eshift, nsn, nrtm, gap_s, gap_m, nbinflg, mbinflg, ilev, msegtyp, igap, gap_s_l, gap_m_l, edge_l2, icode, iskew, drad, dgapload, nrtmt)
subroutine i25s1s2 (j_stok, prov_n, prov_e, nbinflg, mbinflg, pene)

Function/Subroutine Documentation

◆ i25s1s2()

subroutine i25s1s2 ( integer j_stok,
integer, dimension(*) prov_n,
integer, dimension(*) prov_e,
integer, dimension(*) nbinflg,
integer, dimension(*) mbinflg,
pene )

Definition at line 147 of file i25sto.F.

148C-----------------------------------------------
149C I m p l i c i t T y p e s
150C-----------------------------------------------
151#include "implicit_f.inc"
152C-----------------------------------------------
153C G l o b a l P a r a m e t e r s
154C-----------------------------------------------
155#include "mvsiz_p.inc"
156C-----------------------------------------------
157C D u m m y A r g u m e n t s
158C-----------------------------------------------
159 INTEGER J_STOK,PROV_N(*),PROV_E(*),NBINFLG(*),MBINFLG(*)
160 my_real
161 . pene(mvsiz)
162C-----------------------------------------------
163C L o c a l V a r i a b l e s
164C-----------------------------------------------
165 INTEGER I,N,NE,IMS1,IMS2,ISS1,ISS2
166C-----------------------------------------------
167C
168 INTEGER BITGET
169 EXTERNAL bitget
170C=======================================================================
171 DO i=1,j_stok
172 n = prov_n(i)
173 ne = prov_e(i)
174 ims1 = bitget(mbinflg(ne),0)
175 ims2 = bitget(mbinflg(ne),1)
176 iss1 = bitget(nbinflg(n),0)
177 iss2 = bitget(nbinflg(n),1)
178 IF(.NOT.((ims1 == 1 .and. iss2==1).or.
179 . (ims2 == 1 .and. iss1==1)))THEN
180 pene(i)=zero
181 ENDIF
182 ENDDO
183C
184 RETURN
integer function bitget(i, n)
Definition bitget.F:37
#define my_real
Definition cppsort.cpp:32

◆ i25sto()

subroutine i25sto ( integer j_stok,
integer, dimension(4,*) irect,
x,
integer, dimension(*) nsv,
integer local_i_stok,
type(array_type_int_1d) local_cand_n,
type(array_type_int_1d) local_cand_e,
marge,
integer, dimension(mvsiz) prov_n,
integer, dimension(mvsiz) prov_e,
integer eshift,
integer nsn,
integer nrtm,
gap_s,
gap_m,
integer, dimension(*) nbinflg,
integer, dimension(*) mbinflg,
integer ilev,
integer, dimension(*) msegtyp,
integer igap,
gap_s_l,
gap_m_l,
edge_l2,
integer, dimension(*) icode,
integer, dimension(*) iskew,
intent(in) drad,
intent(in) dgapload,
integer, intent(in) nrtmt )

Definition at line 34 of file i25sto.F.

42C============================================================================
43 USE tri7box
44 use array_mod
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C G l o b a l P a r a m e t e r s
51C-----------------------------------------------
52#include "mvsiz_p.inc"
53C-----------------------------------------------
54C D u m m y A r g u m e n t s
55C-----------------------------------------------
56 INTEGER NSN, NRTM, NBINFLG(*),MBINFLG(*),ILEV, IGAP
57 INTEGER J_STOK,ESHIFT
58 INTEGER IRECT(4,*),NSV(*)
59 INTEGER PROV_N(MVSIZ),PROV_E(MVSIZ),local_i_stok,MSEGTYP(*),ICODE(*),ISKEW(*)
60C REAL
62 . x(3,*), gap_s(*), gap_m(*),
63 . marge,
64 . gap_s_l(*), gap_m_l(*), edge_l2(*)
65 my_real , INTENT(IN) :: dgapload ,drad
66 INTEGER , INTENT(IN) :: NRTMT
67
68 type(array_type_int_1d) :: local_cand_n
69 type(array_type_int_1d) :: local_cand_e
70C-----------------------------------------------
71C L o c a l V a r i a b l e s
72C-----------------------------------------------
73 INTEGER I,K_STOK,ITYPE
74 INTEGER IX1(MVSIZ), IX2(MVSIZ), IX3(MVSIZ), IX4(MVSIZ),
75 . ETYP(MVSIZ), IBC(MVSIZ)
76 integer :: my_old_size,my_size
77 integer, dimension(:), allocatable :: tmp_array_1,tmp_array_2
78C REAL
80 . x1(mvsiz), x2(mvsiz), x3(mvsiz), x4(mvsiz),
81 . y1(mvsiz), y2(mvsiz), y3(mvsiz), y4(mvsiz),
82 . z1(mvsiz), z2(mvsiz), z3(mvsiz), z4(mvsiz),
83 . xi(mvsiz), yi(mvsiz), zi(mvsiz), stif(mvsiz),
84 . pene(mvsiz), gapv(mvsiz)
85 DATA itype/25/
86C-----------------------------------------------
87 CALL i25cor3t( j_stok ,x ,irect ,nsv ,prov_e ,
88 1 prov_n ,x1 ,x2 ,
89 2 x3 ,x4 ,y1 ,y2 ,y3 ,
90 3 y4 ,z1 ,z2 ,z3 ,z4 ,
91 4 xi ,yi ,zi ,stif ,ix1 ,
92 5 ix2 ,ix3 ,ix4 ,nsn ,nrtm ,
93 6 marge ,gap_s,gap_m ,gapv ,itype ,
94 7 igap ,gap_s_l ,gap_m_l ,edge_l2,msegtyp,
95 8 etyp ,icode ,iskew ,ibc ,drad ,
96 9 dgapload ,nrtmt)
97C-----------------------------------------------
98 CALL i25pen3a( j_stok ,x1 ,x2 ,x3 ,x4 ,
99 . y1 ,y2 ,y3 ,y4 ,
100 . z1 ,z2 ,z3 ,z4 ,xi ,
101 . yi ,zi ,pene ,ix1 ,ix2 ,
102 . ix3 ,ix4 ,gapv ,nrtm ,etyp ,
103 . ibc ,nrtmt )
104C-----------------------------------------------
105 IF (ilev==2)
106 . CALL i25s1s2(j_stok,prov_n,prov_e,nbinflg,mbinflg,pene)
107C-----------------------------------------------
108 k_stok = 0
109 DO i=1,j_stok
110 IF(pene(i)/=zero) THEN
111 k_stok = k_stok + 1
112 END IF
113 ENDDO
114 IF(k_stok==0)RETURN
115C
116 if(local_i_stok+k_stok>local_cand_n%size_int_array_1d) then
117 my_old_size = local_cand_n%size_int_array_1d
118 my_size = (my_old_size+k_stok) * 1.25
119 allocate( tmp_array_1( my_size ) )
120 allocate( tmp_array_2( my_size ) )
121 tmp_array_1(1:my_old_size) = local_cand_n%int_array_1d(1:my_old_size)
122 tmp_array_2(1:my_old_size) = local_cand_e%int_array_1d(1:my_old_size)
123 call dealloc_1d_array(local_cand_n)
124 call dealloc_1d_array(local_cand_e)
125 call move_alloc(tmp_array_1,local_cand_n%int_array_1d)
126 call move_alloc(tmp_array_2,local_cand_e%int_array_1d)
127 local_cand_n%size_int_array_1d = my_size
128 local_cand_e%size_int_array_1d = my_size
129 endif
130 DO i=1,j_stok
131 IF(pene(i)/=zero)THEN
132 local_i_stok = local_i_stok + 1
133 local_cand_n%int_array_1d(local_i_stok) = prov_n(i)
134 local_cand_e%int_array_1d(local_i_stok) = prov_e(i)+eshift
135 ENDIF
136 ENDDO
137C-----------------------------------------------
138 RETURN
subroutine i25pen3a(jlt, x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, xi, yi, zi, pene, ix1, ix2, ix3, ix4, gapv, nrtm, etyp, ibc, nrtmt)
Definition i25pen3a.F:34
subroutine i25cor3t(jlt, x, irect, nsv, cand_e, cand_n, x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, xi, yi, zi, stif, ix1, ix2, ix3, ix4, nsn, nrtm, marge, gap_s, gap_m, gapv, ityp, igap, gap_s_l, gap_m_l, edge_l2, msegtyp, etyp, icode, iskew, ibc, drad, dgapload, nrtmt)
Definition i25cor3t.F:40
subroutine i25s1s2(j_stok, prov_n, prov_e, nbinflg, mbinflg, pene)
Definition i25sto.F:148