sysdepabort.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine sysdepabort (string)
 

Function/Subroutine Documentation

◆ sysdepabort()

subroutine sysdepabort ( character(len = *), intent(in)  string)

Definition at line 34 of file sysdepabort.f90.

References dc_trace::dbg_scratch(), and gtvarsync().

34  !
35  ! この手続きは、引数 _string_ を装置 * に出力後、
36  ! プログラムを強制終了させます。
37  ! *AbortProgram* というのは総称名です。
38  ! 実際にはソースコードを簡単に見つけるため、
39  ! *SysdepAbort* というサブルーチン名を与えられています。
40  ! 多くの実装では終了コードをゼロ以外にしようと試みていますが、
41  ! それをあまり当てにするべきではありません。
42  !
43  ! This procedure terminates program after _string_ is
44  ! outputted to unit "*".
45  ! *AbortProgram* is a generic name of a subroutine.
46  ! In fact, the subroutine was given another name *SysdepAbort*,
47  ! in order to make it easier to find the source code.
48  ! Though many implementations are trying to set exit code
49  ! other than zero, that should *not* be relied upon.
50  !
51  use gtdata_generic, only: gtvarsync
52  use dc_trace, only: dbg_scratch
53  implicit none
54  character(len = *), intent(in):: string
55  integer :: stat
56 continue
57  write(*, *) trim(string)
58  call dbg_scratch(.false.)
59  call gtvarsync(stat=stat)
60  !
61  ! Selected by Makefile using m4
62  !
63  ! --- hitachi ---
64  stop 3
65  stop 'failsafe'
subroutine, public dbg_scratch(on)
Definition: dc_trace.f90:219
subroutine gtvarsync(var, stat)
Definition: gtvarsync.f90:15
integer, parameter, public string
Character length for string.
Definition: dc_types.f90:118
Here is the call graph for this function: