OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_surf_str.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_surf_str ../engine/source/output/restart/w_surf_str.F
25!||--- called by ------------------------------------------------------
26!|| wrrestp ../engine/source/output/restart/wrrestp.F
27!||--- calls -----------------------------------------------------
28!|| fretitl ../engine/source/input/freform.F
29!|| write_i_c ../common_source/tools/input_output/write_routtines.c
30!||--- uses -----------------------------------------------------
31!|| groupdef_mod ../common_source/modules/groupdef_mod.F
32!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
33!||====================================================================
34 SUBROUTINE w_surf_str(IGRSURF)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE groupdef_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com04_c.inc"
48#include "scr17_c.inc"
49#include "tabsiz_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 TYPE (SURF_) , DIMENSION(NSURF) :: IGRSURF
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER ISU,I,J,K,ERR,L_SURF,ID,NSEG,TYPE,ID_MADYMO,IAD_BUFR,
58 . NB_MADYMO,TYPE_MADYMO,LEVEL,TH_SURF,ISH4N3N,NSEG_R2R_ALL,
59 . NSEG_R2R_SHARE,NODE,ELTYP,ELEM,ITITLE(LTITR)
60 CHARACTER(LEN=NCHARTITLE) :: TITR
61 INTEGER, ALLOCATABLE, DIMENSION (:) :: ISURFI
62C-----------------------------------------------
63 DO isu=1,nsurf
64 titr = igrsurf(isu)%TITLE
65 CALL fretitl(titr,ititle,ltitr)
66 CALL write_i_c(ititle,ltitr)
67 ENDDO ! DO ISU=1,NSURF
68!
69 err = 0
70 ALLOCATE (isurfi(lenisurf), stat=err)
71 isurfi(1:lenisurf) = 0
72 l_surf = 0
73!
74 DO isu=1,nsurf
75 id = igrsurf(isu)%ID
76 nseg = igrsurf(isu)%NSEG
77 TYPE = igrsurf(isu)%TYPE
78 id_madymo = igrsurf(isu)%ID_MADYMO
79 iad_bufr = igrsurf(isu)%IAD_BUFR
80 nb_madymo = igrsurf(isu)%NB_MADYMO
81 type_madymo = igrsurf(isu)%TYPE_MADYMO
82 level = igrsurf(isu)%LEVEL
83 th_surf = igrsurf(isu)%TH_SURF
84 ish4n3n = igrsurf(isu)%ISH4N3N
85 nseg_r2r_all = igrsurf(isu)%NSEG_R2R_ALL
86 nseg_r2r_share = igrsurf(isu)%NSEG_R2R_SHARE
87!
88 isurfi(l_surf+1) = id
89 l_surf = l_surf+1
90 isurfi(l_surf+1) = nseg
91 l_surf = l_surf+1
92 isurfi(l_surf+1) = TYPE
93 l_surf = l_surf+1
94 isurfi(l_surf+1) = id_madymo
95 l_surf = l_surf+1
96 isurfi(l_surf+1) = iad_bufr
97 l_surf = l_surf+1
98 isurfi(l_surf+1) = nb_madymo
99 l_surf = l_surf+1
100 isurfi(l_surf+1) = type_madymo
101 l_surf = l_surf+1
102 isurfi(l_surf+1) = level
103 l_surf = l_surf+1
104 isurfi(l_surf+1) = th_surf
105 l_surf = l_surf+1
106 isurfi(l_surf+1) = ish4n3n
107 l_surf = l_surf+1
108 isurfi(l_surf+1) = nseg_r2r_all
109 l_surf = l_surf+1
110 isurfi(l_surf+1) = nseg_r2r_share
111 l_surf = l_surf+1
112!
113! SURF ENTITIES (NODES, ELTYP, ELEM)
114!
115 DO j=1,nseg
116 DO k=1,4
117 node = igrsurf(isu)%NODES(j,k)
118 isurfi(l_surf+1) = node
119 l_surf = l_surf+1
120 ENDDO
121 eltyp = igrsurf(isu)%ELTYP(j)
122 isurfi(l_surf+1) = eltyp
123 l_surf = l_surf+1
124 elem = igrsurf(isu)%ELEM(j)
125 isurfi(l_surf+1) = elem
126 l_surf = l_surf+1
127 ENDDO
128 ENDDO ! DO ISU=1,NSURF
129!
130!---------
131 CALL write_i_c(isurfi,l_surf)
132!---------
133 DEALLOCATE (isurfi)
134!---------
135 RETURN
136 END
integer, parameter nchartitle
subroutine fretitl(titr, iasc, l)
Definition freform.F:620
subroutine w_surf_str(igrsurf)
Definition w_surf_str.F:35
void write_i_c(int *w, int *len)