#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_types.h>
#include <sundials/sundials_math.h>
#include <mpi.h>
Classes | |
struct | UserData |
Defines | |
#define | ZERO RCONST(0.0) |
#define | ONE RCONST(1.0) |
#define | TWO RCONST(2.0) |
#define | NOUT 11 |
#define | NPEX 2 |
#define | NPEY 2 |
#define | MXSUB 5 |
#define | MYSUB 5 |
#define | MX (NPEX*MXSUB) |
#define | MY (NPEY*MYSUB) |
Functions | |
int | resHeat (realtype tt, N_Vector uu, N_Vector up, N_Vector rr, void *res_data) |
int | PsolveHeat (realtype tt, N_Vector uu, N_Vector up, N_Vector rr, N_Vector rvec, N_Vector zvec, realtype c_j, realtype delta, void *prec_data, N_Vector tmp) |
int | PsetupHeat (realtype tt, N_Vector yy, N_Vector yp, N_Vector rr, realtype c_j, void *prec_data, N_Vector tmp1, N_Vector tmp2, N_Vector tmp3) |
int | main (int argc, char *argv[]) |
#define MX (NPEX*MXSUB) |
#define MXSUB 5 |
#define MY (NPEY*MYSUB) |
#define MYSUB 5 |
#define NOUT 11 |
#define NPEX 2 |
#define NPEY 2 |
#define ONE RCONST(1.0) |
#define TWO RCONST(2.0) |
#define ZERO RCONST(0.0) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References __fidadenx.f__::atol, IDABBDPRE::id, IDA_NORMAL, IDA_SS, IDACreate(), IDAFree(), IDAMalloc(), IDASetConstraints(), IDASetId(), IDASetRdata(), IDASetSuppressAlg(), IDASolve(), IDASpgmr(), IDASpilsSetPreconditioner(), fkinkryx::ier, fkinkryx::iout, MX, MXSUB, MY, MYSUB, N_VConst(), N_VDestroy_Parallel(), N_VNew_Parallel(), NOUT, fkinkryx_p::npes, NPEX, NPEY, ONE, UserData::pp, PsetupHeat(), PsolveHeat(), resHeat(), __fidadenx.f__::rtol, __fidadenx.f__::t0, __fidadenx.f__::t1, IDABBDPRE::thispe, __fidadenx.f__::tout, __fidadenx.f__::tret, TRUE, TWO, IDABBDPRE::up, fkinkryx::uu, and ZERO.
int PsetupHeat | ( | realtype | tt, | |
N_Vector | yy, | |||
N_Vector | yp, | |||
N_Vector | rr, | |||
realtype | c_j, | |||
void * | prec_data, | |||
N_Vector | tmp1, | |||
N_Vector | tmp2, | |||
N_Vector | tmp3 | |||
) |
References UserData::coeffxy, UserData::ixsub, ixsub, UserData::jysub, jysub, UserData::mxsub, mxsub, UserData::mysub, mysub, N_VConst(), UserData::npex, npex, UserData::npey, npey, NV_DATA_P, ONE, and UserData::pp.
Referenced by main().
Referenced by main().