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

#include <src/interfaces/Core.hpp>

Collaboration diagram for MoFEM::CoreTmp< N >:
[legend]

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, field_blas.cpp, and partition_mesh.cpp.

Definition at line 36 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 48 of file CoreTemplates.hpp.

52  : CoreTmp<N - 1>(moab, comm, verbose, CoreValue<N>()) {
53 
54  // Register sub-interfaces
55  ierr = this->registerSubInterfaces();
56  CHKERRABORT(comm, ierr);
57  ierr = this->clearMap();
58  CHKERRABORT(comm, ierr);
59  ierr = this->getTags();
60  CHKERRABORT(comm, ierr);
61  ierr = this->getOptions(verbose);
62  CHKERRABORT(comm, ierr);
63 
64  this->basicEntityDataPtr = boost::make_shared<BasicEntityData>(moab);
65  this->setRefEntBasicDataPtr(*this, this->basicEntityDataPtr);
66 
67  ierr = this->initialiseDatabaseFromMesh(verbose);
68  CHKERRABORT(comm, ierr);
69 
70  MOFEM_LOG_CHANNEL("WORLD");
71 }

Member Function Documentation

◆ getValue()

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

Definition at line 39 of file Core.hpp.

39 { return value; }

◆ 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 27 of file CoreTemplates.hpp.

27  {
28  return Core::makeSharedRefEntity(*this, ent);
29 }

◆ set_moab_interface()

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

Definition at line 20 of file CoreTemplates.hpp.

21  {
22  return this->setMoabInterface(new_moab, verb);
23 };

Member Data Documentation

◆ value

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

Definition at line 38 of file Core.hpp.


The documentation for this struct was generated from the following files:
MOFEM_LOG_CHANNEL
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:284
MoFEM::CoreTmp< 0 >::makeSharedRefEntity
static boost::shared_ptr< RefEntityTmp< 0 > > makeSharedRefEntity(MoFEM::Interface &m_field, const EntityHandle ent)
Definition: Core.cpp:894
MoFEM::CoreTmp::CoreTmp
CoreTmp(moab::Interface &moab, MPI_Comm comm=PETSC_COMM_WORLD, const int verbose=VERBOSE)
Definition: CoreTemplates.hpp:48
MoFEM::CoreTmp::value
static constexpr const int value
Definition: Core.hpp:38
N
const int N
Definition: speed_test.cpp:3
MoFEM::Exceptions::ierr
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:76