本文整理汇总了C++中MeshBase::active_subdomain_set_elements_end方法的典型用法代码示例。如果您正苦于以下问题:C++ MeshBase::active_subdomain_set_elements_end方法的具体用法?C++ MeshBase::active_subdomain_set_elements_end怎么用?C++ MeshBase::active_subdomain_set_elements_end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MeshBase
的用法示例。
在下文中一共展示了MeshBase::active_subdomain_set_elements_end方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _do_partition
void SubdomainPartitioner::_do_partition (MeshBase & mesh,
const unsigned int n)
{
libmesh_assert_greater (n, 0);
// Check for an easy return. If the user has not specified any
// entries in the chunks vector, we just do a single partitioning.
if ((n == 1) || chunks.empty())
{
this->single_partition (mesh);
return;
}
// Now actually do the partitioning.
LOG_SCOPE ("_do_partition()", "SubdomainPartitioner");
// For each chunk, construct an iterator range for the set of
// subdomains in question, and pass it to the internal Partitioner.
for (std::size_t c=0; c<chunks.size(); ++c)
{
MeshBase::element_iterator
it = mesh.active_subdomain_set_elements_begin(chunks[c]),
end = mesh.active_subdomain_set_elements_end(chunks[c]);
_internal_partitioner->partition_range(mesh, it, end, n);
}
}