#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>
Defines | |
#define | NVAR 8 |
#define | NEQ 3*NVAR |
#define | FTOL RCONST(1.e-5) |
#define | STOL RCONST(1.e-5) |
#define | ZERO RCONST(0.0) |
#define | ONE RCONST(1.0) |
#define | TWO RCONST(2.0) |
#define | Ith(v, i) NV_Ith_S(v,i-1) |
#define | IJth(A, i, j) DENSE_ELEM(A,i-1,j-1) |
Functions | |
int | main () |
#define FTOL RCONST(1.e-5) |
#define Ith | ( | v, | |||
i | ) | NV_Ith_S(v,i-1) |
#define NEQ 3*NVAR |
#define NVAR 8 |
#define ONE RCONST(1.0) |
#define STOL RCONST(1.e-5) |
#define TWO RCONST(2.0) |
#define ZERO RCONST(0.0) |
int main | ( | void | ) |
References fkinkryx::fnormtol, FTOL, fkinkryx::i, Ith, KIN_LINESEARCH, KINCreate(), KINDense(), KINDlsSetJacFn(), KINFree(), KINMalloc(), KINSetConstraints(), KINSetFuncNormTol(), KINSetMaxSetupCalls(), KINSetScaledStepTol(), KINSol(), N_VConst_Serial(), N_VDestroy_Serial(), N_VNew_Serial(), NEQ, NVAR, ONE, fkinkryx::scale, fkinkryx::scsteptol, SQRT, STOL, TWO, y, and ZERO.