OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stat_beam_spmd.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "com04_c.inc"
#include "param_c.inc"
#include "scr16_c.inc"
#include "scr17_c.inc"
#include "spmd_c.inc"
#include "task_c.inc"
#include "units_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine stat_beam_spmd (itab, ipart, ixp, ipartp, ipart_state, nodtag, stat_indxp, lengp, iparg, elbuf_tab, idel)

Function/Subroutine Documentation

◆ stat_beam_spmd()

subroutine stat_beam_spmd ( integer, dimension(*) itab,
integer, dimension(lipart1,*) ipart,
integer, dimension(nixp,*) ixp,
integer, dimension(*) ipartp,
integer, dimension(*) ipart_state,
integer, dimension(*) nodtag,
integer, dimension(*) stat_indxp,
integer lengp,
integer, dimension(nparg,*) iparg,
type (elbuf_struct_), dimension(ngroup), target elbuf_tab,
integer idel )

Definition at line 34 of file stat_beam_spmd.F.

37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE elbufdef_mod
41 USE my_alloc_mod
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C C o m m o n B l o c k s
48C-----------------------------------------------
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 "spmd_c.inc"
55#include "task_c.inc"
56#include "units_c.inc"
57C-----------------------------------------------
58C D u m m y A r g u m e n t s
59C-----------------------------------------------
60 INTEGER ITAB(*),IPART(LIPART1,*),IXP(NIXP,*),IPARTP(*),
61 . IPART_STATE(*),NODTAG(*), STAT_INDXP(*),IPARG(NPARG,*)
62 INTEGER LENGP,IDEL
63 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
64C-----------------------------------------------
65C L o c a l V a r i a b l e s
66C-----------------------------------------------
67 INTEGER I,N,JJ,IPRT,BUF,IPRT0,K,II
68 INTEGER NG,NEL,NFT,LFT,LLT,ITY,IOFF
69 INTEGER,DIMENSION(:),ALLOCATABLE::IADD
70 INTEGER,DIMENSION(:,:),ALLOCATABLE::IADG
71 INTEGER,DIMENSION(:),ALLOCATABLE::NP
72 INTEGER,DIMENSION(:),ALLOCATABLE::NPGLOB
73 INTEGER,DIMENSION(:,:),ALLOCATABLE::CLEF
74 INTEGER WORK(70000)
75 TYPE(G_BUFEL_) ,POINTER :: GBUF
76C-----------------------------------------------
77C BEAM
78C-----------------------------------------------
79 CALL my_alloc(iadg,nspmd,npart)
80 CALL my_alloc(iadd,npart+1)
81 CALL my_alloc(np,6*numelp)
82 CALL my_alloc(npglob,7*lengp)
83 CALL my_alloc(clef,2,numelpg)
84C-----------------------------------------------
85 iadd = 0
86 npglob(1:7*lengp) = 0
87C
88 jj = 0
89 ii = 0
90 DO ng=1,ngroup
91 ity = iparg(5,ng)
92 IF (ity == 5) THEN
93 nel = iparg(2,ng)
94 nft = iparg(3,ng)
95 gbuf => elbuf_tab(ng)%GBUF
96 lft=1
97 llt=nel
98c
99 DO i=lft,llt
100 n = i + nft
101 iprt=ipartp(n)
102 IF (ipart_state(iprt) /= 0) THEN
103c
104 np(jj+1) = ixp(nixp,n)
105 np(jj+2) = itab(ixp(2,n))
106 np(jj+3) = itab(ixp(3,n))
107 np(jj+4) = itab(ixp(4,n))
108 np(jj+5) = iprt
109 np(jj+6) = iabs(nint(gbuf%OFF(i)))
110c
111 ii = ii + 1
112c
113 jj = jj + 6
114c
115 stat_numelp = stat_numelp + 1
116c
117 nodtag(ixp(2,n))=1
118 nodtag(ixp(3,n))=1
119 nodtag(ixp(4,n))=1
120 ENDIF ! IF (IPART_STATE(IPRT) == 0)
121 ENDDO ! DO I=LFT,LLT
122 ENDIF ! IF (ITY == 5)
123 ENDDO ! DO NG=1,NGROUP
124C----
125 stat_numelp_g = 0
126 CALL spmd_iget_partn_sta(6,stat_numelp,stat_numelp_g,lengp,np,
127 . iadg,npglob,stat_indxp)
128C----
129 IF (ispmd == 0) THEN
130 DO n=1,stat_numelp_g
131 stat_indxp(n)=n
132 clef(1,n)=npglob(6*(n-1)+6)
133 clef(2,n)=npglob(6*(n-1)+1)
134 ENDDO
135 CALL my_orders(0,work,clef,stat_indxp,stat_numelp_g,2)
136C----
137 iprt0=0
138 DO n=1,stat_numelp_g
139 k=stat_indxp(n)
140 jj=6*(k-1)
141 iprt=npglob(jj+5)
142 ioff=npglob(jj+6)
143 IF (idel==0 .OR. (idel==1 .AND. ioff >= 1)) THEN
144 IF (iprt /= iprt0) THEN
145 WRITE(iugeo,'(A,I10)')'/BEAM/',ipart(4,iprt)
146 WRITE(iugeo,'(A)')
147 . '#BEAM_ID NOD1 NOD2 NOD3'
148 iprt0=iprt
149 ENDIF
150 WRITE(iugeo,'(4I10)') npglob(jj+1),npglob(jj+2),npglob(jj+3),
151 . npglob(jj+4)
152 ENDIF !IF (IDEL)
153 ENDDO ! DO N=1,STAT_NUMELP_G
154 ENDIF ! IF (ISPMD == 0)
155C-----------------------------------------------
156 DEALLOCATE(iadg)
157 DEALLOCATE(iadd)
158 DEALLOCATE(np)
159 DEALLOCATE(npglob)
160 DEALLOCATE(clef)
161C-----------------------------------------------
162 RETURN
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82
subroutine spmd_iget_partn_sta(size, stat_numel, stat_lenelg, leng, np, iadg, npglob, stat_indx)
Definition spmd_stat.F:129