OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_frbe3.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_frbe3 ../starter/source/restart/ddsplit/w_frbe3.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_frbe3(IRBE3 ,LRBE3 ,PROC ,LLRBE3_L,
32 . FRBE3 ,FRBE3AD,LEN_IA ,NRBE3PEN_L)
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C C o m m o n B l o c k s
39C-----------------------------------------------
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, LLRBE3_L, LEN_IA,
47 . irbe3(nrbe3l,*), lrbe3(*)
48 INTEGER, INTENT(IN) :: NRBE3PEN_L
50 . frbe3(6,*),frbe3ad(*)
51C-----------------------------------------------
52C F u n c t i o n
53C-----------------------------------------------
54 INTEGER NLOCAL
55 EXTERNAL nlocal
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I, J, K, KL, NSNL, NSN, ILP, NN, M, N,IAD,IADS
61 . fbtmp1(6,llrbe3_l),fbtmp2(2*llrbe3_l),fbtmp3(10*nrbe3pen_l)
62C
63 nsnl = 0
64 iads=slrbe3/2
65 DO i = 1, nrbe3
66 k = irbe3(1,i)
67 nsn = irbe3(5,i)
68 DO j = 1, nsn
69 n = lrbe3(k+j)
70 IF (nlocal(n,proc+1)==1)THEN
71 nsnl = nsnl + 1
72 DO nn =1,6
73 fbtmp1(nn,nsnl) = frbe3(nn,k+j)
74 ENDDO
75 fbtmp2(nsnl) = frbe3ad(k+j)
76 fbtmp2(nsnl+llrbe3_l) = frbe3ad(k+j+iads)
77 ENDIF
78 ENDDO
79 ENDDO
80C
81 CALL write_db(fbtmp1,llrbe3_l*6)
82 CALL write_db(fbtmp2,llrbe3_l*2)
83 IF (nrbe3pen_l>0) THEN
84 fbtmp3 =zero
85 CALL write_db(fbtmp3,10*nrbe3pen_l)
86 END IF
87 len_ia = len_ia + llrbe3_l*8 + nrbe3pen_l*10
88C
89 RETURN
90 END
#define my_real
Definition cppsort.cpp:32
subroutine w_frbe3(irbe3, lrbe3, proc, llrbe3_l, frbe3, frbe3ad, len_ia, nrbe3pen_l)
Definition w_frbe3.F:33
subroutine write_db(a, n)
Definition write_db.F:140