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