version 3.11-dev
Loading...
Searching...
No Matches
periodicdofmap.hh File Reference

Helpers for maps between degrees of freedom identified across periodic boundaries.

#include <algorithm>
#include <cstddef>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  Dumux
namespace  Dumux::Detail

Functions

template<class Index>
void Dumux::Detail::addPeriodicallyMappedDof (std::unordered_map< Index, std::vector< Index > > &periodicDofMap, std::type_identity_t< Index > dofIdx, std::type_identity_t< Index > periodicDofIdx)
 Register a degree of freedom as periodically mapped to another one.
template<class Index>
void Dumux::Detail::closePeriodicDofMap (std::unordered_map< Index, std::vector< Index > > &periodicDofMap)
 Map every degree of freedom to all others it is identified with.