#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ida/ida.h>
#include <ida/ida_spgmr.h>
#include <nvector/nvector_parallel.h>
#include <sundials/sundials_dense.h>
#include <sundials/sundials_types.h>
#include <sundials/sundials_math.h>
#include <mpi.h>
Classes | |
struct | UserData |
Defines | |
#define | NPREY 1 |
#define | NUM_SPECIES 2*NPREY |
#define | PI RCONST(3.1415926535898) |
#define | FOURPI (RCONST(4.0)*PI) |
#define | MXSUB 10 |
#define | MYSUB 10 |
#define | NPEX 2 |
#define | NPEY 2 |
#define | MX (MXSUB*NPEX) |
#define | MY (MYSUB*NPEY) |
#define | NSMXSUB (NUM_SPECIES * MXSUB) |
#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.05) |
#define | ALPHA RCONST(50.) |
#define | BETA RCONST(1000.) |
#define | AX RCONST(1.0) |
#define | AY RCONST(1.0) |
#define | RTOL RCONST(1.e-5) |
#define | ATOL RCONST(1.e-5) |
#define | ZERO RCONST(0.) |
#define | ONE RCONST(1.0) |
#define | NOUT 6 |
#define | TMULT RCONST(10.0) |
#define | TADD RCONST(0.3) |
#define | IJ_Vptr(vv, i, j) (&NV_Ith_P(vv, (i)*NUM_SPECIES + (j)*NSMXSUB )) |
#define | mxsub (webdata->mxsub) |
#define | mysub (webdata->mysub) |
#define | npex (webdata->npex) |
#define | npey (webdata->npey) |
#define | ixsub (webdata->ixsub) |
#define | jysub (webdata->jysub) |
#define | nsmxsub (webdata->nsmxsub) |
#define | nsmxsub2 (webdata->nsmxsub2) |
#define | np (webdata->np) |
#define | dx (webdata->dx) |
#define | dy (webdata->dy) |
#define | cox (webdata->cox) |
#define | coy (webdata->coy) |
#define | rhs (webdata->rhs) |
#define | cext (webdata->cext) |
#define | rates (webdata->rates) |
#define | ns (webdata->ns) |
#define | acoef (webdata->acoef) |
#define | bcoef (webdata->bcoef) |
Functions | |
int | main (int argc, char *argv[]) |
#define AA RCONST(1.0) |
#define acoef (webdata->acoef) |
#define ALPHA RCONST(50.) |
#define ATOL RCONST(1.e-5) |
#define AX RCONST(1.0) |
#define AY RCONST(1.0) |
#define BB RCONST(1.0) |
#define bcoef (webdata->bcoef) |
#define BETA RCONST(1000.) |
#define cext (webdata->cext) |
#define cox (webdata->cox) |
#define coy (webdata->coy) |
#define DPRED RCONST(0.05) |
#define DPREY RCONST(1.0) |
#define dx (webdata->dx) |
#define dy (webdata->dy) |
#define EE RCONST(10000.) |
#define FOURPI (RCONST(4.0)*PI) |
#define GG RCONST(0.5e-6) |
#define IJ_Vptr | ( | vv, | |||
i, | |||||
j | ) | (&NV_Ith_P(vv, (i)*NUM_SPECIES + (j)*NSMXSUB )) |
#define ixsub (webdata->ixsub) |
#define jysub (webdata->jysub) |
#define MX (MXSUB*NPEX) |
#define mxsub (webdata->mxsub) |
#define MXSUB 10 |
#define MY (MYSUB*NPEY) |
#define mysub (webdata->mysub) |
#define MYSUB 10 |
#define NEQ (NUM_SPECIES*MX*MY) |
#define NOUT 6 |
#define np (webdata->np) |
#define npex (webdata->npex) |
#define NPEX 2 |
#define npey (webdata->npey) |
#define NPEY 2 |
#define NPREY 1 |
#define ns (webdata->ns) |
#define nsmxsub (webdata->nsmxsub) |
#define NSMXSUB (NUM_SPECIES * MXSUB) |
#define nsmxsub2 (webdata->nsmxsub2) |
#define NUM_SPECIES 2*NPREY |
#define ONE RCONST(1.0) |
#define PI RCONST(3.1415926535898) |
#define rates (webdata->rates) |
#define rhs (webdata->rhs) |
#define RTOL RCONST(1.e-5) |
#define TADD RCONST(0.3) |
#define TMULT RCONST(10.0) |
#define ZERO RCONST(0.) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References ATOL, __fidadenx.f__::atol, IDABBDPRE::id, IDA_NORMAL, IDA_SS, IDA_YA_YDP_INIT, IDACalcIC(), IDACreate(), IDAFree(), IDAMalloc(), IDASetId(), IDASetRdata(), IDASolve(), IDASpgmr(), IDASpilsSetPreconditioner(), fkinkryx::iout, fkinkryx::maxl, MXSUB, MYSUB, N_VDestroy(), N_VDestroy_Parallel(), N_VNew_Parallel(), NEQ, NOUT, fkinkryx_p::npes, NPEX, NPEY, NUM_SPECIES, RTOL, __fidadenx.f__::rtol, __fidadenx.f__::t0, TADD, IDABBDPRE::thispe, TMULT, __fidadenx.f__::tout, __fidadenx.f__::tret, and ZERO.