v0.14.0
DeprecatedCoreInterface.hpp
Go to the documentation of this file.
1 /** \file DeprecatedCoreInterface.hpp
2  * \brief Deprecated interface functions
3  */
4 
5 #ifndef __INTERFACE_DEPRECATED_HPP__
6 #define __INTERFACE_DEPRECATED_HPP__
7 
8 /** \brief name space of MoFEM library functions and classes
9  */
10 namespace MoFEM {
11 
12 /**
13  * \brief Deprecated interface functions
14  * \nosubgrouping
15  */
17 
18 // /** \name Interfaces */
19 
20 // /**@}*/
21 
22  /** \name Seed entities */
23 
24  /**@{*/
25 
26  /** \deprecated use BitRefManager
27  * \brief seed 2D entities (Triangles entities only) in the meshset and their
28  * adjacencies (only TRIs adjacencies) in a particular BitRefLevel \todo
29  * Should be outsourced to separate interface, i.e. BitLevelManager
30  *
31  * \param EntityHandle MeshSet
32  * \param BitRefLevel bitLevel
33  *
34  */
36  seed_ref_level_2D(const EntityHandle meshset, const BitRefLevel &bit,
37  int verb = -1);
38 
39  /** \deprecated use BitRefManager
40  * \brief seed 2D entities in the meshset and their adjacencies (only TETs
41  adjacencies) in a particular BitRefLevel
42  * \todo Should be outsourced to separate interface, i.e. BitLevelManager
43  *
44  * \param EntityHandle MeshSet
45  * \param BitRefLevel bitLevel
46  *
47  * \brief Example:\code
48  EntityHandle meshset1; //contains ent1,ent2,ent3
49  BitRefLevel myLevel0;
50  myLevel0.set(0);
51  seed_ref_level_3D(meshset1,myLevel0);
52  //refine meshset1 into meshset2 and get new ents which are ent4, ent5
53  EntityHandle meshset2; //contains ent1,ent2,ent3,ent4,ent5
54  BitRefLevel myLevel1;
55  myLevel1.set(1);
56  seed_ref_level_3D(meshset2,myLevel1); \endcode
57 
58  * So entities 1,2,3 would be assigned to bit level 0 and 1 <br>
59  * ent1[1,1,0,0,0,0,0], ent2[1,1,0,0,0,0,0], ent3[1,1,0,0,0,0,0], <br>
60  * and entities 4 and 5 are assigned to bit level 1 only <br>
61  * ent4[0,1,0,0,0,0,0], ent5[0,1,0,0,0,0,0] <br>
62  *
63  */
65  const BitRefLevel &bit,
66  int verb = -1);
67 
68  /** \deprecated use BitRefManager
69  * \brief seed entities in the range and their adjacencies in a particular
70  * BitRefLevel \todo Should be outsourced to separate interface, i.e.
71  * BitLevelManager
72  */
74  const BitRefLevel &bit,
75  const bool only_tets = true,
76  int verb = -1);
77 
78  /**
79  * \brief Set partition tag to each finite element in the problem
80  *
81  * This will use one of the mesh partitioning programs available from PETSc
82  * See
83  * <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatPartitioningType.html>
84  *
85  * @param ents Entities to partition
86  * @param dim Dimension of entities to partition
87  * @param adj_dim Adjacency dimension
88  * @param n_parts Number of partitions
89  * @param verb Verbosity level
90  * @return Error code
91  */
92  DEPRECATED MoFEMErrorCode partition_mesh(const Range &ents, const int dim,
93  const int adj_dim, const int n_parts,
94  int verb = -1);
95 
96  /**@}*/
97 
98  /** \name Synchronize */
99 
100  /**@{*/
101 
102  /** synchronize entity range on processors (collective)
103 
104  collective - need tu be run on all processors in communicator
105 
106  @deprecated Use Comm Interface
107  */
109  int verb = DEFAULT_VERBOSITY);
110 
111  /** synchronize entity range on processors (collective)
112  * \ingroup mofem_field
113 
114  collective - need tu be run on all processors in communicator
115 
116  \param name field
117  \param verbose level
118 
119  \deprecated Use CommInterface
120  */
122  const std::string &name, int verb = DEFAULT_VERBOSITY);
123 
124  /**@}*/
125 
126 };
127 
128 } // namespace MoFEM
129 
130 #endif // __INTERFACE_DEPRECATED_HPP__
DEFAULT_VERBOSITY
@ DEFAULT_VERBOSITY
Definition: definitions.h:220
DEPRECATED
#define DEPRECATED
Definition: definitions.h:17
EntityHandle
MoFEM::Exceptions::MoFEMErrorCode
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Definition: Exceptions.hpp:56
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
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::CoreInterface
Interface.
Definition: Interface.hpp:27
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