|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
16 #ifndef dealii_tria_objects_h
17 #define dealii_tria_objects_h
44 template <
int dim,
int spacedim>
46 template <
class Accessor>
48 template <
int,
int,
int>
54 namespace TriangulationImplementation
153 template <
class Archive>
155 serialize(Archive &ar,
const unsigned int version);
192 const unsigned int new_objs_single = 0);
205 template <
int dim,
int spacedim>
220 template <
int dim,
int spacedim>
228 template <
int dim,
int spacedim>
231 const unsigned int level);
319 template <
class Archive>
321 serialize(Archive &ar,
const unsigned int version);
330 <<
"The containers have sizes " << arg1 <<
" and " << arg2
331 <<
", which is not as expected.");
385 template <
class Archive>
387 serialize(Archive &ar,
const unsigned int version);
506 template <
class Archive>
508 serialize(Archive &ar,
const unsigned int version);
547 const unsigned int new_quads_single = 0);
574 template <
class Archive>
576 serialize(Archive &ar,
const unsigned int version);
582 template <
typename G>
590 template <
typename G>
599 template <
typename G>
600 template <
class Archive>
621 template <
typename G>
624 const unsigned int)
const
630 template <
typename G>
643 template <
typename G>
656 template <
typename G>
657 inline unsigned int &
669 template <
typename G>
678 template <
typename G>
687 template <
typename G>
691 Assert(user_data_type == data_unknown || user_data_type == data_index,
692 ExcPointerIndexClash());
693 user_data_type = data_index;
696 return user_data[i].i;
700 template <
typename G>
704 user_data_type = data_unknown;
705 for (
unsigned int i = 0; i < user_data.size(); ++i)
706 user_data[i].p =
nullptr;
710 template <
typename G>
714 user_flags.assign(user_flags.size(),
false);
718 template <
typename G>
719 template <
class Archive>
729 template <
typename G>
730 template <
class Archive>
735 ar & refinement_cases;
738 ar & boundary_or_material_id;
740 ar &next_free_single &next_free_pair &reverse_order_next_free_single;
741 ar &user_data &user_data_type;
745 template <
class Archive>
747 TriaObjectsHex::serialize(Archive &ar,
const unsigned int version)
751 ar &face_orientations &face_flips &face_rotations;
755 template <
class Archive>
757 TriaObjectsQuad3D::serialize(Archive &ar,
const unsigned int version)
761 ar &line_orientations;
768 TriaObjectsHex::face_orientation(
const unsigned int cell,
769 const unsigned int face)
const
772 face_orientations.size() /
782 TriaObjectsQuad3D::face_orientation(
const unsigned int cell,
783 const unsigned int face)
const
792 template <
int dim,
int spacedim>
800 int pos = next_free_single, last = used.size() - 1;
801 if (!reverse_order_next_free_single)
805 for (; pos < last; ++pos)
815 reverse_order_next_free_single =
true;
816 next_free_single = used.size() - 1;
817 pos = used.size() - 1;
820 next_free_single = pos + 1;
823 if (reverse_order_next_free_single)
827 for (; pos >= 0; --pos)
831 next_free_single = pos - 1;
834 return ::TriaRawIterator<
838 return ::TriaRawIterator<
845 template <
int dim,
int spacedim>
853 int pos = next_free_pair, last = used.size() - 1;
854 for (; pos < last; ++pos)
864 return ::TriaRawIterator<
867 next_free_pair = pos + 2;
869 return ::TriaRawIterator<
@ data_unknown
No userdata used yet.
std::vector< bool > user_flags
bool face_orientation(const unsigned int cell, const unsigned int face) const
@ data_index
UserData contains indices.
typename IteratorSelector::raw_hex_iterator raw_hex_iterator
bool face_orientation(const unsigned int cell, const unsigned int face) const
std::vector< bool > line_orientations
unsigned int next_free_single
unsigned int & user_index(const unsigned int i)
void reserve_space(const unsigned int new_objs_in_pairs, const unsigned int new_objs_single=0)
void *& user_pointer(const unsigned int i)
static ::ExceptionBase & ExcMemoryInexact(int arg1, int arg2)
void serialize(Archive &ar, const unsigned int version)
void monitor_memory(const unsigned int true_dimension) const
void reserve_space(const unsigned int new_objs)
bool reverse_order_next_free_single
#define AssertIndexRange(index, range)
void reserve_space(const unsigned int new_quads_in_pairs, const unsigned int new_quads_single=0)
void monitor_memory(const unsigned int true_dimension) const
UserDataType user_data_type
std::vector< bool > face_orientations
void serialize(Archive &ar, const unsigned int version)
std::size_t memory_consumption() const
void serialize(Archive &ar, const unsigned int version)
std::vector< UserData > user_data
std::vector< int > children
std::vector< bool > face_flips
void monitor_memory(const unsigned int true_dimension) const
#define DEAL_II_NAMESPACE_OPEN
static ::ExceptionBase & ExcPointerIndexClash()
unsigned int next_free_pair
const types::material_id invalid_material_id
std::vector< BoundaryOrMaterialId > boundary_or_material_id
std::size_t memory_consumption() const
std::vector< types::manifold_id > manifold_id
#define Assert(cond, exc)
void serialize(Archive &ar, const unsigned int version)
#define DeclException0(Exception0)
static const unsigned int invalid_unsigned_int
std::vector< RefinementCase< G::dimension > > refinement_cases
static std::size_t memory_consumption()
Triangulation< dim, spacedim >::raw_hex_iterator next_free_hex(const Triangulation< dim, spacedim > &tria, const unsigned int level)
std::size_t memory_consumption() const
#define DEAL_II_NAMESPACE_CLOSE
@ data_pointer
UserData contains pointers.
::TriaRawIterator<::TriaAccessor< G::dimension, dim, spacedim > > next_free_pair_object(const Triangulation< dim, spacedim > &tria)
::TriaRawIterator<::TriaAccessor< G::dimension, dim, spacedim > > next_free_single_object(const Triangulation< dim, spacedim > &tria)
bool face_orientation(const unsigned int cell, const unsigned int face) const
types::material_id material_id
#define DeclException2(Exception2, type1, type2, outsequence)
types::boundary_id boundary_id
std::vector< bool > face_rotations
void serialize(Archive &ar, const unsigned int version)