#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <cvodes/cvodes.h>
#include <cvodes/cvodes_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 2 |
#define | C1_SCALE RCONST(1.0e6) |
#define | C2_SCALE RCONST(1.0e12) |
#define | T0 RCONST(0.0) |
#define | NOUT 12 |
#define | TWOHR RCONST(7200.0) |
#define | HALFDAY RCONST(4.32e4) |
#define | PI RCONST(3.1415926535898) |
#define | XMIN RCONST(0.0) |
#define | XMAX RCONST(20.0) |
#define | ZMIN RCONST(30.0) |
#define | ZMAX RCONST(50.0) |
#define | XMID RCONST(10.0) |
#define | ZMID RCONST(40.0) |
#define | MX 15 |
#define | MZ 15 |
#define | NSMX NUM_SPECIES*MX |
#define | MM (MX*MZ) |
#define | RTOL RCONST(1.0e-5) |
#define | FLOOR RCONST(100.0) |
#define | ATOL (RTOL*FLOOR) |
#define | NEQ (NUM_SPECIES*MM) |
#define | NP 8 |
#define | NS 2 |
#define | ZERO RCONST(0.0) |
#define | ONE RCONST(1.0) |
#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 (int argc, char *argv[]) |
#define ATOL (RTOL*FLOOR) |
#define C1_SCALE RCONST(1.0e6) |
#define C2_SCALE RCONST(1.0e12) |
#define FLOOR RCONST(100.0) |
#define HALFDAY RCONST(4.32e4) |
#define MM (MX*MZ) |
#define MX 15 |
#define MZ 15 |
#define NEQ (NUM_SPECIES*MM) |
#define NOUT 12 |
#define NP 8 |
#define NS 2 |
#define NSMX NUM_SPECIES*MX |
#define NUM_SPECIES 2 |
#define ONE RCONST(1.0) |
#define PI RCONST(3.1415926535898) |
#define RTOL RCONST(1.0e-5) |
#define T0 RCONST(0.0) |
#define TWOHR RCONST(7200.0) |
#define XMAX RCONST(20.0) |
#define XMID RCONST(10.0) |
#define XMIN RCONST(0.0) |
#define ZERO RCONST(0.0) |
#define ZMAX RCONST(50.0) |
#define ZMID RCONST(40.0) |
#define ZMIN RCONST(30.0) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References ATOL, booleantype, CV_BDF, CV_CENTERED, CV_NEWTON, CV_NORMAL, CV_SIMULTANEOUS, CV_SS, CV_STAGGERED, CVode(), CVodeCreate(), CVodeFree(), CVodeGetSens(), CVodeMalloc(), CVodeSensMalloc(), CVodeSetFdata(), CVodeSetMaxNumSteps(), CVodeSetSensDQMethod(), CVodeSetSensErrCon(), CVodeSetSensParams(), CVSpgmr(), CVSpilsSetPreconditioner(), fkinkryx::iout, N_VCloneVectorArray_Serial(), N_VConst(), N_VDestroy_Serial(), N_VDestroyVectorArray_Serial(), N_VNew_Serial(), NEQ, NOUT, NS, PREC_LEFT, RTOL, T0, __fidadenx.f__::tout, TWOHR, y, and ZERO.