OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_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!|| w_rwall ../starter/source/restart/ddsplit/w_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 w_rwall(NPRW ,LPRW ,RWL ,
32 + CEP ,CEL ,NODLOCAL,PROC ,
33 + NSLAW_L,NESLAW_L ,NUMNOD_L,LEN_IA)
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 "com04_c.inc"
46#include "param_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER PROC, LEN_IA, NSLAW_L, NESLAW_L, NUMNOD_L,
51 . LPRW(*), NPRW(*),
52 . cep(*), cel(*), nodlocal(*)
54 . rwl(nrwlp,*)
55C-----------------------------------------------
56C F u n c t i o n
57C-----------------------------------------------
58 INTEGER NLOCAL
59 EXTERNAL NLOCAL
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63 INTEGER NSL, I, K, KK, N, NN, N1, N2, N3, N4, IE, NE, ITY, ILW,
64 . ILP, NSL_L, NE_L, IR, MSR
65 INTEGER, DIMENSION(:),ALLOCATABLE :: LPRW_L, NPRW_L
66C
67 IF(nrwall>0) THEN
68 ALLOCATE(nprw_l(nnprw*nrwall))
69 DO n = 1, nrwall
70 nprw_l(n) = 0
71 DO kk = 1, nnprw-1
72 nprw_l(kk*nrwall+n) = nprw(kk*nrwall+n)
73 ENDDO
74 n3 = 2*nrwall+n
75 msr = nprw(n3)
76 IF(msr/=0) THEN
77 IF(nlocal(msr,proc+1)==1) THEN
78 nprw_l(n3) = nodlocal(msr)
79 ELSE
80C noeud non present sur le proc, MSR a 0 pour eviter les comms.
81 nprw_l(n3) = 0
82 ENDIF
83 ENDIF
84 ENDDO
85C
86 IF(nslaw_l+neslaw_l>0) THEN
87 ALLOCATE(lprw_l(nslaw_l+neslaw_l))
88 k = 0
89 ilp = 0
90 DO n = 1, nrwall
91 n2=n +nrwall
92 n3=n2+nrwall
93 n4=n3+nrwall
94 nsl=nprw(n)
95 ity=nprw(n4)
96 nsl_l = 0
97 DO kk = 1, nsl
98 nn = lprw(k+kk)
99 IF(nlocal(nn,proc+1)==1)THEN
100 nsl_l = nsl_l + 1
101 lprw_l(ilp+nsl_l) = nodlocal(nn)
102 ENDIF
103 ENDDO
104 ilp = ilp + nsl_l
105 k = k + nsl
106 nprw_l(n) = nsl_l
107 IF(ity==-1)THEN
108 ne = nint(rwl(8,n))
109 ne_l = 0
110 IF(ne/=0) THEN
111 DO kk = 1, ne
112 ie = lprw(k+kk)/10
113 ir = lprw(k+kk)-10*ie
114 IF(cep(ie)==proc)THEN
115 ne_l = ne_l+1
116 lprw_l(ilp+ne_l) = cel(ie)*10+ir
117 ENDIF
118 ENDDO
119 ilp = ilp + ne_l
120 k = k + ne
121 ENDIF
122 ENDIF
123 ENDDO
124 ENDIF
125C
126 CALL write_i_c(nprw_l,nnprw*nrwall)
127 CALL write_i_c(lprw_l,nslaw_l+neslaw_l)
128 len_ia = len_ia + nnprw*nrwall + nslaw_l+neslaw_l
129 IF(nslaw_l+neslaw_l>0)DEALLOCATE(lprw_l)
130 DEALLOCATE(nprw_l)
131C
132 ENDIF
133C
134 RETURN
135 END
#define my_real
Definition cppsort.cpp:32
subroutine w_rwall(nprw, lprw, rwl, cep, cel, nodlocal, proc, nslaw_l, neslaw_l, numnod_l, len_ia)
Definition w_rwall.F:34
void write_i_c(int *w, int *len)