#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ida/ida.h>
#include <ida/ida_spgmr.h>
#include <nvector/nvector_serial.h>
#include <sundials/sundials_types.h>
Classes | |
struct | UserData |
Defines | |
#define | NOUT 11 |
#define | MGRID 10 |
#define | NEQ MGRID*MGRID |
#define | ZERO RCONST(0.0) |
#define | ONE RCONST(1.0) |
#define | TWO RCONST(2.0) |
#define | FOUR RCONST(4.0) |
Functions | |
int | resHeat (realtype tres, N_Vector uu, N_Vector up, N_Vector resval, void *rdata) |
int | PsetupHeat (realtype tt, N_Vector uu, N_Vector up, N_Vector rr, realtype c_j, void *prec_data, N_Vector tmp1, N_Vector tmp2, N_Vector tmp3) |
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 | main () |
#define FOUR RCONST(4.0) |
#define MGRID 10 |
#define NEQ MGRID*MGRID |
#define NOUT 11 |
#define ONE RCONST(1.0) |
#define TWO RCONST(2.0) |
#define ZERO RCONST(0.0) |
int main | ( | void | ) |
References __fidadenx.f__::atol, CLASSICAL_GS, IDA_NORMAL, IDA_SS, IDACreate(), IDAFree(), IDAGetNumErrTestFails(), IDAGetNumNonlinSolvConvFails(), IDAMalloc(), IDAReInit(), IDASetConstraints(), IDASetRdata(), IDASolve(), IDASpgmr(), IDASpilsGetNumConvFails(), IDASpilsSetGSType(), IDASpilsSetPreconditioner(), fkinkryx::ier, fkinkryx::iout, MGRID, N_VConst(), N_VDestroy_Serial(), N_VNew_Serial(), NEQ, NOUT, ONE, UserData::pp, PsetupHeat(), PsolveHeat(), resHeat(), __fidadenx.f__::rtol, __fidadenx.f__::t0, __fidadenx.f__::t1, __fidadenx.f__::tout, __fidadenx.f__::tret, TWO, IDABBDPRE::up, fkinkryx::uu, and ZERO.
int PsetupHeat | ( | realtype | tt, | |
N_Vector | uu, | |||
N_Vector | up, | |||
N_Vector | rr, | |||
realtype | c_j, | |||
void * | prec_data, | |||
N_Vector | tmp1, | |||
N_Vector | tmp2, | |||
N_Vector | tmp3 | |||
) |
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 | |||
) |