MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
util.hpp File Reference

Go to the source code of this file.

Classes

struct  mfem::ceed::BasisHash
 
struct  mfem::ceed::RestrHash
 

Namespaces

namespace  mfem
 
namespace  mfem::ceed
 

Typedefs

using mfem::ceed::BasisKey
 
using mfem::ceed::BasisMap = std::unordered_map<const BasisKey, CeedBasis, BasisHash>
 
using mfem::ceed::RestrKey
 
using mfem::ceed::RestrMap
 

Enumerations

enum  mfem::ceed::restr_type { mfem::ceed::Standard , mfem::ceed::Strided , mfem::ceed::Coeff }
 

Functions

bool mfem::DeviceCanUseCeed ()
 Function that determines if a CEED kernel should be used, based on the current mfem::Device configuration.
 
void mfem::ceed::RemoveBasisAndRestriction (const mfem::FiniteElementSpace *fes)
 Remove from ceed_basis_map and ceed_restr_map the entries associated with the given fes.
 
void mfem::ceed::InitVector (const mfem::Vector &v, CeedVector &cv)
 Initialize a CeedVector from an mfem::Vector.
 
void mfem::ceed::InitBasisAndRestriction (const mfem::FiniteElementSpace &fes, const mfem::IntegrationRule &ir, Ceed ceed, CeedBasis *basis, CeedElemRestriction *restr)
 Initialize a CeedBasis and a CeedElemRestriction based on an mfem::FiniteElementSpace fes, and an mfem::IntegrationRule ir.
 
void mfem::ceed::InitBasisAndRestriction (const FiniteElementSpace &fes, const IntegrationRule &ir, int nelem, const int *indices, Ceed ceed, CeedBasis *basis, CeedElemRestriction *restr)
 Initialize a CeedBasis and a CeedElemRestriction based on an mfem::FiniteElementSpace fes, and an mfem::IntegrationRule ir, and a list of nelem elements of indices indices.
 
int mfem::ceed::CeedOperatorGetActiveField (CeedOperator oper, CeedOperatorField *field)
 
template<typename Integrator >
const IntegrationRulemfem::ceed::GetRule (const Integrator &integ, const FiniteElement &trial_fe, const FiniteElement &test_fe, ElementTransformation &Trans)
 
const std::string & mfem::ceed::GetCeedPath ()
 Return the path to the libCEED q-function headers.
 
template<typename T >
std::size_t mfem::ceed::CeedHash (const T key)
 Wrapper for std::hash.
 
std::size_t mfem::ceed::CeedHashCombine (std::size_t seed, std::size_t hash)
 Effective way to combine hashes (from libCEED).