| Writing S-Functions | ![]() |
Get the absolute tolerances used by the model's variable step solver.
Syntax
real_T *ssGetAbsTol(SimStruct *S)
Arguments
S
SimStruct representing an S-function block.
Description
Use in mdlStart to get the absolute tolerances used by the variable step solver for this simulation. Returns a pointer to an array that contains the tolerance for each continuous state.
Languages
Example
{
int isVarSolver = ssIsVariableStepSolver(S);
if (isVarSolver) {
real_T *absTol = ssGetAbsTol(S);
int nCStates = ssGetNumContStates(S);
absTol[0] = whatever_value;
...
absTol[nCStates-1] = whatever_value;
}
}
See Also
ssGetStateAbsTol, ssIsVariableStepSolver
| ssCallSystemWithTid | ssGetContStateAddress | ![]() |