13 CHARACTER(LEN=*) :: extension
16 INTEGER :: iread, inthreed=0
17 CHARACTER(LEN=120) :: threed1_file
21 threed1_file =
'threed1.'//extension
23 INQUIRE(file=threed1_file, opened=lfirst)
25 IF (.not.lfirst)
RETURN
27 WRITE (*,
'(33('' -''))')
30 IF (iread .ne. 0)
THEN
31 print *,
' VMEC OUTPUT FILES ALREADY EXIST: OVERWRITING THEM ...'
fault-tolerant file opening routines
subroutine safe_open(iunit, istat, filename, filestat, fileform, record_in, access_in, delim_in)
integer, parameter nthreed0
subroutine open_output_files(extension, lfirst)
Open output files.