FEDEM Solver  R8.0
Source code of the dynamics solver
Functions/Subroutines
fileutilitiesmodule Module Reference

Module with subroutines for file handling. More...

Functions/Subroutines

subroutine getfilename (file, name, suffix)
 Extracts a file name from a command-line option. More...
 

Detailed Description

Module with subroutines for file handling.

This module contains various utility subroutines and functions for management of file unit numbers that mostly are used for debug output. You have to configure doxygen with the option ENABLED_SECTIONS = FULL_DOC to extract the detailed documentation of the symbols in this module.

Author
Bjorn Haugen
Date
Sep 2002

Function/Subroutine Documentation

◆ getfilename()

subroutine fileutilitiesmodule::getfilename ( character(len=*), intent(in)  file,
character(len=*), intent(out)  name,
character(len=*), intent(in), optional  suffix 
)

Extracts a file name from a command-line option.

Parameters
[in]fileThe command-line option to extract from
[out]nameThe value of the command-line option
[in]suffixFile extension to use when using default file

If needed the string value is converted to UNIX or Windows format. If the specified command-line option is not used, the default file name is <partname><suffix> where <partname> is the name of the FE data file without the file extension, as provided with the -linkfile option.

Author
Knut Morten Okstad
Date
20 Sep 2000