OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
write_nloc_struct.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "com01_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine write_nloc_struct (nloc_dmg)

Function/Subroutine Documentation

◆ write_nloc_struct()

subroutine write_nloc_struct ( type (nlocal_str_), target nloc_dmg)

Definition at line 33 of file write_nloc_struct.F.

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
#define my_real
Definition cppsort.cpp:32
subroutine write_db(a, n)
Definition write_db.F:140
void write_i_c(int *w, int *len)