CUSFNC
Utility/Data Access SubroutineThe CUSFNC utility subroutine obtains a scalar output from a custom defined function in MotionSolve. The custom function must already be defined using the MotionSolve custom mapping file.
Format
- Fortran Calling Syntax
- CALL CUSFNC (FNCNAM, RPAR, NSIZE, STATE, ERRFLG)
- C/C++ Calling Syntax
- c_cusfnc(fncnam, rpar, nsize, state, errflg)
- Python Calling Syntax
- [state, errflg] = py_cusfnc(fncnam, rpar)
- MATLAB Calling Syntax
- [state, errflg] = m_cusfnc(fncnam, rpar)
Attributes
- FNCNAM
- [string]
- RPAR
- [double]
- NSIZE
- [integer]
- STATE
- [double]
- ERRFLG
- [bool]
Comments
This function can be called by any user subroutine. To create a custom function, please see Writing Custom Functions for MotionSolve.