accelerInt  v0.1
jacob.c
Go to the documentation of this file.
1 
9 #include "header.h"
10 
11 #ifdef GENERATE_DOCS
12 //put this in the van der Pol namespace for documentation
13 namespace van_der_pol {
14 #endif
15 
23 void eval_jacob (const double t, const double mu, const double * __restrict__ y, double * __restrict__ jac)
24 {
34 
36  jac[0 * NSP + 0] = 0;
38  jac[1 * NSP + 0] = -2 * mu * y[0] * y[1] - 1;
40  jac[1 * NSP + 0] = 1;
42  jac[1 * NSP + 1] = mu * (1 - y[0] * y[0]);
43 }
44 
45 #ifdef GENERATE_DOCS
46 }
47 #endif
An example header file that defines system size and other required methods for integration of the van...
#define NSP
The IVP system size.
Definition: header.cuh:20
void eval_jacob(const double t, const double mu, const double *__restrict__ y, double *__restrict__ jac)
An implementation of the van der Pol jacobian.
Definition: jacob.c:23