This file defines functions that perform some common matrix operations.
Public interface for various routines that evaluate mathematical expressions.
This subroutine takes a scalar mathematical expression as input, and returns the value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | expression | Scalar-valued mathematical expression |
||
real(kind=wp), | intent(out) | :: | value | Result of parsing the expression |
This subroutine takes a scalar mathematical function of some variable 'z' as input, along with an array with discrete values for that variable 'z'. It parses the provided function, evaluates it at each 'z'-value in the array, and then returns the discretized scalar field.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | expression | Scalar-valued function of position 'z' |
||
real(kind=wp), | intent(in), | dimension(:) | :: | domain | Domain of the independent variable 'z' |
|
real(kind=wp), | dimension(:), allocatable | :: | value | Result of evaluating the field at each point of the domain |
This subroutine takes a vector mathematical expression as input, and returns the value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | expression | Vector-valued mathematical expression |
||
real(kind=wp), | intent(out), | dimension(3) | :: | value | Result of parsing the expression |
This subroutine takes a vector mathematical function of some variable 'z' as input, along with an array with discrete values for that variable 'z'. It parses the provided function, evaluates it at each 'z'-value in the array, and then returns the discretized scalar field.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | expression | Vector-valued function of position 'z' |
||
real(kind=wp), | intent(in), | dimension(:) | :: | domain | Domain of the independent variable 'z' |
|
real(kind=wp), | dimension(:,:), allocatable | :: | value | Result of evaluating the field at each point of the domain |
This subroutine takes a scalar logical expression as input, and returns the value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | expression | Either the character 'T' or 'F' |
||
logical, | intent(out) | :: | value | Result of parsing the expression |
This subroutine takes a scalar integer expression as input, and returns the value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | expression | String containing an integer |
||
integer, | intent(out) | :: | value | Result of parsing the expression |