MFEM  v4.2.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Namespaces | Functions
hypre.cpp File Reference

Go to the source code of this file.

Namespaces

 mfem
 

Functions

double mfem::InnerProduct (HypreParVector *x, HypreParVector *y)
 
double mfem::InnerProduct (HypreParVector &x, HypreParVector &y)
 Returns the inner product of x and y. More...
 
double mfem::ParNormlp (const Vector &vec, double p, MPI_Comm comm)
 Compute the l_p norm of the Vector which is split without overlap across the given communicator. More...
 
void mfem::delete_hypre_CSRMatrixData (hypre_CSRMatrix *M)
 
void mfem::delete_hypre_ParCSRMatrixColMapOffd (hypre_ParCSRMatrix *A)
 
void mfem::delete_hypre_CSRMatrixI (hypre_CSRMatrix *M)
 
void mfem::delete_hypre_CSRMatrixJ (hypre_CSRMatrix *M)
 
HypreParMatrix * mfem::Add (double alpha, const HypreParMatrix &A, double beta, const HypreParMatrix &B)
 Return a new matrix C = alpha*A + beta*B, assuming that both A and B use the same row and column partitions and the same col_map_offd arrays. More...
 
HypreParMatrix * mfem::ParAdd (const HypreParMatrix *A, const HypreParMatrix *B)
 Returns the matrix A + B. More...
 
HypreParMatrix * mfem::ParMult (const HypreParMatrix *A, const HypreParMatrix *B, bool own_matrix)
 
HypreParMatrix * mfem::RAP (const HypreParMatrix *A, const HypreParMatrix *P)
 Returns the matrix P^t * A * P. More...
 
HypreParMatrix * mfem::RAP (const HypreParMatrix *Rt, const HypreParMatrix *A, const HypreParMatrix *P)
 Returns the matrix Rt^t * A * P. More...
 
void mfem::GatherBlockOffsetData (MPI_Comm comm, const int rank, const int nprocs, const int num_loc, const Array< int > &offsets, std::vector< int > &all_num_loc, const int numBlocks, std::vector< std::vector< HYPRE_Int >> &blockProcOffsets, std::vector< HYPRE_Int > &procOffsets, std::vector< std::vector< int >> &procBlockOffsets, HYPRE_Int &firstLocal, HYPRE_Int &globalNum)
 
HypreParMatrix * mfem::HypreParMatrixFromBlocks (Array2D< HypreParMatrix * > &blocks, Array2D< double > *blockCoeff=NULL)
 Returns a merged hypre matrix constructed from hypre matrix blocks. More...
 
void mfem::EliminateBC (HypreParMatrix &A, HypreParMatrix &Ae, const Array< int > &ess_dof_list, const Vector &X, Vector &B)
 
int mfem::ParCSRRelax_Taubin (hypre_ParCSRMatrix *A, hypre_ParVector *f, double lambda, double mu, int N, double max_eig, hypre_ParVector *u, hypre_ParVector *r)
 
int mfem::ParCSRRelax_FIR (hypre_ParCSRMatrix *A, hypre_ParVector *f, double max_eig, int poly_order, double *fir_coeffs, hypre_ParVector *u, hypre_ParVector *x0, hypre_ParVector *x1, hypre_ParVector *x2, hypre_ParVector *x3)