dc_error.f90

Path: dc_error.f90
Last Update: Fri Aug 24 16:22:43 JST 2007

エラー処理

Error handling

Authors:Eizi TOYODA, Yasuhiro MORIKAWA
Version:$Id: dc_error.f90,v 1.20 2007/08/24 07:22:43 morikawa Exp $
Tag Name:$Name: gt4f90io-20070824 $
Copyright:Copyright (C) GFD Dennou Club, 2000-2005. All rights reserved.
License:See COPYRIGHT

This file provides following module.

Required files

Methods

DumpError  

Included Modules

dc_types dc_error sysdep

Public Instance methods

Subroutine :

GetErrorMessage からエラーメッセージを取得後、 それを sysdep#AbortProgram に渡してプログラムを終了させます。

Get error messages from "GetErrorMessage", and put the messages to sysdep#AbortProgram, and stop the program.

[Source]

subroutine DumpError()
  !
  ! GetErrorMessage からエラーメッセージを取得後、
  ! それを sysdep#AbortProgram に渡してプログラムを終了させます。
  !
  ! Get error messages from "GetErrorMessage", and put the messages 
  ! to sysdep#AbortProgram, and stop the program.
  !
  use dc_types, only: STRING
  use dc_error, only: GetErrorMessage
  use sysdep, only: AbortProgram
  character(len = STRING):: message
continue
  call GetErrorMessage(message)
  call AbortProgram(message)
end subroutine DumpError

[Validate]