Skip to content
Snippets Groups Projects

Global DOF IDs

Merged Praetorius, Simon requested to merge feature/global_dof_ids into master
All threads resolved!

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();
}

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    Compare with previous version

  • Müller, Felix resolved all discussions

    resolved all discussions

  • Müller, Felix added 1 commit

    added 1 commit

    • 0e93dd09 - Added function returning the entityID of a DOF

    Compare with previous version

  • Müller, Felix added 1 commit

    added 1 commit

    Compare with previous version

  • Müller, Felix mentioned in commit e07d2372

    mentioned in commit e07d2372

  • Please register or sign in to reply
    Loading