v0.14.0
DeprecatedCoreInterface.cpp
Go to the documentation of this file.
1 /** \file DeprecatedCoreInterface.cpp
2  * \brief implementation of deprecated functions
3  */
4 
5 
6 #include <MoFEM.hpp>
7 
8 namespace MoFEM {
9 
12  const BitRefLevel &bit, int verb) {
13  return getInterface<BitRefManager>()->setBitRefLevelByDim(meshset, 2, bit,
14  verb);
15 }
16 
19  const BitRefLevel &bit, int verb) {
20  return getInterface<BitRefManager>()->setBitRefLevelByDim(meshset, 3, bit,
21  verb);
22 }
23 
25  const BitRefLevel &bit,
26  const bool only_tets,
27  int verb) {
28  return getInterface<BitRefManager>()->setBitRefLevel(ents, bit, only_tets,
29  verb);
30 }
31 
33  const int dim,
34  const int adj_dim,
35  const int n_parts,
36  int verb) {
37  return getInterface<CommInterface>()->partitionMesh(
38  ents, dim, adj_dim, n_parts, NULL, NULL, NULL, verb);
39 }
40 
42  int verb) {
43  return getInterface<CommInterface>()->synchroniseEntities(ent, nullptr, verb);
44 }
45 
48  int verb) {
49  return getInterface<CommInterface>()->synchroniseFieldEntities(name, verb);
50 }
51 
52 } // namespace MoFEM
EntityHandle
MoFEM::Exceptions::MoFEMErrorCode
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Definition: Exceptions.hpp:56
MoFEM.hpp
MoFEM
implementation of Data Operators for Forces and Sources
Definition: Common.hpp:10
bit
auto bit
set bit
Definition: hanging_node_approx.cpp:75
MoFEM::DeprecatedCoreInterface::synchronise_entities
DEPRECATED MoFEMErrorCode synchronise_entities(Range &ent, int verb=DEFAULT_VERBOSITY)
Definition: DeprecatedCoreInterface.cpp:41
Range
MoFEM::DeprecatedCoreInterface::seed_ref_level
DEPRECATED MoFEMErrorCode seed_ref_level(const Range &ents, const BitRefLevel &bit, const bool only_tets=true, int verb=-1)
seed entities in the range and their adjacencies in a particular BitRefLevel
Definition: DeprecatedCoreInterface.cpp:24
MoFEM::DeprecatedCoreInterface::seed_ref_level_3D
DEPRECATED MoFEMErrorCode seed_ref_level_3D(const EntityHandle meshset, const BitRefLevel &bit, int verb=-1)
seed 2D entities in the meshset and their adjacencies (only TETs adjacencies) in a particular BitRefL...
Definition: DeprecatedCoreInterface.cpp:18
MoFEM::DeprecatedCoreInterface::synchronise_field_entities
DEPRECATED MoFEMErrorCode synchronise_field_entities(const std::string &name, int verb=DEFAULT_VERBOSITY)
Definition: DeprecatedCoreInterface.cpp:47
MoFEM::Types::BitRefLevel
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition: Types.hpp:40
MoFEM::DeprecatedCoreInterface::partition_mesh
DEPRECATED MoFEMErrorCode partition_mesh(const Range &ents, const int dim, const int adj_dim, const int n_parts, int verb=-1)
Set partition tag to each finite element in the problem.
Definition: DeprecatedCoreInterface.cpp:32
MoFEM::DeprecatedCoreInterface::seed_ref_level_2D
virtual DEPRECATED MoFEMErrorCode seed_ref_level_2D(const EntityHandle meshset, const BitRefLevel &bit, int verb=-1)
seed 2D entities (Triangles entities only) in the meshset and their adjacencies (only TRIs adjacencie...
Definition: DeprecatedCoreInterface.cpp:11