MOAB: Mesh Oriented datABase  (version 5.4.1)
HoSlavedMesh Class Reference
+ Inheritance diagram for HoSlavedMesh:
+ Collaboration diagram for HoSlavedMesh:

Public Types

typedef std::map
< Mesh::VertexHandle, bool > 
SMap

Public Member Functions

 HoSlavedMesh (Mesh *real_mesh, SMap &slaved)
virtual void vertices_get_slaved_flag (const VertexHandle vert_array[], std::vector< bool > &slaved_flag_array, size_t num_vtx, MsqError &err)

Private Attributes

SMap slavedVerts

Detailed Description

create a wrapper around the real mesh that returns what we want from vertices_get_slaved_flag.

Definition at line 1081 of file PatchDataTest.cpp.


Member Typedef Documentation

typedef std::map< Mesh::VertexHandle, bool > HoSlavedMesh::SMap

Definition at line 1084 of file PatchDataTest.cpp.


Constructor & Destructor Documentation

HoSlavedMesh::HoSlavedMesh ( Mesh real_mesh,
SMap slaved 
) [inline]

Definition at line 1085 of file PatchDataTest.cpp.

: MeshDecorator( real_mesh ), slavedVerts( slaved ) {}

Member Function Documentation

void HoSlavedMesh::vertices_get_slaved_flag ( const VertexHandle  vert_array[],
std::vector< bool > &  slaved_flag_array,
size_t  num_vtx,
MsqError err 
) [virtual]

Returns true or false, indicating whether the vertex is a higher-order node that should be slaved to the logical mid-point of the element side it lies on or not, respectively.

Note: This function will never be called unless this behavior is requested by calling: InstructionQueue::set_slaved_ho_node_mode( Settings::SLAVE_FLAG )

Reimplemented from MBMesquite::MeshDecorator.

Definition at line 1095 of file PatchDataTest.cpp.

{
    slaved_flag_array.resize( num_vtx );
    for( size_t i = 0; i < num_vtx; ++i )
    {
        SMap::iterator j     = slavedVerts.find( vert_array[i] );
        slaved_flag_array[i] = ( j != slavedVerts.end() ) && j->second;
    }
}

Member Data Documentation

Definition at line 1093 of file PatchDataTest.cpp.

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines