OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
pnoise.F File Reference
#include "implicit_f.inc"
#include "scrnoi_c.inc"
#include "com01_c.inc"
#include "task_c.inc"
#include "param_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine pnoise (elnoi, elg, noiadd, elbuf_tab, wa, iparg)

Function/Subroutine Documentation

◆ pnoise()

subroutine pnoise ( integer, dimension(*) elnoi,
integer, dimension(*) elg,
integer, dimension(*) noiadd,
type (elbuf_struct_), dimension(ngroup), target elbuf_tab,
wa,
integer, dimension(nparg,*) iparg )

Definition at line 33 of file pnoise.F.

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
#define my_real
Definition cppsort.cpp:32
subroutine spmd_glob_dsum9(v, len)
Definition spmd_th.F:380
subroutine spmd_glob_isum9(v, len)
Definition spmd_th.F:523