OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stat_quad_spmd.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| stat_quad_spmd ../engine/source/output/sta/stat_quad_spmd.F
25!||--- called by ------------------------------------------------------
26!|| genstat ../engine/source/output/sta/genstat.F
27!||--- calls -----------------------------------------------------
28!||--- uses -----------------------------------------------------
29!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
30!|| my_alloc_mod ../common_source/tools/memory/my_alloc.F90
31!||====================================================================
32 SUBROUTINE stat_quad_spmd(ITAB,IPART,IGEO,IXQ,IPARTQ,
33 . IPART_STATE,NODTAG,STAT_INDXQ,
34 . IPARG, LENGQ, ELBUF_TAB )
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE elbufdef_mod
39 USE my_alloc_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com01_c.inc"
48#include "com04_c.inc"
49#include "param_c.inc"
50#include "scr17_c.inc"
51#include "spmd_c.inc"
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 INTEGER ITAB(*), IPART(LIPART1,*),
56 . IGEO(NPROPGI,*), IXQ(NIXQ,*),
57 . ipartq(*), ipart_state(*),
58 . nodtag(*), stat_indxq(*),
59 . iparg(nparg,*),lengq,idel
60 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 INTEGER I, N, JJ, IPRT, BUF, IPRT0, K, STAT_NUMELQ_1
65 INTEGER NG, NEL, NFT, LFT, LLT, ITY, ISOLNOD, IOFF
66 INTEGER WORK(70000)
67 INTEGER,DIMENSION(:),ALLOCATABLE::IADD
68 INTEGER,DIMENSION(:,:),ALLOCATABLE::IADG
69 INTEGER,DIMENSION(:),ALLOCATABLE::NP
70 INTEGER,DIMENSION(:),ALLOCATABLE::NPGLOB
71 INTEGER,DIMENSION(:,:),ALLOCATABLE:: CLEF
72 TYPE(g_bufel_) ,POINTER :: GBUF
73C-----------------------------------------------
74C 8 NODES BRICK
75C-----------------------------------------------
76 CALL my_alloc(iadg,nspmd,npart)
77 CALL my_alloc(iadd,npart+1)
78 CALL my_alloc(np,24*numelqg)
79 CALL my_alloc(npglob,24*numelqg)
80 CALL my_alloc(clef,2,numelqg)
81C-----------------------------------------------
82 jj = 0
83 DO ng=1,ngroup
84 ity =iparg(5,ng)
85 isolnod = iparg(28,ng)
86 nel =iparg(2,ng)
87 nft =iparg(3,ng)
88 gbuf => elbuf_tab(ng)%GBUF
89 lft=1
90 llt=nel
91 IF(ity == 2) THEN
92 DO i=lft,llt
93 n = i + nft
94
95 iprt=ipartq(n)
96 IF(ipart_state(iprt)==0)cycle
97
98
99 nodtag(ixq(2,n))=1
100 nodtag(ixq(3,n))=1
101 nodtag(ixq(4,n))=1
102 nodtag(ixq(5,n))=1
103
104
105 END DO
106 END IF
107 END DO
108
109C-----------------------------------------------
110 DEALLOCATE(iadg)
111 DEALLOCATE(iadd)
112 DEALLOCATE(np)
113 DEALLOCATE(npglob)
114 DEALLOCATE(clef)
115C-----------------------------------------------
116 RETURN
117 END
subroutine stat_quad_spmd(itab, ipart, igeo, ixq, ipartq, ipart_state, nodtag, stat_indxq, iparg, lengq, elbuf_tab)