Data Types | Functions/Subroutines
sysdep Module Reference

Functions/Subroutines

subroutine, public abortprogram (message)
 
integer function, public sysdepargcount ()
 
subroutine, public sysdepargget (index, val)
 
subroutine, public sysdepenvget (env, str)
 

Function/Subroutine Documentation

◆ abortprogram()

subroutine, public sysdep::abortprogram ( character(len=*), intent(in), optional  message)

Definition at line 57 of file sysdep.f90.

References dc_types::stderr.

57  use dc_types, only: stderr
58  implicit none
59  character(len=*), intent(in), optional :: message
60  continue
61  if (present(message)) write(stderr, *) trim(message)
62  call dc_f_abort()
integer, parameter, public stderr
Unit number for Standard ERROR.
Definition: dc_types.f90:103
Provides kind type parameter values.
Definition: dc_types.f90:49

◆ sysdepargcount()

integer function, public sysdep::sysdepargcount ( )

Definition at line 66 of file sysdep.f90.

66  implicit none
67  sysdepargcount = command_argument_count()
integer function, public sysdepargcount()
Definition: sysdep.f90:66

◆ sysdepargget()

subroutine, public sysdep::sysdepargget ( integer, intent(in)  index,
character(len = *), intent(out)  val 
)

Definition at line 71 of file sysdep.f90.

References sysdepargcount().

71  implicit none
72  integer, intent(in) :: index
73  character(len = *), intent(out) :: val
74  !
75  integer:: idx
76  integer:: argc
77  continue
78  argc = sysdepargcount()
79  if (index < 0) then
80  idx = argc + 1 + index
81  else
82  idx = index
83  endif
84  if (idx > argc) then
85  val = ''
86  else
87  call get_command_argument(index, val)
88  end if
integer function, public sysdepargcount()
Definition: sysdep.f90:66
Here is the call graph for this function:

◆ sysdepenvget()

subroutine, public sysdep::sysdepenvget ( character(len = *), intent(in)  env,
character(len = *), intent(out)  str 
)

Definition at line 92 of file sysdep.f90.

92  character(len = *), intent(in) :: env
93  character(len = *), intent(out) :: str
94  call get_environment_variable(trim(adjustl(env)), str)