#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cvodes/cvodes.h>
#include <cvodes/cvodes_spgmr.h>
#include <cvodes/cvodes_spbcgs.h>
#include <cvodes/cvodes_sptfqmr.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 | ZERO RCONST(0.0) |
#define | ONE RCONST(1.0) |
#define | TWO RCONST(2.0) |
#define | NUM_SPECIES 2 |
#define | KH RCONST(4.0e-6) |
#define | VEL RCONST(0.001) |
#define | KV0 RCONST(1.0e-8) |
#define | Q1 RCONST(1.63e-16) |
#define | Q2 RCONST(4.66e-16) |
#define | C3 RCONST(3.7e16) |
#define | A3 RCONST(22.62) |
#define | A4 RCONST(7.601) |
#define | C1_SCALE RCONST(1.0e6) |
#define | C2_SCALE RCONST(1.0e12) |
#define | T0 ZERO |
#define | NOUT 12 |
#define | TWOHR RCONST(7200.0) |
#define | HALFDAY RCONST(4.32e4) |
#define | PI RCONST(3.1415926535898) |
#define | XMIN ZERO |
#define | XMAX RCONST(20.0) |
#define | YMIN RCONST(30.0) |
#define | YMAX RCONST(50.0) |
#define | XMID RCONST(10.0) |
#define | YMID RCONST(40.0) |
#define | MX 10 |
#define | MY 10 |
#define | NSMX 20 |
#define | MM (MX*MY) |
#define | RTOL RCONST(1.0e-5) |
#define | FLOOR RCONST(100.0) |
#define | ATOL (RTOL*FLOOR) |
#define | NEQ (NUM_SPECIES*MM) |
#define | USE_SPGMR 0 |
#define | USE_SPBCG 1 |
#define | USE_SPTFQMR 2 |
#define | IJKth(vdata, i, j, k) (vdata[i-1 + (j)*NUM_SPECIES + (k)*NSMX]) |
#define | IJth(a, i, j) (a[j-1][i-1]) |
Functions | |
int | main (void) |
#define A3 RCONST(22.62) |
#define A4 RCONST(7.601) |
#define ATOL (RTOL*FLOOR) |
#define C1_SCALE RCONST(1.0e6) |
#define C2_SCALE RCONST(1.0e12) |
#define C3 RCONST(3.7e16) |
#define FLOOR RCONST(100.0) |
#define HALFDAY RCONST(4.32e4) |
#define KH RCONST(4.0e-6) |
#define KV0 RCONST(1.0e-8) |
#define MM (MX*MY) |
#define MX 10 |
#define MY 10 |
#define NEQ (NUM_SPECIES*MM) |
#define NOUT 12 |
#define NSMX 20 |
#define NUM_SPECIES 2 |
#define ONE RCONST(1.0) |
#define PI RCONST(3.1415926535898) |
#define Q1 RCONST(1.63e-16) |
#define Q2 RCONST(4.66e-16) |
#define RTOL RCONST(1.0e-5) |
#define T0 ZERO |
#define TWO RCONST(2.0) |
#define TWOHR RCONST(7200.0) |
#define USE_SPBCG 1 |
#define USE_SPGMR 0 |
#define USE_SPTFQMR 2 |
#define VEL RCONST(0.001) |
#define XMAX RCONST(20.0) |
#define XMID RCONST(10.0) |
#define XMIN ZERO |
#define YMAX RCONST(50.0) |
#define YMID RCONST(40.0) |
#define YMIN RCONST(30.0) |
#define ZERO RCONST(0.0) |
int main | ( | void | ) |
References ATOL, CV_BDF, CV_NEWTON, CV_NORMAL, CV_SS, CVode(), CVodeCreate(), CVodeFree(), CVodeMalloc(), CVodeReInit(), CVodeSetFdata(), CVSpbcg(), CVSpgmr(), CVSpilsSetGSType(), CVSpilsSetPreconditioner(), CVSptfqmr(), fkinkryx::iout, MODIFIED_GS, N_VDestroy_Serial(), N_VNew_Serial(), NEQ, NOUT, PREC_LEFT, RTOL, T0, __fidadenx.f__::tout, TWOHR, USE_SPBCG, USE_SPGMR, and USE_SPTFQMR.