36
37
38
39 USE elbufdef_mod
40 USE my_alloc_mod
41 use element_mod , only : nixt
42
43
44
45#include "implicit_f.inc"
46
47
48
49#include "com01_c.inc"
50#include "com04_c.inc"
51#include "param_c.inc"
52#include "scr16_c.inc"
53#include "scr17_c.inc"
54#include "units_c.inc"
55
56
57
58 INTEGER ITAB(*),IPART(LIPART1,*),IXT(NIXT,*),IPARTT(*),
59 . IPART_STATE(*),NODTAG(*),STAT_INDXT(*),IPARG(NPARG,*)
60 INTEGER IDEL
61 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
62
63
64
65 INTEGER I,N,JJ,IPRT0,,K,II
66 INTEGER NG,NEL,NFT,LFT,LLT,,IOFF
67 INTEGER WORK(70000)
68 INTEGER,DIMENSION(:,:),ALLOCATABLE :: CLEF
69 INTEGER,DIMENSION(:),ALLOCATABLE :: NP
70
71 TYPE(G_BUFEL_) ,POINTER :: GBUF
72
73 CALL my_alloc(np,5*numelt)
74 CALL my_alloc(clef,2,numelt)
75
76
77
78 jj = 0
79 ii = 0
80 IF (numelt /= 0) THEN
81
82 DO ng=1,ngroup
83 ity = iparg(5,ng)
84 IF (ity == 4) THEN
85 nel = iparg(2,ng)
86 nft = iparg(3,ng)
87 gbuf => elbuf_tab(ng)%GBUF
88 lft=1
89 llt=nel
90
91 DO i=lft,llt
92 n = i + nft
93 iprt=ipartt(n)
94 IF (ipart_state(iprt) /= 0) THEN
95
96 np(jj+1) = ixt(nixt,n)
97 np(jj+2) = itab(ixt(2,n))
98 np(jj+3) = itab(ixt(3,n))
99 np(jj+4) = iprt
100 np(jj+5) = iabs(nint(gbuf%OFF(i)))
101
102 ii = ii + 1
103
104 jj = jj + 5
105
106 stat_numelt =stat_numelt+1
107 clef(1,stat_numelt)=iprt
108 clef(2,stat_numelt)=ixt(nixt,n)
109
110 nodtag(ixt(2,n))=1
111 nodtag(ixt(3,n))=1
112 ENDIF
113 ENDDO
114 ENDIF
115 ENDDO
116 ENDIF
117
118 DO n=1,stat_numelt
119 stat_indxt(n)=n
120 ENDDO
121 CALL my_orders(0,work,clef,stat_indxt,stat_numelt,2)
122
123 iprt0=0
124 DO n=1,stat_numelt
125 k=stat_indxt(n)
126 jj=5*(k-1)
127 iprt=np(jj+4)
128 ioff=np(jj+5)
129 IF (idel==0 .OR. (idel==1 .AND. ioff >= 1)) THEN
130 IF (iprt /= iprt0) THEN
131 WRITE(iugeo,'(A,I10)')'/TRUSS/',ipart(4,iprt)
132 WRITE(iugeo,'(A)')
133 . '#TRUSS_ID NOD1 NOD2'
134 iprt0=iprt
135 ENDIF
136 WRITE(iugeo,'(3I10)') np(jj+1),np(jj+2),np(jj+3)
137 ENDIF
138 ENDDO
139
140
141 DEALLOCATE(np)
142 DEALLOCATE(clef)
143
144 RETURN
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)