Base class for the b-spline types
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=ip), | private | :: | inbvx | = | 1_ip |
internal variable used by dbvalu for efficient processing |
|
integer(kind=ip), | private | :: | iflag | = | 1_ip |
saved |
|
logical, | private | :: | initialized | = | .false. |
true if the class is initialized and ready to use |
|
logical, | private | :: | extrap | = | .false. |
if true, then extrapolation is allowed during evaluation |
destructor for the abstract type
Destructor for contents of the base bspline_class class. (this routine is called by the extended classes).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bspline_class), | intent(inout) | :: | me |
internal routine to set the extrap
flag
Sets the extrap
flag in the class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bspline_class), | intent(inout) | :: | me | |||
logical, | intent(in), | optional | :: | extrap |
if not present, then False is used |
destructor
interface for bspline destructor routines
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bspline_class), | intent(inout) | :: | me |
size of the structure in bits
interface for size routines
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bspline_class), | intent(in) | :: | me |
size of the structure in bits
returns true if the last iflag
status code was =0
.
This routines returns true if the iflag
code from the last
routine called was =0
. Maybe of the routines have output iflag
variables, so they can be checked explicitly, or this routine
can be used.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bspline_class), | intent(in) | :: | me |
retrieve the last status message
Get the status message from a bspline_class routine call.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bspline_class), | intent(in) | :: | me | |||
integer(kind=ip), | intent(in), | optional | :: | iflag |
the corresponding status code |
status message associated with the flag
to reset the iflag
saved in the class.
This sets the iflag
variable in the class to 0
(which indicates that everything is OK). It can be used
after an error is encountered.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bspline_class), | intent(inout) | :: | me |
type,public,abstract :: bspline_class !! Base class for the b-spline types private integer(ip) :: inbvx = 1_ip !! internal variable used by [[dbvalu]] for efficient processing integer(ip) :: iflag = 1_ip !! saved `iflag` from the list routine call. logical :: initialized = .false. !! true if the class is initialized and ready to use logical :: extrap = .false. !! if true, then extrapolation is allowed during evaluation contains private procedure,non_overridable :: destroy_base !! destructor for the abstract type procedure,non_overridable :: set_extrap_flag !! internal routine to set the `extrap` flag procedure(destroy_func),deferred,public :: destroy !! destructor procedure(size_func),deferred,public :: size_of !! size of the structure in bits procedure,public,non_overridable :: status_ok !! returns true if the last `iflag` status code was `=0`. procedure,public,non_overridable :: status_message => get_bspline_status_message !! retrieve the last !! status message procedure,public,non_overridable :: clear_flag => clear_bspline_flag !! to reset the `iflag` saved in the class. end type bspline_class