tests/test_expected/IVComputation.c
/* Model is correctly constrained.
 * No equations needed Newton-Raphson evaluation.
 * The rate and state arrays need 2 entries.
 * The algebraic variables array needs 0 entries.
 * The constant array needs 4 entries.
 * Variable storage is as follows:
 * * Target amplitude in component environment
 * * * Variable type: constant
 * * * Variable index: 0
 * * * Variable storage: CONSTANTS[0]
 * * Target d^1/dt^1 x in component main
 * * * Variable type: algebraic variable
 * * * Variable index: 1
 * * * Variable storage: RATES[1]
 * * Target d^1/dt^1 y in component main
 * * * Variable type: algebraic variable
 * * * Variable index: 0
 * * * Variable storage: RATES[0]
 * * Target initial_t in component environment
 * * * Variable type: constant
 * * * Variable index: 1
 * * * Variable storage: CONSTANTS[1]
 * * Target t in component environment
 * * * Variable type: variable of integration
 * * * Variable index: 0
 * * * Variable storage: VOI
 * * Target x in component main
 * * * Variable type: state variable
 * * * Variable index: 1
 * * * Variable storage: STATES[1]
 * * Target x_initial in component main
 * * * Variable type: constant
 * * * Variable index: 3
 * * * Variable storage: CONSTANTS[3]
 * * Target y in component main
 * * * Variable type: state variable
 * * * Variable index: 0
 * * * Variable storage: STATES[0]
 * * Target y_initial in component main
 * * * Variable type: constant
 * * * Variable index: 2
 * * * Variable storage: CONSTANTS[2]
 */
Model is correctly constrained.
No equations needed Newton-Raphson evaluation.
The rate and state arrays need 2 entries.
The algebraic variables array needs 0 entries.
The constant array needs 4 entries.
Model is correctly constrained . No equations needed Newton - Raphson evaluation . The rate and state arrays need 2 entries . The algebraic variables array needs 0 entries . The constant array needs 4 entries .
void SetupFixedConstants(double* CONSTANTS, double* RATES, double* STATES)
{
CONSTANTS[0] = 5;
CONSTANTS[1] = 0.78;
CONSTANTS[2] =  CONSTANTS[0]* sin(CONSTANTS[1]);
CONSTANTS[3] =  CONSTANTS[0]*cos(CONSTANTS[1]);
STATES[0] = CONSTANTS[2];
STATES[1] = CONSTANTS[3];
}
void SetupFixedConstants ( double * CONSTANTS , double * RATES , double * STATES ) { CONSTANTS [ 0 ] = 5 ; CONSTANTS [ 1 ] = 0.78 ; CONSTANTS [ 2 ] = CONSTANTS [ 0 ] * sin ( CONSTANTS [ 1 ] ) ; CONSTANTS [ 3 ] = CONSTANTS [ 0 ] * cos ( CONSTANTS [ 1 ] ) ; STATES [ 0 ] = CONSTANTS [ 2 ] ; STATES [ 1 ] = CONSTANTS [ 3 ] ; }
Model is correctly constrained.
Model is correctly constrained .
/* Constant amplitude */ /* Constant initial_t */ /* Constant 3.2.3 */ /* Constant 3.2.4 */ /* Constant y */ /* Constant x */