#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cvodes/cvodes.h>
#include <cvodes/cvodes_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 |
struct | PreconData |
Defines | |
#define | NVARS 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 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 | YMIN RCONST(30.0) |
#define | YMAX RCONST(50.0) |
#define | NPEX 2 |
#define | NPEY 2 |
#define | MXSUB 5 |
#define | MYSUB 5 |
#define | MX (NPEX*MXSUB) |
#define | MY (NPEY*MYSUB) |
#define | RTOL RCONST(1.0e-5) |
#define | FLOOR RCONST(100.0) |
#define | ATOL (RTOL*FLOOR) |
#define | IJth(a, i, j) (a[j-1][i-1]) |
Functions | |
int | main (int argc, char *argv[]) |
#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 MX (NPEX*MXSUB) |
#define MXSUB 5 |
#define MY (NPEY*MYSUB) |
#define MYSUB 5 |
#define NOUT 12 |
#define NPEX 2 |
#define NPEY 2 |
#define NVARS 2 |
#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 RCONST(0.0) |
#define TWOHR RCONST(7200.0) |
#define VEL RCONST(0.001) |
#define XMAX RCONST(20.0) |
#define XMIN RCONST(0.0) |
#define YMAX RCONST(50.0) |
#define YMIN RCONST(30.0) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References ATOL, CV_BDF, CV_NEWTON, CV_NORMAL, CV_SS, CVode(), CVodeCreate(), CVodeFree(), CVodeMalloc(), CVodeSetFdata(), CVSpgmr(), CVSpilsSetPreconditioner(), fkinkryx::iout, MX, MXSUB, MY, MYSUB, N_VDestroy_Parallel(), N_VNew_Parallel(), fkinkryx::neq, NOUT, fkinkryx_p::npes, NPEX, NPEY, NVARS, PREC_LEFT, RTOL, T0, __fidadenx.f__::tout, and TWOHR.