OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
pnoise.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!|| pnoise ../engine/source/general_controls/computation/pnoise.F
25!||--- called by ------------------------------------------------------
26!|| noise ../engine/source/general_controls/computation/noise.F
27!||--- calls -----------------------------------------------------
28!|| spmd_glob_dsum9 ../engine/source/mpi/interfaces/spmd_th.F
29!|| spmd_glob_isum9 ../engine/source/mpi/interfaces/spmd_th.F
30!||--- uses -----------------------------------------------------
31!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
32!||====================================================================
33 SUBROUTINE pnoise(ELNOI,ELG,NOIADD,ELBUF_TAB,WA,IPARG)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37 USE elbufdef_mod
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "scrnoi_c.inc"
46#include "com01_c.inc"
47#include "task_c.inc"
48#include "param_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER ELNOI(*),ELG(*),NOIADD(*),IPARG(NPARG,*)
54 . wa(*)
55 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I,K,NG,IWA(NNOISE),NEL,IEL
60 TYPE(g_bufel_) ,POINTER :: GBUF
61C---+----1----+----2----+----3----+----4----+----5----+----6----+----7--
62C
63 DO i=1,nnoise
64 wa(i)=zero
65 ENDDO
66 DO i=1,nnoise
67 DO k=noiadd(i),noiadd(i+1)-1
68 ng = elg(k)
69 gbuf => elbuf_tab(ng)%GBUF
70 nel = iparg(2,ng)
71 iel = elnoi(k)
72 wa(i)=wa(i)+ gbuf%SIG(iel) + gbuf%SIG(iel+nel) + gbuf%SIG(iel+2*nel)
73 ENDDO
74 ENDDO
75 IF(nspmd==1) THEN
76 DO i=1,nnoise
77 k=noiadd(i+1)-noiadd(i)
78 IF(k>0)wa(i)=wa(i)/three/float(k)
79 ENDDO
80 ELSE
81 CALL spmd_glob_dsum9(wa,nnoise)
82 DO i=1,nnoise
83 iwa(i) = noiadd(i+1)-noiadd(i)
84 ENDDO
85 CALL spmd_glob_isum9(iwa,nnoise)
86 IF(ispmd==0) THEN
87 DO i=1,nnoise
88 IF(iwa(i)>0)wa(i)=wa(i)/three/float(iwa(i))
89 ENDDO
90 ENDIF
91 ENDIF
92C-----------
93 RETURN
94 END
#define my_real
Definition cppsort.cpp:32
subroutine pnoise(elnoi, elg, noiadd, elbuf_tab, wa, iparg)
Definition pnoise.F:34
subroutine spmd_glob_dsum9(v, len)
Definition spmd_th.F:380
subroutine spmd_glob_isum9(v, len)
Definition spmd_th.F:523