libMesh
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
libMesh::MeshBase::Preparation Struct Reference

Flags indicating in what ways a mesh has been prepared for use. More...

#include <mesh_base.h>

Public Member Functions

 Preparation ()
 Constructor.
 
 operator bool () const
 Returns true iff all the flags are true.
 
Preparation & operator= (bool set_all)
 Set all flags to the "set_all" value.
 
bool operator== (const Preparation &other) const
 Two Preparation objects are equivalent iff all the flags match, regardless of the true/false status of any given flag.
 
bool operator!= (const Preparation &other) const
 
void libmesh_assert_consistent (const Parallel::Communicator &libmesh_dbg_var(comm))
 

Public Attributes

bool is_partitioned
 
bool has_synched_id_counts
 
bool has_neighbor_ptrs
 
bool has_cached_elem_data
 
bool has_interior_parent_ptrs
 
bool has_removed_remote_elements
 
bool has_removed_orphaned_nodes
 
bool has_boundary_id_sets
 
bool has_reinit_ghosting_functors
 
bool has_synched_subdomain_name_map
 

Detailed Description

Flags indicating in what ways a mesh has been prepared for use.

Definition at line 2145 of file mesh_base.h.

Constructor & Destructor Documentation

◆ Preparation()

libMesh::MeshBase::Preparation::Preparation ( )

Constructor.

Initializes all flags to false.

Definition at line 3215 of file mesh_base.C.

Member Function Documentation

◆ libmesh_assert_consistent()

void libMesh::MeshBase::Preparation::libmesh_assert_consistent ( const Parallel::Communicator &  libmesh_dbg_varcomm)

◆ operator bool()

libMesh::MeshBase::Preparation::operator bool ( ) const
explicit

Returns true iff all the flags are true.

Definition at line 3228 of file mesh_base.C.

◆ operator!=()

bool libMesh::MeshBase::Preparation::operator!= ( const Preparation &  other) const

Definition at line 3287 of file mesh_base.C.

3288{
3289 return !(*this == other);
3290}

◆ operator=()

MeshBase::Preparation & libMesh::MeshBase::Preparation::operator= ( bool  set_all)

Set all flags to the "set_all" value.

Definition at line 3243 of file mesh_base.C.

3244{
3245 is_partitioned = set_all;
3246 has_synched_id_counts = set_all;
3247 has_neighbor_ptrs = set_all;
3248 has_cached_elem_data = set_all;
3249 has_interior_parent_ptrs = set_all;
3253 has_boundary_id_sets = set_all;
3255
3256 return *this;
3257}

◆ operator==()

bool libMesh::MeshBase::Preparation::operator== ( const Preparation &  other) const

Two Preparation objects are equivalent iff all the flags match, regardless of the true/false status of any given flag.

Definition at line 3260 of file mesh_base.C.

3261{
3262 if (is_partitioned != other.is_partitioned)
3263 return false;
3264 if (has_synched_id_counts != other.has_synched_id_counts)
3265 return false;
3266 if (has_neighbor_ptrs != other.has_neighbor_ptrs)
3267 return false;
3268 if (has_cached_elem_data != other.has_cached_elem_data)
3269 return false;
3270 if (has_interior_parent_ptrs != other.has_interior_parent_ptrs)
3271 return false;
3272 if (has_removed_remote_elements != other.has_removed_remote_elements)
3273 return false;
3274 if (has_removed_orphaned_nodes != other.has_removed_orphaned_nodes)
3275 return false;
3276 if (has_reinit_ghosting_functors != other.has_reinit_ghosting_functors)
3277 return false;
3278 if (has_boundary_id_sets != other.has_boundary_id_sets)
3279 return false;
3280 if (has_synched_subdomain_name_map != other.has_synched_subdomain_name_map)
3281 return false;
3282
3283 return true;
3284}

References has_boundary_id_sets, has_cached_elem_data, has_interior_parent_ptrs, has_neighbor_ptrs, has_reinit_ghosting_functors, has_removed_orphaned_nodes, has_removed_remote_elements, has_synched_id_counts, has_synched_subdomain_name_map, and is_partitioned.

Member Data Documentation

◆ has_boundary_id_sets

bool libMesh::MeshBase::Preparation::has_boundary_id_sets

◆ has_cached_elem_data

bool libMesh::MeshBase::Preparation::has_cached_elem_data

◆ has_interior_parent_ptrs

bool libMesh::MeshBase::Preparation::has_interior_parent_ptrs

◆ has_neighbor_ptrs

bool libMesh::MeshBase::Preparation::has_neighbor_ptrs

◆ has_reinit_ghosting_functors

bool libMesh::MeshBase::Preparation::has_reinit_ghosting_functors

◆ has_removed_orphaned_nodes

bool libMesh::MeshBase::Preparation::has_removed_orphaned_nodes

◆ has_removed_remote_elements

bool libMesh::MeshBase::Preparation::has_removed_remote_elements

◆ has_synched_id_counts

bool libMesh::MeshBase::Preparation::has_synched_id_counts

◆ has_synched_subdomain_name_map

bool libMesh::MeshBase::Preparation::has_synched_subdomain_name_map

◆ is_partitioned

bool libMesh::MeshBase::Preparation::is_partitioned

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