本文整理汇总了C++中stk::mesh::Entity::local_offset方法的典型用法代码示例。如果您正苦于以下问题:C++ Entity::local_offset方法的具体用法?C++ Entity::local_offset怎么用?C++ Entity::local_offset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类stk::mesh::Entity
的用法示例。
在下文中一共展示了Entity::local_offset方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: connect_side_to_all_elements
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: get_bucket_id
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: get_index
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;
}