accelerInt  v0.1
cvodes_dydt.c
Go to the documentation of this file.
1 
6 #include "dydt.h"
7 #include "cvodes_dydt.h"
8 
16 int dydt_cvodes(realtype t, N_Vector y, N_Vector ydot, void* f)
17 {
18  double* local_y = NV_DATA_S(y);
19  double* local_dy = NV_DATA_S(ydot);
20  dydt((double)t, *(double*)f, local_y, local_dy);
21  return 0;
22 }
Contains header definitions for the RHS function for the van der Pol example.
Header file for CVODEs interface to RHS of ODEs.
void dydt(const double t, const double mu, const double *__restrict__ y, double *__restrict__ dy)
An implementation of the RHS of the van der Pol equation.
Definition: dydt.c:22
int dydt_cvodes(realtype t, N_Vector y, N_Vector ydot, void *f)
Definition: cvodes_dydt.c:16