v0.14.0
Loading...
Searching...
No Matches
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 */
10namespace 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
#define DEPRECATED
Definition definitions.h:17
const int dim
DEPRECATED MoFEMErrorCode synchronise_field_entities(const std::string &name, int verb=DEFAULT_VERBOSITY)
auto bit
set bit
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
Definition Types.hpp:40
implementation of Data Operators for Forces and Sources
Definition Common.hpp:10
Deprecated interface functions.
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.
DEPRECATED MoFEMErrorCode synchronise_entities(Range &ent, int verb=DEFAULT_VERBOSITY)
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
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...
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...