/usr/include/LLNL_FEI_Impl.h is in libhypre-dev 2.8.0b-1build1.
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | /*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.9 $
***********************************************************************EHEADER*/
/***************************************************************************
Module: LLNL_FEI_Impl.h
Purpose: custom implementation of the FEI
***************************************************************************/
#ifndef _LLNL_FEI_IMPL_H_
#define _LLNL_FEI_IMPL_H_
#include "HYPRE.h"
#include "_hypre_utilities.h"
#include "LLNL_FEI_LSCore.h"
#include "LLNL_FEI_Fei.h"
#include "LLNL_FEI_Solver.h"
#include "LLNL_FEI_Matrix.h"
/**************************************************************************
definition of the class to capture the FEI information
---------------------------------------------------------------------------*/
class LLNL_FEI_Impl
{
MPI_Comm mpiComm_;
LLNL_FEI_Fei *feiPtr_;
LLNL_FEI_Solver *solverPtr_;
LLNL_FEI_Matrix *matPtr_;
int FLAG_SolverLib_;
public:
LLNL_FEI_LSCore *lscPtr_;
public :
LLNL_FEI_Impl(MPI_Comm comm);
~LLNL_FEI_Impl();
int parameters(int numParams, char **paramString);
int setSolveType(int solveType) { (void) solveType; return 0;}
inline int initFields(int numFields, int *fieldSizes, int *fieldIDs)
{return feiPtr_->initFields(numFields,fieldSizes,fieldIDs);}
inline int initElemBlock(int elemBlockID, int numElements,
int numNodesPerElement, int *numFieldsPerNode,
int **nodalFieldIDs, int numElemDOFFieldsPerElement,
int *elemDOFFieldIDs, int interleaveStrategy)
{return feiPtr_->initElemBlock(elemBlockID, numElements,
numNodesPerElement, numFieldsPerNode, nodalFieldIDs,
numElemDOFFieldsPerElement, elemDOFFieldIDs,
interleaveStrategy);}
inline int initElem(int elemBlockID, int elemID, int *elemConn)
{(void) elemBlockID; (void) elemID; (void) elemConn;
return 0;}
inline int initSharedNodes(int nShared, int *sharedIDs, int *sharedLeng,
int **sharedProcs)
{return feiPtr_->initSharedNodes(nShared,sharedIDs,
sharedLeng,sharedProcs);}
inline int initComplete() {return feiPtr_->initComplete();}
inline int resetSystem(double s) {return feiPtr_->resetSystem(s);}
inline int resetMatrix(double s) {return feiPtr_->resetMatrix(s);}
inline int resetRHSVector(double s) {return feiPtr_->resetRHSVector(s);}
inline int resetInitialGuess(double s)
{return feiPtr_->resetInitialGuess(s);}
inline int loadNodeBCs(int nNodes, int *nodeIDs, int fieldID,
double **alpha, double **beta, double **gamma)
{return feiPtr_->loadNodeBCs(nNodes,nodeIDs,fieldID,
alpha,beta,gamma);}
inline int sumInElem(int elemBlock, int elemID, int *elemConn,
double **elemStiff, double *elemLoad, int elemFormat)
{return feiPtr_->sumInElem(elemBlock,elemID,elemConn,
elemStiff,elemLoad,elemFormat);}
inline int sumInElemMatrix(int elemBlock, int elemID, int* elemConn,
double **elemStiffness, int elemFormat)
{return feiPtr_->sumInElemMatrix(elemBlock,elemID,
elemConn,elemStiffness,elemFormat);}
inline int sumInElemRHS(int elemBlock, int elemID, int *elemConn,
double *elemLoad)
{return feiPtr_->sumInElemRHS(elemBlock,elemID,elemConn,
elemLoad);}
inline int loadComplete() {return feiPtr_->loadComplete();}
int solve(int *status);
inline int iterations(int *iterTaken)
{return solverPtr_->iterations(iterTaken);}
int residualNorm(int whichNorm, int numFields, int* fieldIDs,
double* norms);
inline int getNumBlockActNodes(int blockID, int *nNodes)
{return feiPtr_->getNumBlockActNodes(blockID,nNodes);}
inline int getNumBlockActEqns(int blockID, int *nEqns)
{return feiPtr_->getNumBlockActEqns(blockID,nEqns);}
inline int getBlockNodeIDList(int blockID, int numNodes, int *nodeIDList)
{return feiPtr_->getBlockNodeIDList(blockID,numNodes,
nodeIDList);}
inline int getBlockNodeSolution(int blockID, int numNodes, int *nodeIDList,
int *solnOffsets, double *solnValues)
{return feiPtr_->getBlockNodeSolution(blockID,numNodes,
nodeIDList,solnOffsets,solnValues);}
inline int initCRMult(int CRListLen,int *CRNodeList,int *CRFieldList,
int *CRID)
{return feiPtr_->initCRMult(CRListLen,CRNodeList,
CRFieldList,CRID);}
inline int loadCRMult(int CRID, int CRListLen, int *CRNodeList,
int *CRFieldList, double *CRWeightList, double CRValue)
{return feiPtr_->loadCRMult(CRID,CRListLen,CRNodeList,
CRFieldList,CRWeightList,CRValue);}
private:
int transferSolution();
};
#endif /* endif for _LLNL_FEI_IMPL_H_ */
|