sysdepabort.f90
Go to the documentation of this file.
1 !--
2 ! *** Caution!! ***
3 !
4 ! This file is generated from "sysdepabort.rb2f90" by Ruby 2.3.3.
5 ! Please do not edit this file directly.
6 !
7 ! [JAPANESE]
8 !
9 ! ※※※ 注意!!! ※※※
10 !
11 ! このファイルは "sysdepabort.rb2f90" から Ruby 2.3.3
12 ! によって自動生成されたファイルです.
13 ! このファイルを直接編集しませんようお願い致します.
14 !
15 !
16 !++
17 !
18 !== SysdepAbort - 環境依存性ルーチン (プログラム停止)
19 !
20 ! Authors:: Yasuhiro MORIKAWA, Eizi TOYODA
21 ! Version:: $Id: sysdepabort.rb2f90,v 1.2 2009-03-22 02:17:32 morikawa Exp $
22 ! Tag Name:: $Name: $
23 ! Copyright:: Copyright (C) GFD Dennou Club, 2000-2005. All rights reserved.
24 ! License:: See COPYRIGHT[link:../../COPYRIGHT]
25 !
26 ! メッセージを表示してプログラムを停止します。
27 ! 通常の処理系では abort() があるのでこの組み込み手続きを利用します。
28 ! たいていは異常終了します。
29 ! abort() が実装されていない処理系では何もしない abort() を造ると
30 ! あとの stop でとめることが可能です。
31 !
32 
33 subroutine sysdepabort(string)
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'
66 end subroutine
67 !--
68 ! vi:set readonly sw=4 ts=8:
69 !
70 !Local Variables:
71 !mode: f90
72 !buffer-read-only: t
73 !End:
74 !
75 !++
subroutine, public dbg_scratch(on)
Definition: dc_trace.f90:219
subroutine sysdepabort(string)
Definition: sysdepabort.f90:34
subroutine gtvarsync(var, stat)
Definition: gtvarsync.f90:15