- Timestamp:
- 10/24/18 18:16:43 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2925_AutoDiffForDynamicalModels/AutoDiffForDynamicalModelsTest/TestCvodes.cs
r16248 r16253 172 172 173 173 CVODES.N_VDestroy_Serial(y); 174 CVODES.CVodeFree( cvode_mem);174 CVODES.CVodeFree(ref cvode_mem); 175 175 CVODES.SUNLinSolFree(linearSolver); 176 176 CVODES.SUNMatDestroy(A); … … 188 188 CVODES.NV_Set_Ith_S(y, 1, 1); // v 189 189 190 var cvode_mem = CVODES.CVodeCreate(CVODES.MultistepMethod.CV_ ADAMS, CVODES.NonlinearSolverIteration.CV_FUNCTIONAL);190 var cvode_mem = CVODES.CVodeCreate(CVODES.MultistepMethod.CV_BDF, CVODES.NonlinearSolverIteration.CV_NEWTON); 191 191 192 192 var flag = CVODES.CVodeInit(cvode_mem, F, 0.0, y); … … 264 264 265 265 CVODES.N_VDestroy_Serial(y); 266 CVODES.CVodeFree( cvode_mem);266 CVODES.CVodeFree(ref cvode_mem); 267 267 CVODES.SUNLinSolFree(linearSolver); 268 268 CVODES.SUNMatDestroy(A);
Note: See TracChangeset
for help on using the changeset viewer.