# struct s2_numericalintegrator_ode113_t¶

#include <ode113.h>


## Overview¶

Attributes associated with numerical integrator. More…

// fields

double* y
double* dy
double* ydata
int stepCount
char* outFile
int neqn
int neqn2
double t
double tout
int iflag
double* work
int* iwork
int iterationCount
s2_stack_t* reconfigurations


## Detailed Documentation¶

Attributes associated with numerical integrator.

### Fields¶

double* y


the current solution

double* dy


first time derivative of generalized coordinates

double* ydata


array to store results from numerical integration

char* outFile


number of steps in ydata array, found by tspan / tstep filename to write results to

int neqn


number of equations for dynamics

int neqn2


total number of equations including additional state variables that must be integrated for force modules

double t


current value of the independent variable

double tout


the desired value of t of simulation output

int iflag


indicates the status of integration. On input, IFLAG is normally 1 (or -1 in the special case where TOUT is not to be exceeded.) On normal output, IFLAG is 2. Other output values are: 3, integration did not reach TOUT because the error tolerances were too small. But RELERR and ABSERR were increased appropriately for continuing; 4, integration did not reach TOUT because more than 500 steps were taken; 5, integration did not reach TOUT because the equations appear to be stiff; 6, invalid input parameters (fatal error). The value of IFLAG is returned negative when the input value is negative and the integration does not reach TOUT.

double* work


work[100 + 21 * neqn]

int* iwork


iwork[5]

s2_stack_t* reconfigurations


records time step indices of a full factor event during a running simulation