Simple derivation object assuming all variables are confroming. Just multiplies the input array entries and raises them to set powers. Optionally multiplies the result with a constant.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | userDefined | = | .false. |
True only if user explicitly sets it to true |
|
real(kind=rk), | private, | allocatable, dimension(:) | :: | varPowers |
Powers corresponding to each variable - indices in calculate must conform to this |
||
real(kind=rk), | private | :: | multConst |
Multiplicative constant - default 1 |
Getter for userDefined
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(in) | :: | this |
Set userDefined to .true.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(inout) | :: | this |
Set userDefined to .false.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(inout) | :: | this |
Initialize simple derivation object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SimpleDerivation), | intent(inout) | :: | this | |||
real(kind=rk), | intent(in), | dimension(:) | :: | varPowers | ||
real(kind=rk), | intent(in), | optional | :: | multConst |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SimpleDerivation), | intent(inout) | :: | this | |||
type(RealArray), | intent(in), | dimension(:) | :: | inputArray | ||
integer(kind=ik), | intent(in), | dimension(:) | :: | indices |