/usr/include/LLNL_FEI_Solver.h is in libhypre-dev 2.8.0b-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | /*BHEADER**********************************************************************
* Copyright (c) 2008, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
* This file is part of HYPRE. See file COPYRIGHT for details.
*
* HYPRE is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License (as published by the Free
* Software Foundation) version 2.1 dated February 1999.
*
* $Revision: 2.5 $
***********************************************************************EHEADER*/
/***************************************************************************
Module: LLNL_FEI_Solver.h
Purpose: custom implementation of the FEI/Solver
***************************************************************************/
#ifndef _LLNL_FEI_SOLVER_H_
#define _LLNL_FEI_SOLVER_H_
#include "LLNL_FEI_Matrix.h"
/**************************************************************************
definition of the class to capture the FEI/Solver information
---------------------------------------------------------------------------*/
class LLNL_FEI_Solver
{
MPI_Comm mpiComm_;
int mypid_;
int outputLevel_;
LLNL_FEI_Matrix *matPtr_;
int solverID_;
int krylovMaxIterations_;
double krylovTolerance_;
int krylovAbsRel_;
int krylovIterations_;
double krylovResidualNorm_;
int gmresDim_;
double *solnVector_;
double *rhsVector_;
double TimerSolve_;
double TimerSolveStart_;
public :
LLNL_FEI_Solver(MPI_Comm comm);
~LLNL_FEI_Solver() {}
int parameters(int numParams, char **paramString);
int solve(int *status);
int iterations(int *iterTaken) {*iterTaken=krylovIterations_; return 0;}
int getResidualNorm(double *rnorm) {*rnorm=krylovResidualNorm_; return 0;}
int getSolveTime(double *stime) {*stime=TimerSolve_; return 0;}
int loadMatrix(LLNL_FEI_Matrix *mat) {matPtr_ = mat; return 0;}
int loadSolnVector(double *soln) {solnVector_ = soln ; return 0;}
int loadRHSVector(double *rhs) {rhsVector_ = rhs; return 0;}
private:
int solveUsingCG();
int solveUsingGMRES();
int solveUsingCGS();
int solveUsingBicgstab();
int solveUsingSuperLU();
};
#endif /* endif for _LLNL_FEI_SOLVER_H_ */
|