MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
mf6bmiError.f90 File Reference

Go to the source code of this file.

Modules

module  mf6bmierror
 Detailed error information for the BMI.

Functions/Subroutines

subroutine mf6bmierror::report_bmi_error (err_msg)
 Sets the last BMI error message and copies it to an exported C-string.
integer(kind=c_int) function mf6bmierror::get_last_bmi_error (c_error)
 Get the last error in the BMI as a character array with size BMI_LENERRMESSAGE.

Variables

integer, parameter mf6bmierror::bmi_failure = 1
 BMI status code for failure (taken from bmi.f90, CSDMS).
integer, parameter mf6bmierror::bmi_success = 0
 BMI status code for success (taken from bmi.f90, CSDMS).
integer(i4b), parameter mf6bmierror::lenerrmessage = 1024
 max length for the error message
integer(c_int), bind(C, name="BMI_LENERRMESSAGE") mf6bmierror::bmi_lenerrmessage = LENERRMESSAGE + 1
 max. length for the (exported) C-style error message
character(len=lenerrmessage) mf6bmierror::bmi_last_error = 'No BMI error reported'
 module variable containing the last error as a Fortran string
character(len= *), parameter mf6bmierror::fmt_general_err = "('BMI Error, ', a)"
character(len= *), parameter mf6bmierror::fmt_unknown_var = "('BMI Error, unknown variable: ', a, ' at ', a)"
character(len= *), parameter mf6bmierror::fmt_invalid_var = "('BMI Error, invalid address string: ', a)"
character(len= *), parameter mf6bmierror::fmt_unsupported_rank = "('BMI Error, unsupported rank for variable: ', a)"
character(len= *), parameter mf6bmierror::fmt_unsupported_type = "('BMI Error, unsupported type for variable: ', a)"
character(len= *), parameter mf6bmierror::fmt_invalid_mem_access = "('Fatal BMI Error, invalid access of memory for variable: ', a)"
character(len= *), parameter mf6bmierror::fmt_invalid_index = "('BMI Error, index ', i0, ' out of range for variable: ', a)"
character(len= *), parameter mf6bmierror::fmt_invalid_count = "('BMI Error, invalid number of indices ', i0, ' for variable: ', a)"
character(len= *), parameter mf6bmierror::fmt_invalid_time = "('BMI Error, cannot update until time ', g0, ', ', a)"
character(len= *), parameter mf6bmierror::fmt_fail_cvg_sol = "('BMI Error, Numerical Solution ', i3, ' failed to converge')"