#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <kinsol/kinsol.h>
#include <kinsol/kinsol_spgmr.h>
#include <nvector/nvector_serial.h>
#include <sundials/sundials_dense.h>
#include <sundials/sundials_types.h>
#include <sundials/sundials_math.h>
Classes | |
struct | UserData |
Defines | |
#define | NUM_SPECIES 6 |
#define | PI RCONST(3.1415926535898) |
#define | MX 8 |
#define | MY 8 |
#define | NSMX (NUM_SPECIES * MX) |
#define | NEQ (NSMX * MY) |
#define | AA RCONST(1.0) |
#define | EE RCONST(10000.) |
#define | GG RCONST(0.5e-6) |
#define | BB RCONST(1.0) |
#define | DPREY RCONST(1.0) |
#define | DPRED RCONST(0.5) |
#define | ALPHA RCONST(1.0) |
#define | AX RCONST(1.0) |
#define | AY RCONST(1.0) |
#define | FTOL RCONST(1.e-7) |
#define | STOL RCONST(1.e-13) |
#define | THOUSAND RCONST(1000.0) |
#define | ZERO RCONST(0.) |
#define | ONE RCONST(1.0) |
#define | TWO RCONST(2.0) |
#define | PREYIN RCONST(1.0) |
#define | PREDIN RCONST(30000.0) |
#define | IJ_Vptr(vv, i, j) (&NV_Ith_S(vv, i*NUM_SPECIES + j*NSMX)) |
#define | acoef (data->acoef) |
#define | bcoef (data->bcoef) |
#define | cox (data->cox) |
#define | coy (data->coy) |
Functions | |
int | main (void) |
#define AA RCONST(1.0) |
#define acoef (data->acoef) |
#define ALPHA RCONST(1.0) |
#define AX RCONST(1.0) |
#define AY RCONST(1.0) |
#define BB RCONST(1.0) |
#define bcoef (data->bcoef) |
#define cox (data->cox) |
#define coy (data->coy) |
#define DPRED RCONST(0.5) |
#define DPREY RCONST(1.0) |
#define EE RCONST(10000.) |
#define FTOL RCONST(1.e-7) |
#define GG RCONST(0.5e-6) |
#define IJ_Vptr | ( | vv, | |||
i, | |||||
j | ) | (&NV_Ith_S(vv, i*NUM_SPECIES + j*NSMX)) |
#define MX 8 |
#define MY 8 |
#define NEQ (NSMX * MY) |
#define NSMX (NUM_SPECIES * MX) |
#define NUM_SPECIES 6 |
#define ONE RCONST(1.0) |
#define PI RCONST(3.1415926535898) |
#define PREDIN RCONST(30000.0) |
#define PREYIN RCONST(1.0) |
#define STOL RCONST(1.e-13) |
#define THOUSAND RCONST(1000.0) |
#define TWO RCONST(2.0) |
#define ZERO RCONST(0.) |
int main | ( | void | ) |
References fkinkryx::fnormtol, FTOL, KIN_NONE, KINCreate(), KINFree(), KINMalloc(), KINSetConstraints(), KINSetFdata(), KINSetFuncNormTol(), KINSetScaledStepTol(), KINSol(), KINSpgmr(), KINSpilsSetMaxRestarts(), KINSpilsSetPreconditioner(), fkinkryx::maxl, fkinkryx::maxlrst, N_VConst(), N_VDestroy_Serial(), N_VNew_Serial(), NEQ, fkinkryx::scsteptol, STOL, and TWO.