5#include <unordered_map>
18#define MaxDimensions 3
A patch is a square or cube in the domain.
PatchData(int dimensions, double *offset_, double *size_, int dofsPerAxis, int unknownsPerDoF, int originTree)
void copyData(const PatchData &otherData, int dofsPerAxis, int unknownsPerDoF)
bool overlaps(const PatchData &otherPatch)
double * data
Mapping from variables onto the actual data.
double offset[MaxDimensions]
void free()
Free internal dynamic data types if there's still data left.
double size[MaxDimensions]
size of the patch in each dimension
int originTree
Tree that has originally written this piece of data.
bool samePatch(const PatchData &otherPatch)