Interfacing between the 1-based solvers and the material subroutines provided by DAMASK. More...
Functions/Subroutines | |
subroutine, public | damask_interface_init |
initializes the solver by interpreting the command line arguments. Also writes information on computation to screen More... | |
subroutine | setworkingdirectory (workingDirectoryArg) |
extract working directory from given argument or from location of geometry file, possibly converting relative arguments to absolut path More... | |
character(len=:) function, allocatable, public | getsolverjobname () |
solver job name (no extension) as combination of geometry and load case name More... | |
character(len=:) function, allocatable | getgeometryfile (geometryParameter) |
basename of geometry file with extension from command line arguments More... | |
character(len=:) function, allocatable | getloadcasefile (loadCaseParameter) |
relative path of loadcase from command line arguments More... | |
character(len=:) function, allocatable | rectifypath (path) |
remove ../, /./, and // from path. More... | |
character(len=:) function, allocatable | makerelativepath (a, b) |
relative path from absolute a to absolute b More... | |
subroutine | catchsigterm (signal) |
sets global variable SIGTERM to .true. More... | |
subroutine, public | setsigterm (state) |
sets global variable SIGTERM More... | |
subroutine | catchsigusr1 (signal) |
sets global variable SIGUSR1 to .true. More... | |
subroutine, public | setsigusr1 (state) |
sets global variable SIGUSR1 More... | |
subroutine | catchsigusr2 (signal) |
sets global variable SIGUSR2 to .true. if program receives SIGUSR2 More... | |
subroutine, public | setsigusr2 (state) |
sets global variable SIGUSR2 More... | |
Variables | |
logical, public, protected | sigterm |
termination signal More... | |
logical, public, protected | sigusr1 |
| |
logical, public, protected | sigusr2 |
integer, public, protected | interface_restartinc = 0 |
Increment at which calculation starts. More... | |
character(len=:), allocatable, public, protected | geometryfile |
parameter given for geometry file More... | |
character(len=:), allocatable, public, protected | loadcasefile |
parameter given for load case file More... | |
Interfacing between the 1-based solvers and the material subroutines provided by DAMASK.
Interfacing between the 1-based solvers and the material subroutines provided by DAMASK. Interpretating the command line arguments to get load case, geometry file, and working directory.
|
private |
sets global variable SIGTERM to .true.
Definition at line 1879 of file DAMASK_interface.f90.
References sigterm.
|
private |
sets global variable SIGUSR1 to .true.
Definition at line 1903 of file DAMASK_interface.f90.
References sigusr1.
Referenced by damask_interface_init().
|
private |
sets global variable SIGUSR2 to .true. if program receives SIGUSR2
Definition at line 1927 of file DAMASK_interface.f90.
References sigusr2.
Referenced by damask_interface_init().
subroutine, public damask_interface::damask_interface_init |
initializes the solver by interpreting the command line arguments. Also writes information on computation to screen
Definition at line 56 of file DAMASK_interface.f90.
References catchsigusr1(), catchsigusr2(), geometryfile, system_routines::getcwd(), getgeometryfile(), system_routines::gethostname(), getloadcasefile(), getsolverjobname(), interface_restartinc, loadcasefile, quit(), setsigterm(), setsigusr1(), setsigusr2(), and setworkingdirectory().
Referenced by cpfem2::cpfem_initall().
|
private |
basename of geometry file with extension from command line arguments
Definition at line 1758 of file DAMASK_interface.f90.
References system_routines::getcwd(), makerelativepath(), and quit().
Referenced by damask_interface_init().
|
private |
relative path of loadcase from command line arguments
Definition at line 1781 of file DAMASK_interface.f90.
References system_routines::getcwd(), makerelativepath(), and quit().
Referenced by damask_interface_init().
character(len=:) function, allocatable, public damask_interface::getsolverjobname |
solver job name (no extension) as combination of geometry and load case name
Definition at line 1737 of file DAMASK_interface.f90.
References geometryfile, and loadcasefile.
Referenced by config::config_init(), damask_interface_init(), damask_spectral(), grid_mech_fem::grid_mech_fem_init(), grid_mech_fem::grid_mech_fem_restartwrite(), grid_mech_spectral_basic::grid_mech_spectral_basic_init(), grid_mech_spectral_basic::grid_mech_spectral_basic_restartwrite(), grid_mech_spectral_polarisation::grid_mech_spectral_polarisation_init(), grid_mech_spectral_polarisation::grid_mech_spectral_polarisation_restartwrite(), results::results_init(), results::results_openjobfile(), and spectral_utilities::utilities_savereferencestiffness().
|
private |
relative path from absolute a to absolute b
Definition at line 1851 of file DAMASK_interface.f90.
References rectifypath().
Referenced by getgeometryfile(), and getloadcasefile().
|
private |
remove ../, /./, and // from path.
works only if absolute path is given
Definition at line 1805 of file DAMASK_interface.f90.
Referenced by makerelativepath(), and setworkingdirectory().
subroutine, public damask_interface::setsigterm | ( | logical, intent(in) | state | ) |
sets global variable SIGTERM
Definition at line 1892 of file DAMASK_interface.f90.
References sigterm.
Referenced by damask_interface_init().
subroutine, public damask_interface::setsigusr1 | ( | logical, intent(in) | state | ) |
sets global variable SIGUSR1
Definition at line 1916 of file DAMASK_interface.f90.
References sigusr1.
Referenced by damask_interface_init().
subroutine, public damask_interface::setsigusr2 | ( | logical, intent(in) | state | ) |
sets global variable SIGUSR2
Definition at line 1940 of file DAMASK_interface.f90.
References sigusr2.
Referenced by damask_interface_init().
|
private |
extract working directory from given argument or from location of geometry file, possibly converting relative arguments to absolut path
[in] | workingdirectoryarg | working directory argument |
Definition at line 1710 of file DAMASK_interface.f90.
References system_routines::getcwd(), quit(), rectifypath(), and system_routines::setcwd().
Referenced by damask_interface_init().
character(len=:), allocatable, public, protected damask_interface::geometryfile |
parameter given for geometry file
Definition at line 38 of file DAMASK_interface.f90.
Referenced by damask_interface_init(), getsolverjobname(), and discretization_grid::readgeom().
integer, public, protected damask_interface::interface_restartinc = 0 |
Increment at which calculation starts.
Definition at line 36 of file DAMASK_interface.f90.
Referenced by cpfem2::cpfem_init(), damask_interface_init(), damask_spectral(), grid_mech_fem::grid_mech_fem_init(), grid_mech_spectral_basic::grid_mech_spectral_basic_init(), and grid_mech_spectral_polarisation::grid_mech_spectral_polarisation_init().
character(len=:), allocatable, public, protected damask_interface::loadcasefile |
parameter given for load case file
Definition at line 38 of file DAMASK_interface.f90.
Referenced by damask_interface_init(), damask_spectral(), and getsolverjobname().
logical, public, protected damask_interface::sigterm |
termination signal
Definition at line 32 of file DAMASK_interface.f90.
Referenced by catchsigterm(), and setsigterm().
logical, public, protected damask_interface::sigusr1 |
Definition at line 32 of file DAMASK_interface.f90.
Referenced by catchsigusr1(), and setsigusr1().
logical, public, protected damask_interface::sigusr2 |
Definition at line 32 of file DAMASK_interface.f90.
Referenced by catchsigusr2(), and setsigusr2().