OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
user_output.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!|| user_output ../starter/source/user_interface/user_output.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_fail_user ../starter/source/materials/fail/failuser/hm_read_fail_user.F
27!|| hm_read_mat29_31 ../starter/source/materials/mat/matuser/hm_read_mat_user29_31.F
28!|| hm_read_mat_99 ../starter/source/materials/mat/matuser/hm_read_mat_user_99.F
29!|| hm_read_prop_user ../starter/source/properties/user_spring_solid/hm_read_prop_user.F
30!|| hm_read_window_user ../starter/source/tools/userwi/hm_read_window_user.F
31!|| read_sensor_user ../starter/source/tools/sensor/read_sensor_user.F
32!|| rinit3 ../starter/source/elements/spring/rinit3.F
33!||--- calls -----------------------------------------------------
34!||--- uses -----------------------------------------------------
35!|| reader_old_mod ../starter/share/modules1/reader_old_mod.F90
36!||====================================================================
37 SUBROUTINE user_output(IOUT,ILAW,ROOTN,ROOTLEN,INPF)
38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
42 USE reader_old_mod , ONLY : line
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "scr17_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER IOUT,ILAW,ROOTLEN,INPF
55 CHARACTER*80 ROOTN
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER INPUTF,LEN
60 CHARACTER FILNAM*512,CLAW*4
61 INTEGER LEN_FILNAM
62 LOGICAL TEST
63 INTEGER :: LEN_TMP_NAME
64 CHARACTER(len=4096) :: TMP_NAME
65C-----------------------------------------------
66 WRITE(claw,'(I4.4)')ilaw
67 filnam ='SO'//rootn(1:rootlen)//'_'//claw//'.scr'
68 len_filnam=len_trim(filnam)
69
70 inputf=31
71
72 tmp_name=outfile_name(1:outfile_name_len)//filnam(1:len_filnam)
73 len_tmp_name = outfile_name_len+len_filnam
74
75 OPEN(unit=inputf,form='FORMATTED',file=tmp_name(1:len_tmp_name),action='READ' )
76
77 test=.true.
78 DO WHILE(test)
79 READ(inputf,END=999,FMT='(A)')line
80 len=len_trim(line)
81 WRITE(iout,fmt='(A)')line(1:len)
82 ENDDO
83 999 CONTINUE
84
85 CLOSE(unit=inputf)
86
87C Delete Output file
88 CALL delete_user_file(tmp_name,len_tmp_name)
89
90 IF(inpf==1)THEN
91C Delete Input file
92 WRITE(claw,'(I4.4)')ilaw
93 filnam ='SI'//rootn(1:rootlen)//'_'//claw//'.scr'
94 len_filnam=len_trim(filnam)
95 tmp_name=outfile_name(1:outfile_name_len)//filnam(1:len_filnam)
96 len_tmp_name = outfile_name_len+len_filnam
97
98! CALL delete_user_file(filnam,len_filnam)
99 CALL delete_user_file(tmp_name,len_tmp_name)
100 ENDIF
101 END
character(len=outfile_char_len) outfile_name
integer outfile_name_len
subroutine user_output(iout, ilaw, rootn, rootlen, inpf)
Definition user_output.F:38