OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
user_output.F File Reference
#include "implicit_f.inc"
#include "scr17_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine user_output (iout, ilaw, rootn, rootlen, inpf)

Function/Subroutine Documentation

◆ user_output()

subroutine user_output ( integer iout,
integer ilaw,
character*80 rootn,
integer rootlen,
integer inpf )

Definition at line 37 of file user_output.F.

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
character(len=outfile_char_len) outfile_name
integer outfile_name_len