OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_iloadp.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!|| w_iloadp ../starter/source/restart/ddsplit/w_iloadp.F
25!||--- called by ------------------------------------------------------
26!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
27!||--- calls -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE w_iloadp(
30 . ILOADP,LLOADP,NODLOCAL,PROC,LLLOADP_L,LEN_IA,P,CEP, ITAB,
31 . NUMCONV,NUMRADIA,NFXFLUX)
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 "com04_c.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER ,INTENT(IN) :: NUMCONV
44 INTEGER ,INTENT(IN) :: NUMRADIA
45 INTEGER ,INTENT(IN) :: NFXFLUX
46 INTEGER PROC, LEN_IA, LLLOADP_L,P,
47 . iloadp(sizloadp,*), lloadp(*),nodlocal(*),
48 . cep(*)
49 INTEGER,INTENT(IN) :: ITAB(NUMNOD)
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER I, J, IAD, IADL, NL, N, NLL, NN, IGRTMP(SIZLOADP,NLOADP),
54 . LGRTMP(LLLOADP_L),OFF,N1,N2,N3,N4
55C-----------------------------------------------
56C S o u r c e L i n e s
57C-----------------------------------------------
58 off = numelc+numeltg+numels+numelq+numelt+numelp+numelr+numelx+nconld+numconv+numradia+nfxflux
59 iadl = 1
60 DO i = 1, nloadp
61 nl = iloadp(1,i)
62 iad= iloadp(4,i)
63 DO j = 1, sizloadp
64 igrtmp(j,i) = iloadp(j,i)
65 ENDDO
66 nll = 0
67 DO j = 1, nl/4
68 n1= lloadp(iad+(j-1)*4)
69 n2= lloadp(iad+(j-1)*4+1)
70 n3= lloadp(iad+(j-1)*4+2)
71 n4= lloadp(iad+(j-1)*4+3)
72 IF(cep(j+off)==proc) THEN
73 lgrtmp(iadl+nll) = nodlocal(n1)
74 lgrtmp(iadl+nll+1) = nodlocal(n2)
75 lgrtmp(iadl+nll+2) = nodlocal(n3)
76 IF (n4 == 0) THEN
77 lgrtmp(iadl+nll+3) = 0
78 ELSE
79 lgrtmp(iadl+nll+3) = nodlocal(n4)
80 ENDIF
81 nll = nll + 4
82 ENDIF
83 ENDDO
84 igrtmp(1,i) = nll
85 igrtmp(4,i) = iadl
86 iadl = iadl+nll
87 off = off + nl/4
88 ENDDO
89
90 CALL write_i_c(igrtmp,sizloadp*nloadp)
91 CALL write_i_c(lgrtmp,llloadp_l)
92 len_ia = len_ia + sizloadp*nloadp + iadl-1
93
94 RETURN
95 END
subroutine w_iloadp(iloadp, lloadp, nodlocal, proc, llloadp_l, len_ia, p, cep, itab, numconv, numradia, nfxflux)
Definition w_iloadp.F:32
void write_i_c(int *w, int *len)