A wrapper to fparser to evaluate an array of functions.
Each parser has the same variables.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(fparser), | public, | dimension(:), allocatable | :: | f | An array of parsers. Each one has the same variables. |
Alternate version of parse_function for the fparser_array class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fparser_array), | intent(inout) | :: | me | |||
character(len=*), | intent(in), | dimension(:) | :: | funcstr | function string array |
|
character(len=*), | intent(in), | dimension(:) | :: | var | array with variable names |
|
logical, | intent(in), | optional | :: | case_sensitive | are the variables case sensitive? [default is false] |
Alternate version of evaluate_function for the fparser_array class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fparser_array), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in), | dimension(:) | :: | val | variable values |
|
real(kind=wp), | intent(out), | dimension(:) | :: | res | result. Should be |
fparser_array destructor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fparser_array), | intent(inout) | :: | me |
Returns true if there are any errors in the class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fparser_array), | intent(in) | :: | me |
true if there are any errors in the class
Prints the error messages (if any) in the class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fparser_array), | intent(inout) | :: | me | |||
integer, | intent(in) | :: | iunit | unit number for printing (assumed to be open) |
Clears any error messages in the class.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fparser_array), | intent(inout) | :: | me |
type,public :: fparser_array
private
type(fparser),dimension(:),allocatable :: f !! An array of parsers.
!! Each one has the
!! same variables.
contains
private
procedure,public :: parse => parse_function_array
procedure,public :: evaluate => evaluate_function_array
procedure,public :: destroy => destroy_parser_array
procedure,public :: error => error_array
procedure,public :: print_errors => print_errors_array
procedure,public :: clear_errors => clear_errors_array
end type fparser_array