SetUserFunctionParam
Set the parameters for initiating an instance of UserFunction_
.
Interface
INTERFACE
MODULE SUBROUTINE SetUserFunctionParam(param, name, returnType, argType, &
& numArgs, numReturns, luaScript, luaFunctionName, returnShape)
TYPE(ParameterList_), INTENT(INOUT) :: param
!! parameter to be constructed
CHARACTER(*), INTENT(IN) :: name
!! name of the function
INTEGER(I4B), INTENT(IN) :: returnType
!! Scalar, Vector, Matrix
INTEGER(I4B), INTENT(IN) :: argType
!! Constant, Space, Time, SpaceTime
INTEGER(I4B), OPTIONAL, INTENT(IN) :: numArgs
!! number of argument
INTEGER(I4B), OPTIONAL, INTENT(IN) :: numReturns
!! number of returns
CHARACTER(*), OPTIONAL, INTENT(IN) :: luaScript
!! lua script
CHARACTER(*), OPTIONAL, INTENT(IN) :: luaFunctionName
!! lua function name
INTEGER(I4B), OPTIONAL, INTENT(IN) :: returnShape(2)
!! Shape of return type
!! Only used when returnType is Matrix
END SUBROUTINE SetUserFunctionParam
END INTERFACE
name
Name of the function.
returnType
and numReturns
Type of return and number of returns.
The returnType
can take following values:
Scalar
, In this casenumReturns
should be 1Vector
, In this casenumReturns
should be 3Matrix
, In this casenumReturns
should be 9
argType
and numArgs
Type of return and number of arguments.
The argType
can take following values:
Constant
, In this casenumArgs
should be 0Space
, In this casenumArgs
should be 3Time
, In this casenumArgs
should be 1SpaceTime
, In this casenumArgs
should be 4