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!|| element_mod ../common_source/modules/elements/element_mod.F90
31!|| my_alloc_mod ../common_source/tools/memory/my_alloc.F90
32!||====================================================================
33 SUBROUTINE stat_quad_spmd(ITAB,IPART,IGEO,IXQ,IPARTQ,
34 . IPART_STATE,NODTAG,STAT_INDXQ,
35 . IPARG, LENGQ, ELBUF_TAB )
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE elbufdef_mod
40 USE my_alloc_mod
41 use element_mod , only : nixq
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 "scr17_c.inc"
53#include "spmd_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER ITAB(*), IPART(LIPART1,*),
58 . IGEO(NPROPGI,*), IXQ(NIXQ,*),
59 . ipartq(*), ipart_state(*),
60 . nodtag(*), stat_indxq(*),
61 . iparg(nparg,*),lengq
62 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER I, N, JJ, IPRT
67 INTEGER NG, NEL, NFT, LFT, LLT, ITY, ISOLNOD
68 INTEGER,DIMENSION(:),ALLOCATABLE::IADD
69 INTEGER,DIMENSION(:,:),ALLOCATABLE::IADG
70 INTEGER,DIMENSION(:),ALLOCATABLE::NP
71 INTEGER,DIMENSION(:),ALLOCATABLE::NPGLOB
72 INTEGER,DIMENSION(:,:),ALLOCATABLE:: CLEF
73 TYPE(g_bufel_) ,POINTER :: GBUF
74C-----------------------------------------------
75C 8 NODES BRICK
76C-----------------------------------------------
77 CALL my_alloc(iadg,nspmd,npart)
78 CALL my_alloc(iadd,npart+1)
79 CALL my_alloc(np,24*numelqg)
80 CALL my_alloc(npglob,24*numelqg)
81 CALL my_alloc(clef,2,numelqg)
82C-----------------------------------------------
83 jj = 0
84 DO ng=1,ngroup
85 ity =iparg(5,ng)
86 isolnod = iparg(28,ng)
87 nel =iparg(2,ng)
88 nft =iparg(3,ng)
89 gbuf => elbuf_tab(ng)%GBUF
90 lft=1
91 llt=nel
92 IF(ity == 2) THEN
93 DO i=lft,llt
94 n = i + nft
95
96 iprt=ipartq(n)
97 IF(ipart_state(iprt)==0)cycle
98
99
100 nodtag(ixq(2,n))=1
101 nodtag(ixq(3,n))=1
102 nodtag(ixq(4,n))=1
103 nodtag(ixq(5,n))=1
104
105
106 END DO
107 END IF
108 END DO
109
110C-----------------------------------------------
111 DEALLOCATE(iadg)
112 DEALLOCATE(iadd)
113 DEALLOCATE(np)
114 DEALLOCATE(npglob)
115 DEALLOCATE(clef)
116C-----------------------------------------------
117 RETURN
118 END
subroutine stat_quad_spmd(itab, ipart, igeo, ixq, ipartq, ipart_state, nodtag, stat_indxq, iparg, lengq, elbuf_tab)