v0.10.0
Public Member Functions | Static Public Attributes | List of all members
MoFEM::CoreTmp< N > Struct Template Reference

#include <src/interfaces/Core.hpp>

Public Member Functions

const int getValue () const
 
virtual boost::shared_ptr< RefEntityTmp< 0 > > make_shared_ref_entity (const EntityHandle ent)
 
 CoreTmp (moab::Interface &moab, MPI_Comm comm=PETSC_COMM_WORLD, const int verbose=VERBOSE)
 
MoFEMErrorCode set_moab_interface (moab::Interface &new_moab, int verb)
 

Static Public Attributes

static constexpr const int value = N
 

Detailed Description

template<int N>
struct MoFEM::CoreTmp< N >

Examples
bernstein_bezier_generate_base.cpp, and field_axpy_atom_test.cpp.

Definition at line 30 of file Core.hpp.

Constructor & Destructor Documentation

◆ CoreTmp()

template<int N>
MoFEM::CoreTmp< N >::CoreTmp ( moab::Interface &  moab,
MPI_Comm  comm = PETSC_COMM_WORLD,
const int  verbose = VERBOSE 
)

Construct core database

Parameters
moabMoAB interface
commMPI communicator
verboseVerbosity level

Definition at line 60 of file CoreTemplates.hpp.

64  : CoreTmp<N - 1>(moab, comm, verbose, CoreValue<N>()) {
65 
66  // Register sub-interfaces
67  ierr = this->registerSubInterfaces();
68  CHKERRABORT(comm, ierr);
69  ierr = this->clearMap();
70  CHKERRABORT(comm, ierr);
71  ierr = this->getTags();
72  CHKERRABORT(comm, ierr);
73  ierr = this->getOptions(verbose);
74  CHKERRABORT(comm, ierr);
75 
76  this->basicEntityDataPtr = boost::make_shared<BasicEntityData>(moab);
77  this->setRefEntBasicDataPtr(*this, this->basicEntityDataPtr);
78 
79  ierr = this->initialiseDatabaseFromMesh(verbose);
80  CHKERRABORT(comm, ierr);
81 }
CoreTmp(moab::Interface &moab, MPI_Comm comm=PETSC_COMM_WORLD, const int verbose=VERBOSE)
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:87
const int N
Definition: speed_test.cpp:3

Member Function Documentation

◆ getValue()

template<int N>
const int MoFEM::CoreTmp< N >::getValue ( ) const

Definition at line 33 of file Core.hpp.

33 { return value; }
static constexpr const int value
Definition: Core.hpp:32

◆ make_shared_ref_entity()

template<int N>
boost::shared_ptr< RefEntityTmp< 0 > > MoFEM::CoreTmp< N >::make_shared_ref_entity ( const EntityHandle  ent)
virtual

Definition at line 39 of file CoreTemplates.hpp.

39  {
40  return Core::makeSharedRefEntity(*this, ent);
41 }
static boost::shared_ptr< RefEntityTmp< 0 > > makeSharedRefEntity(MoFEM::Interface &m_field, const EntityHandle ent)
Definition: Core.cpp:938

◆ set_moab_interface()

template<int N>
MoFEMErrorCode MoFEM::CoreTmp< N >::set_moab_interface ( moab::Interface &  new_moab,
int  verb 
)

Definition at line 32 of file CoreTemplates.hpp.

33  {
34  return this->setMoabInterface(new_moab, verb);
35 };

Member Data Documentation

◆ value

template<int N>
constexpr const int MoFEM::CoreTmp< N >::value = N
static

Definition at line 32 of file Core.hpp.


The documentation for this struct was generated from the following files: