#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <kinsol/kinsol.h>
#include <kinsol/kinsol_spgmr.h>
#include <kinsol/kinsol_bbdpre.h>
#include <nvector/nvector_parallel.h>
#include <sundials/sundials_dense.h>
#include <sundials/sundials_math.h>
#include <sundials/sundials_types.h>
#include <mpi.h>
Classes | |
struct | UserData |
Defines | |
#define | NUM_SPECIES 6 |
#define | PI RCONST(3.1415926535898) |
#define | NPEX 2 |
#define | NPEY 2 |
#define | MXSUB 10 |
#define | MYSUB 10 |
#define | MX (NPEX*MXSUB) |
#define | MY (NPEY*MYSUB) |
#define | NSMXSUB (NUM_SPECIES * MXSUB) |
#define | NSMXSUB2 (NUM_SPECIES * (MXSUB+2)) |
#define | NEQ (NUM_SPECIES*MX*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.0) |
#define | ONE RCONST(1.0) |
#define | PREYIN RCONST(1.0) |
#define | PREDIN RCONST(30000.0) |
#define | IJ_Vptr(vv, i, j) (&NV_Ith_P(vv, i*NUM_SPECIES + j*NSMXSUB)) |
#define | acoef (data->acoef) |
#define | bcoef (data->bcoef) |
#define | cox (data->cox) |
#define | coy (data->coy) |
Functions | |
int | main (int argc, char *argv[]) |
#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) |
Referenced by main().
#define GG RCONST(0.5e-6) |
#define IJ_Vptr | ( | vv, | |||
i, | |||||
j | ) | (&NV_Ith_P(vv, i*NUM_SPECIES + j*NSMXSUB)) |
#define MX (NPEX*MXSUB) |
#define MXSUB 10 |
#define MY (NPEY*MYSUB) |
#define MYSUB 10 |
#define NEQ (NUM_SPECIES*MX*MY) |
#define NPEX 2 |
#define NPEY 2 |
#define NSMXSUB (NUM_SPECIES * MXSUB) |
#define NSMXSUB2 (NUM_SPECIES * (MXSUB+2)) |
#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) |
Referenced by main().
#define THOUSAND RCONST(1000.0) |
#define ZERO RCONST(0.0) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References fkinkryx::fnormtol, FTOL, KIN_NONE, KINBBDPrecAlloc(), KINBBDPrecFree(), KINBBDSpgmr(), KINCreate(), KINFree(), KINMalloc(), KINSetConstraints(), KINSetFdata(), KINSetFuncNormTol(), KINSetScaledStepTol(), KINSol(), KINSpilsSetMaxRestarts(), fkinkryx::maxl, fkinkryx::maxlrst, IDABBDPRE::mldq, IDABBDPRE::mlkeep, IDABBDPRE::mudq, IDABBDPRE::mukeep, MXSUB, MYSUB, N_VConst(), N_VDestroy_Parallel(), N_VNew_Parallel(), NEQ, fkinkryx_p::npes, NPEX, NPEY, NUM_SPECIES, fkinkryx::scsteptol, STOL, and ZERO.