Derivation taking in a single variable v and returning c0 + sum(c_ivp_i), where p are powers and c polynomial coefficents, Can optionally take as many conforming variables as there are coefficients and return c0 + sum(c_iv_i**p_i)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | userDefined | = | .false. |
True only if user explicitly sets it to true |
|
real(kind=rk), | private, | allocatable, dimension(:) | :: | polyPowers |
Polynomial powers |
||
real(kind=rk), | private, | allocatable, dimension(:) | :: | polyCoeffs |
Polynomial coefficients |
||
real(kind=rk), | private | :: | constCoeff |
Constant coefficient - default 0 |
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 polynomial function derivation object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(PolyFunDeriv), | intent(inout) | :: | this | |||
real(kind=rk), | intent(in), | dimension(:) | :: | polyPowers | ||
real(kind=rk), | intent(in), | dimension(:) | :: | polyCoeffs | ||
real(kind=rk), | intent(in), | optional | :: | constCoeff |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(PolyFunDeriv), | intent(inout) | :: | this | |||
type(RealArray), | intent(in), | dimension(:) | :: | inputArray | ||
integer(kind=ik), | intent(in), | dimension(:) | :: | indices |