Skip to content

Switch NodeIndexSet to bulk compuation of global indices

Carsten Gräser requested to merge feature/cache-indices into master

This replaces void NodeIndexSet::index(localIndex) for a single index with BufferIterator NodeIndexSet::indices(BufferIterator) which writes all global indices into the buffer passed via the iterator argument. The return statement should be the incremented iterator pointing past the last written entry. This MR does the following:

  • Update concept check for NodeIndexSet
  • Switch to indices() in all NodeIndexSet implementations
  • Use indices() from DefaultLocalIndexSet to fill a newly added index buffer
  • Use concept check in PowerNodeFactory and CompositeNodeFactory

The user interface of the LocalIndexSet remains untouched. However, calling LocalIndexSet::index(localIndex) will now be faster because the global indices have been precomputed and are handed out from a buffer.

Merge request reports