34
35
36
37
39 use element_mod , only : nixs
40
41
42
43#include "implicit_f.inc"
44
45
46
47#include "com04_c.inc"
48#include "boltpr_c.inc"
49
50
51
52 INTEGER IXS(NIXS,*), IPRELOAD(3,*), IFLAG_BPRELOAD(*)
54 . preload(6,*), vpreload(7,*)
55
56
57
58 INTEGER IE, STAT, IPL, NE, J
59 INTEGER WORKS(70000)
60 INTEGER, DIMENSION(:), ALLOCATABLE ::ITRIS
61 INTEGER, DIMENSION(:), ALLOCATABLE ::INDEXS
62 INTEGER, DIMENSION(:), ALLOCATABLE ::KSYSUSRS
63
64
65
66 INTEGER UEL2SYS
68
69 ALLOCATE (itris(numels) ,stat=stat)
70 IF (stat /= 0) THEN
71 CALL ancmsg(msgid=268,anmode=aninfo,
72 . msgtype=msgerror,
73 . c1='ITRIS')
74 RETURN
75 END IF
76 ALLOCATE (indexs(2*numels) ,stat=stat)
77 IF (stat /= 0) THEN
78 CALL ancmsg(msgid=268,anmode=aninfo,
79 . msgtype=msgerror,
80 . c1='INDEXS')
81 RETURN
82 END IF
83 ALLOCATE (ksysusrs(2*numels),stat=stat)
84 IF (stat /= 0) THEN
85 CALL ancmsg(msgid=268,anmode=aninfo,
86 . msgtype=msgerror,
87 . c1='KSYSUSRS')
88 RETURN
89 END IF
90 itris = 0
91 indexs = 0
92 ksysusrs = 0
93
94 vpreload(1:6,1:numels) = zero
95
96 DO ie = 1, numels
97 itris(ie) = ixs(nixs,ie)
98 END DO
99 CALL my_orders(0,works,itris,indexs,numels,1)
100 DO j = 1, numels
101 ie=indexs(j)
102 ksysusrs(j) =ixs(nixs,ie)
103 ksysusrs(numels+j)=ie
104 END DO
105
106 DO ipl = 1,numpreload
107 ne = ipreload(3,ipl)
108
110 IF(ie/=0)THEN
111 vpreload(1,ie) = preload(1,ipl)
112 vpreload(2,ie) = preload(2,ipl)
113 vpreload(3,ie) = preload(3,ipl)
114 vpreload(4,ie) = preload(4,ipl)
115 vpreload(5,ie) = preload(5,ipl)
116 vpreload(6,ie) = preload(6,ipl)
117 vpreload(7,ie) = ipreload(2,ipl)
118 ENDIF
119 ENDDO
120
121 DO ie=1,numels
122 ne = ixs(nixs,ie)
124 iflag_bpreload(ie) =j
125 END DO
126
127
128 DEALLOCATE(ksysusrs,indexs,itris)
129 RETURN
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
integer function uel2sys(iu, ksysusr, numel)