4.5. CVODE Constants
Below we list all input and output constants used by the main solver and linear solver modules, together with their numerical values and a short description of their meaning. Table 4.8 contains the CVODE input constants, and Table 4.9 contains the CVODE output constants.

1 
AdamsMoulton linear multistep method. 

2 
BDF linear multistep method. 

1 
Solver returns at specified output time. 

2 
Solver returns after each successful step. 

0 
No preconditioning 

1 
Preconditioning on the left only. 

2 
Preconditioning on the right only. 

3 
Preconditioning on both the left and the right. 

1 
Use modified GramSchmidt procedure. 

2 
Use classical GramSchmidt procedure. 
General outputs 


0 
Successful function return. 

1 
CVode succeeded by reaching the specified stopping point. 

2 
CVode succeeded and found one or more roots. 

99 
CVode succeeded but an unusual situation occurred. 

1 
The solver took 

2 
The solver could not satisfy the accuracy demanded by the user for some internal step. 

3 
Error test failures occurred too many times during one internal time step or minimum step size was reached. 

4 
Convergence test failures occurred too many times during one internal time step or minimum step size was reached. 

5 
The linear solver’s initialization function failed. 

6 
The linear solver’s setup function failed in an unrecoverable manner. 

7 
The linear solver’s solve function failed in an unrecoverable manner. 

8 
The righthand side function failed in an unrecoverable manner. 

9 
The righthand side function failed at the first call. 

10 
The righthand side function had repetead recoverable errors. 

11 
The righthand side function had a recoverable error, but no recovery is possible. 

12 
The rootfinding function failed in an unrecoverable manner. 

13 
The nonlinear solver’s init routine failed. 

14 
The nonlinear solver’s setup routine failed. 

15 
The inequality constraints were violated and the solver was unable to recover. 

16 
The nonlinear solver failed in an unrecoverable manner. 

20 
A memory allocation failed. 

21 
The 

22 
One of the function inputs is illegal. 

23 
The CVODE memory block was not allocated by a call to 

24 
The derivative order $k$ is larger than the order used. 

25 
The time $t$ is outside the last step taken. 

26 
The output derivative vector is 

27 
The output and initial times are too close to each other. 

28 
A vector operation failed. 

29 
The projection memory was 

30 
The projection function failed in an unrecoverable manner. 

31 
The projection function had repeated recoverable errors. 
CVLS linear solver interface outputs 


0 
Successful function return. 

1 
The 

2 
The CVLS linear solver has not been initialized. 

3 
The CVLS solver is not compatible with the current 

4 
A memory allocation request failed. 

5 
The preconditioner module has not been initialized. 

6 
The Jacobian function failed in an unrecoverable manner. 

7 
The Jacobian function had a recoverable error. 

8 
An error occurred with the current {sunmatrix} module. 

9 
An error occurred with the current {sunlinsol} module. 
CVDIAG linear solver outputs 


0 
Successful function return. 

1 
The 

2 
The CVDIAG linear solver has not been initialized. 

3 
The CVDIAG solver is not compatible with the current 

4 
A memory allocation request failed. 

5 
A diagonal element of the Jacobian was 0. 

6 
The righthand side function failed in an unrecoverable manner. 

7 
The righthand side function had a recoverable error. 