OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
write_mod.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_mod ../common_source/comm/write_mod.F
25!||--- called by ------------------------------------------------------
26!|| write_sensors ../engine/source/output/restart/write_sensors.F
27!||====================================================================
28 MODULE write_mod
29#include "my_real.inc"
30 CONTAINS
31!! \brief Wrapper routine to WRITE_I_C, to be used in order to avoid dummy-argument mismatch at error at compile tile
32!||====================================================================
33!|| write_integer ../common_source/comm/write_mod.F
34!||--- called by ------------------------------------------------------
35!|| write_sensors ../engine/source/output/restart/write_sensors.F
36!||--- calls -----------------------------------------------------
37!|| write_i_c ../common_source/tools/input_output/write_routtines.c
38!||====================================================================
39 SUBROUTINE write_integer(A)
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43 IMPLICIT NONE
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER, INTENT(IN) :: A !< value to be written in a file
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER :: ONE
52C-----------------------------------------------
53 one = 1
54 CALL write_i_c(a,one)
55 END SUBROUTINE
56!||====================================================================
57!|| write_integer_1d ../common_source/comm/write_mod.F
58!||--- calls -----------------------------------------------------
59!|| write_i_c ../common_source/tools/input_output/write_routtines.c
60!||====================================================================
61 SUBROUTINE write_integer_1d(A,N)
62C-----------------------------------------------
63C I m p l i c i t T y p e s
64C-----------------------------------------------
65 IMPLICIT NONE
66C-----------------------------------------------
67C D u m m y A r g u m e n t s
68C-----------------------------------------------
69 INTEGER, INTENT(IN) :: A(N) !< value to be written in a file
70 INTEGER, INTENT(IN) :: N !< Dimension1
71 CALL write_i_c(a,n)
72 END SUBROUTINE
73!||====================================================================
74!|| write_integer_2d ../common_source/comm/write_mod.F
75!||--- calls -----------------------------------------------------
76!|| write_i_c ../common_source/tools/input_output/write_routtines.c
77!||====================================================================
78 SUBROUTINE write_integer_2d(A,N,M)
79C-----------------------------------------------
80C I m p l i c i t T y p e s
81C-----------------------------------------------
82 IMPLICIT NONE
83C-----------------------------------------------
84C D u m m y A r g u m e n t s
85C-----------------------------------------------
86 INTEGER, INTENT(IN) :: A(N,M) !< value to be written in a file
87 INTEGER, INTENT(IN) :: N,M !< Dimensions
88C-----------------------------------------------
89C L o c a l V a r i a b l e s
90C-----------------------------------------------
91 INTEGER :: D
92C-----------------------------------------------
93 d = m * n
94 CALL write_i_c(a,d)
95 END SUBROUTINE
96!||====================================================================
97!|| write_integer_3d ../common_source/comm/write_mod.F
98!||--- calls -----------------------------------------------------
99!|| write_i_c ../common_source/tools/input_output/write_routtines.c
100!||====================================================================
101 SUBROUTINE write_integer_3d(A,L,N,M)
102C-----------------------------------------------
103C I m p l i c i t T y p e s
104C-----------------------------------------------
105 IMPLICIT NONE
106C-----------------------------------------------
107C D u m m y A r g u m e n t s
108C-----------------------------------------------
109 INTEGER, INTENT(IN) :: A(L,N,M) !< value to be written in a file
110 INTEGER, INTENT(IN) :: L,N,M !< Dimensions
111C-----------------------------------------------
112C L o c a l V a r i a b l e s
113C-----------------------------------------------
114 INTEGER :: D
115C-----------------------------------------------
116 d = l * m * n
117 CALL write_i_c(a,d)
118 END SUBROUTINE
119
120!! \brief Wrapper routine to WRITE_DB, to be used in order to avoid dummy-argument mismatch at error at compile tile
121
122!! \brief Wrapper routine to WRITE_DB, to be used in order to avoid dummy-argument mismatch at error at compile tile
123!||====================================================================
124!|| write_real ../common_source/comm/write_mod.F
125!||--- calls -----------------------------------------------------
126!|| write_db ../common_source/tools/input_output/write_db.F
127!||====================================================================
128 SUBROUTINE write_real(A)
129C-----------------------------------------------
130C I m p l i c i t T y p e s
131C-----------------------------------------------
132 IMPLICIT NONE
133C-----------------------------------------------
134C D u m m y A r g u m e n t s
135C-----------------------------------------------
136 my_real , INTENT(IN) :: a !< value to be written
137C-----------------------------------------------
138C L o c a l V a r i a b l e s
139C-----------------------------------------------
140 INTEGER :: ONE
141C-----------------------------------------------
142 one = 1
143 CALL write_db(a,one)
144 END SUBROUTINE
145!! \brief Wrapper routine to WRITE_DB, to be used in order to avoid dummy-argument mismatch at error at compile tile
146!||====================================================================
147!|| write_real_1d ../common_source/comm/write_mod.F
148!||--- calls -----------------------------------------------------
149!|| write_db ../common_source/tools/input_output/write_db.F
150!||====================================================================
151 SUBROUTINE write_real_1d(A,N)
152C-----------------------------------------------
153C I m p l i c i t T y p e s
154C-----------------------------------------------
155 IMPLICIT NONE
156C-----------------------------------------------
157C D u m m y A r g u m e n t s
158C-----------------------------------------------
159 my_real , INTENT(IN) :: a(n) !< value to be written
160 INTEGER , INTENT(IN) :: N !< size
161C-----------------------------------------------
162C L o c a l V a r i a b l e s
163C-----------------------------------------------
164 INTEGER :: D
165C-----------------------------------------------
166 d = n
167 CALL write_db(a,d)
168 END SUBROUTINE
169!! \brief Wrapper routine to WRITE_DB, to be used in order to avoid dummy-argument mismatch at error at compile tile
170!||====================================================================
171!|| write_real_2d ../common_source/comm/write_mod.F
172!||--- calls -----------------------------------------------------
173!|| write_db ../common_source/tools/input_output/write_db.F
174!||====================================================================
175 SUBROUTINE write_real_2d(A,M,N)
176C-----------------------------------------------
177C I m p l i c i t T y p e s
178C-----------------------------------------------
179 IMPLICIT NONE
180C-----------------------------------------------
181C D u m m y A r g u m e n t s
182C-----------------------------------------------
183 my_real , INTENT(IN) :: a(m,n) !< value to be written
184 INTEGER, INTENT(IN) :: N,M !< size
185C-----------------------------------------------
186C L o c a l V a r i a b l e s
187C-----------------------------------------------
188 INTEGER :: D
189C-----------------------------------------------
190 d = m * n
191 CALL write_db(a,d)
192 END SUBROUTINE
193!! \brief Wrapper routine to WRITE_DB, to be used in order to avoid dummy-argument mismatch at error at compile tile
194!||====================================================================
195!|| write_real_3d ../common_source/comm/write_mod.F
196!||--- calls -----------------------------------------------------
197!|| write_db ../common_source/tools/input_output/write_db.F
198!||====================================================================
199 SUBROUTINE write_real_3d(A,L,M,N)
200C-----------------------------------------------
201C I m p l i c i t T y p e s
202C-----------------------------------------------
203 IMPLICIT NONE
204C-----------------------------------------------
205C D u m m y A r g u m e n t s
206C-----------------------------------------------
207 my_real , INTENT(IN) :: a(l,m,n) !< value to be written
208 INTEGER , INTENT(IN) :: L,N,M !< size
209C-----------------------------------------------
210C L o c a l V a r i a b l e s
211C-----------------------------------------------
212 INTEGER :: D
213C-----------------------------------------------
214 d = l * m * n
215 CALL write_db(a,d)
216 END SUBROUTINE
217!! \brief Wrapper routine to WRITE_DPDB, to be used in order to avoid dummy-argument mismatch at error at compile tile
218!||====================================================================
219!|| write_double ../common_source/comm/write_mod.F
220!||--- calls -----------------------------------------------------
221!|| write_dpdb ../common_source/tools/input_output/write_db.F
222!||====================================================================
223 SUBROUTINE write_double(A)
224C-----------------------------------------------
225C I m p l i c i t T y p e s
226C-----------------------------------------------
227 IMPLICIT NONE
228C-----------------------------------------------
229C D u m m y A r g u m e n t s
230C-----------------------------------------------
231 DOUBLE PRECISION , INTENT(IN) :: A !< value to be written
232C-----------------------------------------------
233C L o c a l V a r i a b l e s
234C-----------------------------------------------
235 INTEGER :: ONE
236C-----------------------------------------------
237 one = 1
238 CALL write_dpdb(a,one)
239 END SUBROUTINE
240
241!! \brief Wrapper routine to WRITE_DPDB, to be used in order to avoid dummy-argument mismatch at error at compile tile
242!||====================================================================
243!|| write_double_1d ../common_source/comm/write_mod.F
244!||--- calls -----------------------------------------------------
245!|| write_dpdb ../common_source/tools/input_output/write_db.F
246!||====================================================================
247 SUBROUTINE write_double_1d(A,N)
248C-----------------------------------------------
249C I m p l i c i t T y p e s
250C-----------------------------------------------
251 IMPLICIT NONE
252C-----------------------------------------------
253C D u m m y A r g u m e n t s
254C-----------------------------------------------
255 DOUBLE PRECISION , INTENT(IN) :: A(N) !< value to be written
256 INTEGER, INTENT(IN) :: N !< size
257C-----------------------------------------------
258C L o c a l V a r i a b l e s
259C-----------------------------------------------
260 INTEGER :: D
261C-----------------------------------------------
262 d = n
263 CALL write_dpdb(a,d)
264 END SUBROUTINE
265!! \brief Wrapper routine to WRITE_DPDB, to be used in order to avoid dummy-argument mismatch at error at compile tile
266!||====================================================================
267!|| write_double_2d ../common_source/comm/write_mod.f
268!||--- calls -----------------------------------------------------
269!|| write_dpdb ../common_source/tools/input_output/write_db.F
270!||====================================================================
271 SUBROUTINE write_double_2d(A,M,N)
272C-----------------------------------------------
273C I m p l i c i t T y p e s
274C-----------------------------------------------
275 IMPLICIT NONE
276C-----------------------------------------------
277C D u m m y A r g u m e n t s
278C-----------------------------------------------
279 DOUBLE PRECISION , INTENT(IN) :: A(M,N) !< value to be written
280 INTEGER, INTENT(IN) :: N,M !< size
281C-----------------------------------------------
282C L o c a l V a r i a b l e s
283C-----------------------------------------------
284 INTEGER :: D
285C-----------------------------------------------
286 d = m * n
287 CALL write_dpdb(a,d)
288 END SUBROUTINE
289!! \brief Wrapper routine to WRITE_DPDB, to be used in order to avoid dummy-argument mismatch at error at compile tile
290!||====================================================================
291!|| write_double_3d ../common_source/comm/write_mod.F
292!||--- calls -----------------------------------------------------
293!|| write_dpdb ../common_source/tools/input_output/write_db.F
294!||====================================================================
295 SUBROUTINE write_double_3d(A,L,M,N)
296C-----------------------------------------------
297C I m p l i c i t T y p e s
298C-----------------------------------------------
299 IMPLICIT NONE
300C-----------------------------------------------
301C D u m m y A r g u m e n t s
302C-----------------------------------------------
303 DOUBLE PRECISION , INTENT(IN) :: A(L,M,N) !< value to be written
304 INTEGER , INTENT(IN) :: L,N,M !< size
305C-----------------------------------------------
306C L o c a l V a r i a b l e s
307C-----------------------------------------------
308 INTEGER :: D
309C-----------------------------------------------
310 d = l * m * n
311 CALL write_dpdb(a,d)
312 END SUBROUTINE
313 END MODULE
#define my_real
Definition cppsort.cpp:32
subroutine write_double_1d(a, n)
Definition write_mod.F:248
subroutine write_integer_1d(a, n)
Definition write_mod.F:62
subroutine write_real_3d(a, l, m, n)
Definition write_mod.F:200
subroutine write_double(a)
Definition write_mod.F:224
subroutine write_real_1d(a, n)
Definition write_mod.F:152
subroutine write_real(a)
Definition write_mod.F:129
subroutine write_integer_3d(a, l, n, m)
Definition write_mod.F:102
subroutine write_real_2d(a, m, n)
Definition write_mod.F:176
subroutine write_integer_2d(a, n, m)
Definition write_mod.F:79
subroutine write_double_3d(a, l, m, n)
Definition write_mod.F:296
subroutine write_double_2d(a, m, n)
Definition write_mod.F:272
subroutine write_integer(a)
Definition write_mod.F:40
subroutine write_db(a, n)
Definition write_db.F:140
subroutine write_dpdb(a, n)
Definition write_db.F:302
void write_i_c(int *w, int *len)