27#include "volume_mapper.hpp"
77 : m_referencePatch(referencePatch), m_mappedPatch(mappedPatch), m_mapping(1)
79 , m_communicator(MPI_COMM_NULL)
83 initializeCommunicator(communicator);
169 _mapMeshes(fillInverse);
182 throw std::runtime_error (
"VolumeMapper communicator can be set just once");
186 if (communicator == MPI_COMM_NULL) {
187 throw std::runtime_error (
"VolumeMapper communicator is not valid");
233 MPI_Finalized(&finalizedCalled);
234 if (finalizedCalled) {
Metafunction for generating a pierced storage.
The VolumeKernel class provides an interface for defining volume patches.
VolumeMapper(const VolumeKernel *referencePatch, const VolumeKernel *mappedPatch, MPI_Comm communicator)
const VolumeKernel * getMappedPatch() const
MPI_Comm getCommunicator() const
const VolumeKernel * m_mappedPatch
void initialize(bool fillInv=false)
void initializeCommunicator(MPI_Comm communicator)
PiercedStorage< mapping::Info > m_inverseMapping
PiercedStorage< mapping::Info > m_mapping
void clearInverseMapping()
const bitpit::PiercedStorage< mapping::Info > & getInverseMapping() const
const bitpit::PiercedStorage< mapping::Info > & getMapping() const
const VolumeKernel * getReferencePatch() const
const VolumeKernel * m_referencePatch
bool isCommunicatorSet() const