コード例 #1
0
ファイル: SideConnector.cpp プロジェクト: bddavid/Trilinos
void SideConnector::connect_side_to_all_elements(stk::mesh::Entity sideEntity, stk::mesh::Entity elemEntity, int elemSide)
{
    connect_side_to_elem(sideEntity, elemEntity, elemSide);
    stk::mesh::impl::LocalId elemLocalId = m_entity_to_local_id[elemEntity.local_offset()];
    connect_side_to_coincident_elements(sideEntity, elemLocalId, elemSide);
    connect_side_to_adjacent_elements(sideEntity, elemLocalId, elemSide);
}
コード例 #2
0
 KOKKOS_INLINE_FUNCTION unsigned get_bucket_id(stk::mesh::Entity entity) const
 {
     const stk::mesh::FastMeshIndex& meshIndex = constMeshIndices(entity.local_offset());
     return meshIndex.bucket_id;
 }
コード例 #3
0
 STK_FUNCTION unsigned get_index(stk::mesh::Entity entity) const
 {
     const stk::mesh::FastMeshIndex& meshIndex = constMeshIndices(entity.local_offset());
     return meshIndex.bucket_id * bucketCapacity + meshIndex.bucket_ord;
 }