MODFLOW 6
version 6.6.0.dev0
USGS Modular Hydrologic Model
|
Detailed error information for the BMI. More...
Functions/Subroutines | |
subroutine | report_bmi_error (err_msg) |
Sets the last BMI error message and copies it to an exported C-string. More... | |
integer(kind=c_int) function | get_last_bmi_error (c_error) |
Get the last error in the BMI as a character array with size BMI_LENERRMESSAGE. More... | |
Variables | |
integer, parameter | bmi_failure = 1 |
BMI status code for failure (taken from bmi.f90, CSDMS) More... | |
integer, parameter | bmi_success = 0 |
BMI status code for success (taken from bmi.f90, CSDMS) More... | |
integer(i4b), parameter | lenerrmessage = 1024 |
max length for the error message More... | |
integer(c_int), bind(C, name="BMI_LENERRMESSAGE") | bmi_lenerrmessage = LENERRMESSAGE + 1 |
max. length for the (exported) C-style error message More... | |
character(len=lenerrmessage) | bmi_last_error = 'No BMI error reported' |
module variable containing the last error as a Fortran string More... | |
character(len= *), parameter | fmt_general_err = "('BMI Error, ', a)" |
character(len= *), parameter | fmt_unknown_var = "('BMI Error, unknown variable: ', a, ' at ', a)" |
character(len= *), parameter | fmt_invalid_var = "('BMI Error, invalid address string: ', a)" |
character(len= *), parameter | fmt_unsupported_rank = "('BMI Error, unsupported rank for variable: ', a)" |
character(len= *), parameter | fmt_unsupported_type = "('BMI Error, unsupported type for variable: ', a)" |
character(len= *), parameter | fmt_invalid_mem_access = "('Fatal BMI Error, invalid access of memory for variable: ', a)" |
character(len= *), parameter | fmt_fail_cvg_sol = "('BMI Error, Numerical Solution ', i3, ' failed to converge')" |
This module contains error codes and detailed error messages (as format strings) for the BMI/XMI.
integer(kind=c_int) function mf6bmierror::get_last_bmi_error | ( | character(kind=c_char, len=1), dimension(bmi_lenerrmessage), intent(out) | c_error | ) |
[out] | c_error | C style char array with error |
Definition at line 56 of file mf6bmiError.f90.
subroutine mf6bmierror::report_bmi_error | ( | character(len=*), intent(in) | err_msg | ) |
[in] | err_msg | the error message |
Definition at line 46 of file mf6bmiError.f90.
integer, parameter mf6bmierror::bmi_failure = 1 |
Definition at line 12 of file mf6bmiError.f90.
character(len=lenerrmessage) mf6bmierror::bmi_last_error = 'No BMI error reported' |
Definition at line 20 of file mf6bmiError.f90.
integer(c_int), bind(C, name="BMI_LENERRMESSAGE") mf6bmierror::bmi_lenerrmessage = LENERRMESSAGE + 1 |
Definition at line 16 of file mf6bmiError.f90.
integer, parameter mf6bmierror::bmi_success = 0 |
Definition at line 13 of file mf6bmiError.f90.
character(len=*), parameter mf6bmierror::fmt_fail_cvg_sol = "('BMI Error, Numerical Solution ', i3, ' failed to converge')" |
Definition at line 37 of file mf6bmiError.f90.
character(len=*), parameter mf6bmierror::fmt_general_err = "('BMI Error, ', a)" |
Definition at line 22 of file mf6bmiError.f90.
character(len=*), parameter mf6bmierror::fmt_invalid_mem_access = "('Fatal BMI Error, invalid access of memory for variable: ', a)" |
Definition at line 34 of file mf6bmiError.f90.
character(len=*), parameter mf6bmierror::fmt_invalid_var = "('BMI Error, invalid address string: ', a)" |
Definition at line 26 of file mf6bmiError.f90.
character(len=*), parameter mf6bmierror::fmt_unknown_var = "('BMI Error, unknown variable: ', a, ' at ', a)" |
Definition at line 24 of file mf6bmiError.f90.
character(len=*), parameter mf6bmierror::fmt_unsupported_rank = "('BMI Error, unsupported rank for variable: ', a)" |
Definition at line 28 of file mf6bmiError.f90.
character(len=*), parameter mf6bmierror::fmt_unsupported_type = "('BMI Error, unsupported type for variable: ', a)" |
Definition at line 31 of file mf6bmiError.f90.
integer(i4b), parameter mf6bmierror::lenerrmessage = 1024 |
Definition at line 15 of file mf6bmiError.f90.