Houses simple derivation class handling derivations of the form constproduct(variables*powers)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SimpleDerivation), | intent(inout) | :: | this | |||
type(RealArray), | intent(in), | dimension(:) | :: | inputArray | ||
integer(kind=ik), | intent(in), | dimension(:) | :: | indices |
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 |
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 |
procedure, public :: isDefined => isDefinedObject | |
procedure, public :: makeDefined => makeDefinedObject | |
procedure, public :: makeUndefined => makeUndefinedObject | |
procedure, public :: init => initSimpleDeriv | |
procedure, public :: calculate => calculateSimple |