example_fgen_basic.error_v#
Definition of an error value
Modules:
| Name | Description |
|---|---|
creation |
Wrappers of |
error_v |
Python equivalent of the Fortran ErrorV class. |
passing |
Wrappers of |
Classes:
| Name | Description |
|---|---|
ErrorV |
Error value |
ErrorV #
Error value
Methods:
| Name | Description |
|---|---|
build_fortran_instance |
Build an instance equivalent to |
from_instance_index |
Initialise from an instance index received from Fortran |
Attributes:
| Name | Type | Description |
|---|---|---|
code |
int
|
Error code |
message |
str
|
Error message |
Source code in src/example_fgen_basic/error_v/error_v.py
build_fortran_instance #
build_fortran_instance() -> int
Build an instance equivalent to self on the Fortran side
Intended for use mainly by wrapping functions. Most users should not need to use this method directly.
Returns:
| Type | Description |
|---|---|
int
|
Instance index of the object which has been created on the Fortran side |
Source code in src/example_fgen_basic/error_v/error_v.py
from_instance_index
classmethod
#
Initialise from an instance index received from Fortran
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
instance_index
|
int
|
Instance index received from Fortran |
required |
Returns:
| Type | Description |
|---|---|
ErrorV
|
Initialised index |