stdlib_error 模块

提供对捕获和处理错误的支持(规范


被…使用


接口

接口

  • 公共模块子程序 error_stop(msg, code)

    提供对error stop的调用,并允许用户指定代码和消息(规范

    参数

    类型 意图可选 属性 名称
    character(len=*), intent(in) :: msg
    integer, intent(in), optional :: code

子程序

公共子程序 check(condition, msg, code, warn)

许可证
Creative Commons License
版本
实验性

检查逻辑条件的值(规范

阅读更多…

参数

类型 意图可选 属性 名称
logical, intent(in) :: condition
character(len=*), intent(in), optional :: msg
integer, intent(in), optional :: code
logical, intent(in), optional :: warn