Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A amdis-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • amdis
  • amdis-core
  • Merge requests
  • !67

Global DOF IDs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Praetorius, Simon requested to merge feature/global_dof_ids into master Jun 10, 2019
  • Overview 3
  • Commits 11
  • Changes 6

For parallel computations one has to identify DOFs in the global grid uniquely. This requires knowledge of the connectivity of DOFs and can not generically be extracted from the global basis without any specialization.

So, this MR adds a global IdSet for DOFs in a GlobalBasis. The GlobalBasisIdSet must be bound to an element and can then extract the globally unique id of a local DOF:

using IdSet = GlobalBasisIdSet<GlobalBasis>;
IdSet idSet(basis);
for (const auto& e : elements(basis.gridView()))
{
  idSet.bind(e);
  for (std::size_t i = 0; i < idSet.size(); ++i)
  {
    auto id = idSet.id(i);
  }
  idSet.unbind();
}
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/global_dof_ids