TABLE OF CONTENTS
/CallStack [ Modules ]
This module provides a wrapper around compiler-specific routines.
CallStack/TRACEBACK [ Subroutines ]
Write out the call stack of the program, depending on the compiler. One currently gets a backtrace with the following compilers:
- ifort (via the routine TRACEBACKQQ)
- gfortran 4.7 or higher (via ABORT)
See also the documentation of these routines in the respective compiler manual.
- character*(*), optional :: string -- header line to write
- integer, optional :: user_exit_code -- code whether return or stop program
- By specifying a user exit code of -1, control returns to the calling program. Specifying a user exit code with a positive value requests that specified value be returned to the operating system. The default value is 0, which causes the application to abort execution.
CallStack/SYSTEM_COMMAND [ Subroutines ]
Runs a shell command, as given by the argument 'string'.
- character*(*) :: string -- shell command to execute
This routine is compiler-dependent. If compiled with ifort, the Intel-specific function SYSTEMQQ is called. Otherwise the F08 intrinsic procedure EXECUTE_COMMAND_LINE is used.