#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <kinsol/kinsol.h>
#include <kinsol/kinsol_dense.h>
#include <nvector/nvector_serial.h>
#include <sundials/sundials_types.h>
#include <sundials/sundials_math.h>
Classes | |
struct | UserData |
Defines | |
#define | NVAR 2 |
#define | NEQ 3*NVAR |
#define | FTOL RCONST(1.e-5) |
#define | STOL RCONST(1.e-5) |
#define | ZERO RCONST(0.0) |
#define | PT25 RCONST(0.25) |
#define | PT5 RCONST(0.5) |
#define | ONE RCONST(1.0) |
#define | ONEPT5 RCONST(1.5) |
#define | TWO RCONST(2.0) |
#define | PI RCONST(3.1415926) |
#define | E RCONST(2.7182818) |
#define | Ith(v, i) NV_Ith_S(v,i-1) |
Functions | |
int | main () |
#define E RCONST(2.7182818) |
#define FTOL RCONST(1.e-5) |
#define Ith | ( | v, | |||
i | ) | NV_Ith_S(v,i-1) |
#define NEQ 3*NVAR |
#define NVAR 2 |
Referenced by main().
#define ONE RCONST(1.0) |
#define ONEPT5 RCONST(1.5) |
Referenced by main().
#define PI RCONST(3.1415926) |
#define PT25 RCONST(0.25) |
Referenced by main().
#define PT5 RCONST(0.5) |
#define STOL RCONST(1.e-5) |
#define TWO RCONST(2.0) |
#define ZERO RCONST(0.0) |
int main | ( | void | ) |
References c, fkinkryx::fnormtol, FTOL, Ith, KIN_LINESEARCH, KIN_NONE, KINCreate(), KINDense(), KINFree(), KINMalloc(), KINSetConstraints(), KINSetFdata(), KINSetFuncNormTol(), KINSetScaledStepTol(), UserData::lb, N_VConst_Serial(), N_VDestroy_Serial(), N_VNew_Serial(), N_VScale_Serial(), NEQ, ONE, ONEPT5, PI, PT25, fkinkryx::scsteptol, STOL, TWO, UserData::ub, and ZERO.