|
MGIS
|
this structure summarizes the exit status of a function conforming to one of the generic material property interface.
More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/MaterialProperty/OutputStatus.hxx>
Public Attributes | |
| int | status |
| exit status | |
| int | c_error_number |
| error number reported by the C library. | |
| int | bounds_status |
| bounds status | |
| char | msg [512] |
| error message | |
this structure summarizes the exit status of a function conforming to one of the generic material property interface.
| int mgis_mp_OutputStatus::bounds_status |
bounds status
This status has the following meaning:
| int mgis_mp_OutputStatus::status |
exit status
The exit status is zero if the result has been correctly evaluated.
If the exit status is 1, a result has been computed, but it must be used with caution. This is typically used to report that one argument was out of its bounds.
All negative values indicates that the result is not usable. For a material property, the returned value is nan.
For a material property, a negative value has the following meaning:
std::exception, the content of the string returned by the what method is copyied in the message field. Otherwise, the message field contains the "unknown exception" string.C library, i.e. the errno value was set to a non zero value during the computation. The value of errno corresponding to the error is stored to in the c_error_number field of this structure. The string returned by strerrno is returned. Note that the errno value is always reset to the value it had before the call., inf, or-inf`).