OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
write_nloc_struct.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!|| write_nloc_struct ../engine/source/output/restart/write_nloc_struct.F
25!||--- called by ------------------------------------------------------
26!|| wrrestp ../engine/source/output/restart/wrrestp.F
27!||--- calls -----------------------------------------------------
28!|| write_db ../common_source/tools/input_output/write_db.F
29!|| write_i_c ../common_source/tools/input_output/write_routtines.c
30!||--- uses -----------------------------------------------------
31!|| nlocal_reg_mod ../common_source/modules/nlocal_reg_mod.F
32!||====================================================================
33 SUBROUTINE write_nloc_struct(NLOC_DMG)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "com04_c.inc"
46#include "com01_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 TYPE (NLOCAL_STR_),TARGET :: NLOC_DMG
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER I,ILOC,NNOD,L_NLOC,NUMELS_NL,NUMELC_NL,NDDMAX,
55 . NUMELTG_NL,LCNE_NL
56 my_real, DIMENSION(:), POINTER :: fnl
57 INTEGER, DIMENSION(8) ::
58 . HEAD
59C=======================================================================
60 iloc = nloc_dmg%IMOD
61 nnod = nloc_dmg%NNOD
62 l_nloc = nloc_dmg%L_NLOC
63 numels_nl = nloc_dmg%NUMELS_NL
64 numelc_nl = nloc_dmg%NUMELC_NL
65 numeltg_nl = nloc_dmg%NUMELTG_NL
66 nddmax = nloc_dmg%NDDMAX
67 lcne_nl = nloc_dmg%LCNE_NL
68 head(1) = iloc
69 head(2) = nnod
70 head(3) = l_nloc
71 head(4) = numels_nl
72 head(5) = numelc_nl
73 head(6) = numeltg_nl
74 head(7) = nddmax
75 head(8) = lcne_nl
76 CALL write_i_c(head,8)
77c
78 IF (iloc > 0) THEN
79c
80 CALL write_db(nloc_dmg%DENS,nummat)
81c
82 CALL write_db(nloc_dmg%DAMP,nummat)
83c
84 CALL write_db(nloc_dmg%LEN,nummat)
85c
86 CALL write_db(nloc_dmg%LE_MAX,nummat)
87c
88 CALL write_db(nloc_dmg%SSPNL,nummat)
89c
90 CALL write_i_c(nloc_dmg%INDX,nnod)
91c
92 CALL write_i_c(nloc_dmg%POSI,nnod+1)
93c
94 CALL write_i_c(nloc_dmg%IDXI,numnod)
95c
96 ! If PARITH/ON
97 IF (ipari0 == 1) THEN
98c
99 CALL write_i_c(nloc_dmg%ADDCNE,nnod+1)
100c
101 CALL write_i_c(nloc_dmg%PROCNE,lcne_nl)
102c
103 CALL write_i_c(nloc_dmg%IADS,8*numels_nl)
104c
105 CALL write_i_c(nloc_dmg%IADC,4*numelc_nl)
106c
107 CALL write_i_c(nloc_dmg%IADTG,3*numeltg_nl)
108c
109 ENDIF
110c
111 CALL write_db(nloc_dmg%MASS,l_nloc)
112c
113 CALL write_db(nloc_dmg%MASS0,l_nloc)
114c
115 fnl => nloc_dmg%FNL(1:l_nloc,1)
116 CALL write_db(fnl,l_nloc)
117c
118 CALL write_db(nloc_dmg%VNL,l_nloc)
119c
120 CALL write_db(nloc_dmg%VNL_OLD,l_nloc)
121c
122 CALL write_db(nloc_dmg%DNL,l_nloc)
123c
124 CALL write_db(nloc_dmg%UNL,l_nloc)
125c---
126 ENDIF
127c--------------------------------
128 RETURN
129 END
#define my_real
Definition cppsort.cpp:32
subroutine write_nloc_struct(nloc_dmg)
subroutine write_db(a, n)
Definition write_db.F:140
void write_i_c(int *w, int *len)