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
nameName of the function.
returnType and numReturnsType of return and number of returns.
The returnType can take following values:
Scalar, In this casenumReturnsshould be 1Vector, In this casenumReturnsshould be 3Matrix, In this casenumReturnsshould be 9
argType and numArgsType of return and number of arguments.
The argType can take following values:
Constant, In this casenumArgsshould be 0Space, In this casenumArgsshould be 3Time, In this casenumArgsshould be 1SpaceTime, In this casenumArgsshould be 4