Example Programs for KINSOL v2.2.0
A M Collier, R Serban
Abstract
Open-access reader
A M Collier, R Serban
Abstract
Open-access reader
include #include #include #include "sundialstypes.h"/* def's of realtype and booleantype */ #include "kinsol.h"/* main KINSol header file */ #include "iterative.h"/* enum for types of preconditioning */ #include "kinspgmr.h"/* use KINSpgmr linear solver */ #include "smalldense.h"/* use generic DENSE solver for preconditioning*/ #include "nvector_parallel.h"/* def's of type N_Vector, macro NV_DATA_P */ #include "sundialsmath.h"/* contains RSqrt routine */ #include "mpi.h"/* MPI include file */ #include "kinbbdpre.h"/* band preconditioner function prototypes */ /* Problem Constants */ #define NUM_SPECIES 6 /* must equal 2*(number of prey or predators) number of prey = number of predators */ #define PI RCONST(3.1415926535898)/* pi */ #define NPEX 2 /* number of processors in the x-direction */ #define NPEY 2 /* number of processors in the y-direction */ #define MXSUB 10 /* number of x mesh points per subgrid */ #define MYSUB 10 /* number of y mesh points per subgrid */
A significance statement is not available in the OpenAlex record.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
include #include #include #include "sundialstypes.h"/* def's of realtype and booleantype */ #include "kinsol.h"/* main KINSol header file */ #include "iterative.h"/* enum for types of preconditioning */ #include "kinspgmr.h"/* use KINSpgmr linear solver */ #include "smalldense.h"/* use generic DENSE solver for preconditioning*/ #include "nvector_parallel.h"/* def's of type N_Vector, macro NV_DATA_P */ #include "sundialsmath.h"/* contains RSqrt routine */ #include "mpi.h"/* MPI include file */ #include "kinbbdpre.h"/* band preconditioner function prototypes */ /* Problem Constants */ #define NUM_SPECIES 6 /* must equal 2*(number of prey or predators) number of prey = number of predators */ #define PI RCONST(3.1415926535898)/* pi */ #define NPEX 2 /* number of processors in the x-direction */ #define NPEY 2 /* number of processors in the y-direction */ #define MXSUB 10 /* number of x mesh points per subgrid */ #define MYSUB 10 /* number of y mesh points per subgrid */
Key concepts: Computer science