16 int dydt_cvodes(realtype t, N_Vector y, N_Vector ydot,
void* f)
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);
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.
int dydt_cvodes(realtype t, N_Vector y, N_Vector ydot, void *f)