OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_knotloc.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_knotloc ../starter/source/restart/ddsplit/w_knotloc.F
26!||--- called by ------------------------------------------------------
27!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
28!||--- calls -----------------------------------------------------
29!|| w_knotlocpc ../starter/source/restart/ddsplit/w_knotlocpc.F
30!||====================================================================
31 SUBROUTINE w_knotloc(KXIG3D,NUMELIG3D_L,ISUMNIG3D_L,IXIG3D,CEP,
32 . PROC,NODLOCAL,LEN_IA,KNOTLOCPC,KNOTLOCEL,NUMNOD_L,
33 . NUMCONV,NUMRADIA)
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "com04_c.inc"
42#include "param_c.inc"
43#include "tabsiz_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER ,INTENT(IN) :: NUMCONV
48 INTEGER ,INTENT(IN) :: NUMRADIA
49 INTEGER NUMELIG3D_L, PROC, ISUMNIG3D_L,LEN_IA,
50 . kxig3d(nixig3d,*), cep(*), nodlocal(*), ixig3d(*),numnod_l
52 . knotlocpc(*),knotlocel(*)
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER I, NN, IAD, IAD_L, J, NB_L, NNOD, IE_L, OFF,
57 . KXIG3D_L(NIXIG3D,NUMELIG3D_L), IXIG3D_L(ISUMNIG3D_L),DECALGEO,MAXGEO
59 . knotlocpc_l(sknotlocpc),knotlocel_l(sknotlocel)
60C
61 off = numelc+numeltg+numels+numelq+numelt+numelp+numelr+
62 . numconv+numradia+slloadp/4
63 ie_l = 0
64 maxgeo=1
65C
66 DO i = 1, numelig3d
67c IF(CEP(OFF+I)==PROC) THEN
68 maxgeo= max(maxgeo,kxig3d(2,i))
69C
70 nnod = kxig3d(3,i)
71 iad = kxig3d(4,i)
72C
73 ie_l = ie_l + 1
74 DO j = 1, nixig3d
75 kxig3d_l(j,ie_l) = kxig3d(j,i)
76 ENDDO
77c DO J = 1, 6 !2*3
78c KNOTLOCEL_L((IE_L-1)*6+J) = KNOTLOCEL(J,KXIG3D(J,I))
79c ENDDO
80c ENDIF
81 ENDDO
82
83 DO j = 1, sknotlocel
84 knotlocel_l(j) = knotlocel(j)
85 ENDDO
86C
87 knotlocpc_l = 0 ! The other KNOT LCPC boxes must be empty for neodus are put to 0
88
89 CALL w_knotlocpc(knotlocpc,knotlocpc_l,maxgeo,numnod_l,nodlocal)
90C
91 CALL write_db(knotlocpc_l,sknotlocpc)
92 CALL write_db(knotlocel_l,sknotlocel)
93C
94 RETURN
95 END
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21
subroutine w_knotloc(kxig3d, numelig3d_l, isumnig3d_l, ixig3d, cep, proc, nodlocal, len_ia, knotlocpc, knotlocel, numnod_l, numconv, numradia)
Definition w_knotloc.F:34
subroutine w_knotlocpc(knotlocpc, knotlocpc_l, maxgeo, numnod_l, nodlocal)
Definition w_knotlocpc.F:30
subroutine write_db(a, n)
Definition write_db.F:142