OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_irbe3.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!|| c_irbe3 ../starter/source/restart/ddsplit/c_irbe3.F
25!||--- called by ------------------------------------------------------
26!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
27!||--- calls -----------------------------------------------------
28!|| nlocal ../starter/source/spmd/node/ddtools.F
29!||====================================================================
30 SUBROUTINE c_irbe3(IRBE3,LRBE3,NSKYRBE3_L,PROC ,
31 . NRBE3_L,SLMN_L ,NBDDRBE3M,NRBE3PEN_L)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "com01_c.inc"
40#include "com04_c.inc"
41#include "param_c.inc"
42#include "tabsiz_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER PROC, NSKYRBE3_L,NRBE3_L,SLMN_L,NBDDRBE3M,
47 . irbe3(nrbe3l,*), lrbe3(*)
48 INTEGER, INTENT(INOUT) :: NRBE3PEN_L
49C-----------------------------------------------
50C F u n c t i o n
51C-----------------------------------------------
52 INTEGER NLOCAL
53 EXTERNAL nlocal
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER I, J, K, NSN, ILP, N,P,M,IPEN
58 INTEGER, DIMENSION(:), ALLOCATABLE :: TAGI
59C-----------------------------------------------
60! allocate 1d array
61 ALLOCATE( tagi(numnod) )
62! ----------------------------
63C
64 slmn_l = 0
65 nrbe3pen_l =0
66 DO i = 1, nrbe3
67 nsn = irbe3(5,i)
68 k = irbe3(1,i)
69 m = irbe3(3,i)
70 ipen = irbe3(9,i)
71 ilp = 0
72 DO j = 1, nsn
73 n = lrbe3(k+j)
74 IF (nlocal(n,proc+1)==1)THEN
75 ilp = ilp + 1
76 ENDIF
77 ENDDO
78C--------------pour exchange,meme sans node secnd----
79 IF (nlocal(m,proc+1)==1.OR.ilp>0)THEN
80 nrbe3_l = nrbe3_l+1
81 IF (ipen>0) nrbe3pen_l = nrbe3pen_l+1
82 END IF
83 slmn_l = slmn_l + ilp
84 ENDDO
85C
86 IF(ipari0/=0) nskyrbe3_l = slmn_l*0
87C-------------pour main nodes---------
88 DO i = 1, numnod
89 tagi(i) = 0
90 END DO
91 DO i = 1, slrbe3/2
92 n = lrbe3(i)
93 IF(nlocal(n,proc+1)==1) THEN
94 IF(tagi(n)==0) THEN
95C decompte des frontieres de main nodes
96 DO p = 1, nspmd
97 IF(nlocal(n,p)==1)THEN
98 nbddrbe3m = nbddrbe3m + 1
99 END IF
100 END DO
101C on ne se compte pas soi-meme
102 nbddrbe3m = nbddrbe3m - 1
103C pour ne pas prendre en compte 2 fois des noeuds main de RBE3 differentes ds les frontieres
104 tagi(n) = 1
105 END IF
106 ENDIF
107 END DO
108C
109! ----------------------------
110! deallocate 1d array
111 DEALLOCATE( tagi )
112! ----------------------------
113 RETURN
114 END
subroutine c_irbe3(irbe3, lrbe3, nskyrbe3_l, proc, nrbe3_l, slmn_l, nbddrbe3m, nrbe3pen_l)
Definition c_irbe3.F:32