OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_rbymk.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!||====================================================================
25!|| w_rbymk ../starter/source/restart/ddsplit/w_rbymk.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_rbymk(NPBY,LPBY,FRONT_RM,NODLOCAL,PROC,
32 . NSLARB_L,LEN_IA)
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "com04_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER PROC, LEN_IA, NSLARB_L, NODLOCAL(*),
48 . npby(nirbym,*), lpby(*),
49 . front_rm(nrbym,*)
50C-----------------------------------------------
51C F u n c t i o n
52C-----------------------------------------------
53 INTEGER NLOCAL
54 EXTERNAL nlocal
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER NSL, K, KK, N, NN, NSL_L, J, M, ILP,
59 . npby_l(nirbym,nrbym), lpby_l(nslarb_l)
60 INTEGER, DIMENSION(:), ALLOCATABLE :: SECNDNG,INDEX,IWORK
61C
62 ilp = 0
63 k = 0
64 DO n = 1, nrbym
65 nsl=npby(2,n)
66 nsl_l = 0
67 DO kk = 1, nsl
68 nn = lpby(k+kk)
69 IF(nlocal(nn,proc+1)==1)THEN
70 nsl_l = nsl_l + 1
71 lpby_l(nsl_l+ilp) = nodlocal(nn)
72 ENDIF
73 ENDDO
74 npby_l(2,n) = nsl_l
75 m = npby(1,n)
76C optimisation pour ne pas traiter les rigid material inutiles
77 IF(nsl_l==0.AND.mod(front_rm(m,proc+1),10)==0)THEN
78 npby_l(1,n) = -m
79 ELSE
80 npby_l(1,n) = m
81 ENDIF
82 k = k + nsl
83 ilp = ilp + nsl_l
84 ENDDO
85C
86 CALL write_i_c(npby_l,nirbym*nrbym)
87 CALL write_i_c(lpby_l,nslarb_l)
88 len_ia = len_ia + nirbym*nrbym + nslarb_l
89C
90 RETURN
91 END
subroutine w_rbymk(npby, lpby, front_rm, nodlocal, proc, nslarb_l, len_ia)
Definition w_rbymk.F:33
void write_i_c(int *w, int *len)