OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_rwall.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/.
23C
24!||====================================================================
25!|| c_rwall ../starter/source/restart/ddsplit/c_rwall.F
26!||--- called by ------------------------------------------------------
27!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
28!||--- calls -----------------------------------------------------
29!|| nlocal ../starter/source/spmd/node/ddtools.F
30!||====================================================================
31 SUBROUTINE c_rwall(NPRW ,LPRW ,RWL ,
32 2 CEP ,PROC ,NSLAW_L ,NESLAW_L,
33 3 LWSAV_L,NSKYRW_L,LRW_PEN_L,NRW_PEN_L)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37
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 "com01_c.inc"
46#include "com04_c.inc"
47#include "param_c.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 INTEGER PROC, NSLAW_L, NESLAW_L, LWSAV_L,
52 . NSKYRW_L,
53 . lprw(*), nprw(*),
54 . cep(*)
55 INTEGER, INTENT(INOUT) :: LRW_PEN_L, NRW_PEN_L
56 my_real
57 . rwl(nrwlp,*)
58C-----------------------------------------------
59C F u n c t i o n
60C-----------------------------------------------
61 INTEGER NLOCAL
62 EXTERNAL NLOCAL
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER NSL, K, KK, N, NN, N2, N3, N4, IE, NE, ITY,
67 . NSL_L, IFQ, MSR,IPEN
68C
69 nslaw_l = 0
70 nskyrw_l= 0
71 neslaw_l= 0
72 lwsav_l = 0
73 lrw_pen_l = 0
74 nrw_pen_l = 0
75 k = 0
76 DO n = 1, nrwall
77 n2=n +nrwall
78 n3=n2+nrwall
79 n4=n3+nrwall
80 nsl=nprw(n)
81 msr = nprw(n3)
82 ity=nprw(n4)
83 ipen = nprw(n + 8*nrwall)
84 nsl_l=0
85 DO kk = 1, nsl
86 nn = lprw(k+kk)
87 IF(nlocal(nn,proc+1)==1)THEN
88 nsl_l = nsl_l + 1
89 ENDIF
90 ENDDO
91 nslaw_l = nslaw_l + nsl_l
92 IF (ipen/=0) THEN
93 lrw_pen_l = lrw_pen_l + nsl_l
94 IF (nsl_l>0) nrw_pen_l = nrw_pen_l + 1
95 ENDIF
96C memory space p/we
97 IF(ipari0/=0.AND.msr/=0) nskyrw_l = nskyrw_l + nsl_l
98 k = k + nsl
99C
100 ifq = nint(rwl(15,n))
101 IF(ifq>0) THEN
102 lwsav_l = lwsav_l + nsl_l
103 ENDIF
104C
105 IF(ity==-1)THEN
106 ne = nint(rwl(8,n))
107 IF(ne/=0) THEN
108 DO kk = 1, ne
109 ie = lprw(k+kk)/10
110C IR = LPRW(K+KK)-10*IE
111 IF(cep(ie)==proc)THEN
112 neslaw_l = neslaw_l+1
113 ENDIF
114 ENDDO
115 k = k + ne
116 ENDIF
117 ENDIF
118 ENDDO
119C
120 RETURN
121 END
subroutine c_rwall(nprw, lprw, rwl, cep, proc, nslaw_l, neslaw_l, lwsav_l, nskyrw_l, lrw_pen_l, nrw_pen_l)
Definition c_rwall.F:34