25#ifndef __BITPIT_PATCH_INFO_HPP__
26#define __BITPIT_PATCH_INFO_HPP__
28#include <unordered_map>
54 virtual void _init() = 0;
55 virtual void _reset() = 0;
56 virtual void _extract() = 0;
69#if BITPIT_ENABLE_MPI==1
83 void _init()
override;
88 long m_cellConsecutiveOffset;
89 std::unordered_map<long, long> m_cellLocalToConsecutiveMap;
90#if BITPIT_ENABLE_MPI==1
91 std::vector<long> m_nGlobalInternalCells;
The PatchInfo class provides an interface for defining patch info.
void setPatch(PatchKernel const *patch)
PatchKernel const & getPatch() const
PatchInfo(PatchKernel const *patch)
The PatchKernel class provides an interface for defining patches.
Numbering information about the patch.
const std::unordered_map< long, long > & getCellGlobalMap() const
long getCellGlobalCountOffset() const
PatchNumberingInfo(PatchKernel const *patch=nullptr)
int getCellOwnerFromLocal(long id) const
long getCellGlobalId(long id) const
const std::unordered_map< long, long > & getCellConsecutiveMap() const
long getCellConsecutiveOffset() const
long getCellGlobalCount() const
int getCellOwnerFromGlobal(long id) const
int getCellOwnerFromConsecutive(long id) const
long getCellConsecutiveId(long id) const