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

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

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

Member Function Documentation

◆ getValue()

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

Definition at line 49 of file Core.hpp.

49 { return value; }
static constexpr const int value
Definition: Core.hpp:48

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

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

◆ set_moab_interface()

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

Definition at line 30 of file CoreTemplates.hpp.

31  {
32  return this->setMoabInterface(new_moab, verb);
33 };

Member Data Documentation

◆ value

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

Definition at line 48 of file Core.hpp.


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