1#ifndef __WmUnstructuredSubdomainArray__h__
2#define __WmUnstructuredSubdomainArray__h__
41 virtual void fill(
const std::vector<WxAny>& fillValuesVector) = 0;
84 typedef typename std::map<int, WmUnstructuredPatchArray<T>*>
patchArrays_t;
93 std::string& variableName,
96 std::string& subdomainName,
98 const std::string& basisArraySetName =
"");
131 void fill(
const std::vector<WxAny>& fillValuesVector);
Definition: wmbasisarrayset.h:13
Definition: wmdomain.h:35
A base class for solvers in WARPM.
Definition: wmsolverbase.h:35
Defines common interface for arrays of elements.
Definition: wmsimplearrays.h:23
Definition: wmunstructuredpatcharray.h:23
Definition: wmunstructuredsubdomainarray.h:27
virtual void load(WxIoBase &io, const WxIoNodeType &grpNode, bool loadGhostCellsToo)=0
virtual void print() const =0
virtual void downloadInternalElementsFromBuffers() const =0
virtual const std::type_info & getElementType() const =0
virtual bool checkCompatible(const WmUnstructuredSubdomainArrayBase &other) const =0
virtual void fill(const WxAny &fillValue)=0
virtual void uploadImportElementsToBuffers()=0
virtual void downloadImportExportElementsFromBuffers() const =0
virtual const WxAny min() const =0
virtual const WmTypeOpaqueArray< _WX_ROW_MAJOR_ORDER > * getPatchArrayData(int patchIndex) const
Definition: wmunstructuredsubdomainarray.h:63
virtual const WxAny absoluteMin() const =0
virtual ~WmUnstructuredSubdomainArrayBase()
Definition: wmunstructuredsubdomainarray.h:29
virtual void dump(WxIoBase &io, WxIoNodeType &grpNode, bool writeGhostCellsToo=false) const =0
virtual void uploadInternalElementsToBuffers()=0
virtual void fill(const std::vector< WxAny > &fillValuesVector)=0
virtual WmTypeOpaqueArray< _WX_ROW_MAJOR_ORDER > * getPatchArrayData(int patchIndex)
Definition: wmunstructuredsubdomainarray.h:58
Definition: wmunstructuredsubdomainarray.h:76
patchArrays_t _patchArrays
Definition: wmunstructuredsubdomainarray.h:260
void print() const
Prints what is in host memory.
std::string _arrayName
Definition: wmunstructuredsubdomainarray.h:247
virtual const std::type_info & getElementType() const
Returns the element type stored by the array.
virtual const WmUnstructuredPatchArray< T > & getPatchArray(int patchIndex) const
Get patch array.
void fill(const std::vector< WxAny > &fillValuesVector)
Fill all of the Global Array with a specified fill values.
std::map< int, WmUnstructuredPatchArray< T > * > patchArrays_t
Holds the references to the patch arrays Unstructured arrays have separate dataspaces for each patch.
Definition: wmunstructuredsubdomainarray.h:84
const WxAny absoluteMin() const
Returns the absolute minimum value in global array Absolute min is the closest value to zero Value wi...
bool _existsOnProcess
Definition: wmunstructuredsubdomainarray.h:257
virtual WmTypeOpaqueArray< _WX_ROW_MAJOR_ORDER > * getPatchArrayData(int patchIndex)
Get a pointer to the locally held array for a patch.
const WxAny min() const
Returns the minimum value in global array.
void fill(const WxAny &fillValue)
Fill all of the Global Array with a specified fill value.
virtual void load(WxIoBase &io, const WxIoNodeType &grpNode, bool includeGhosts)
Load object from file.
~WmUnstructuredSubdomainArray()
virtual bool checkCompatible(const WmUnstructuredSubdomainArrayBase &other) const
Checks the supplied global array is compatible with this one for swap.
std::string _subdomainName
Definition: wmunstructuredsubdomainarray.h:250
bool _gatherListSet
Definition: wmunstructuredsubdomainarray.h:237
bool hasPatch(const int patchIndex) const
Check if subdomain array contains patch.
WmBasisArraySet _basisSet
Definition: wmunstructuredsubdomainarray.h:253
int _numSubComponents
Definition: wmunstructuredsubdomainarray.h:254
std::string _variableName
Definition: wmunstructuredsubdomainarray.h:248
virtual WmUnstructuredPatchArray< T > & getPatchArray(int patchIndex)
Get patch array.
const WmSolverBase * _parentSolver
Definition: wmunstructuredsubdomainarray.h:244
virtual const WmTypeOpaqueArray< _WX_ROW_MAJOR_ORDER > * getPatchArrayData(int patchIndex) const
Get a pointer to the locally held array for a patch.
WxRange _globalRange
Definition: wmunstructuredsubdomainarray.h:241
virtual void dump(WxIoBase &io, WxIoNodeType &grpNode, bool writeGhostCellsToo=false) const
Write out the array to file.
int _componentIndex
Definition: wmunstructuredsubdomainarray.h:249
unsigned _ndims
Definition: wmunstructuredsubdomainarray.h:240
WmUnstructuredSubdomainArray(const std::string &arrayName, std::string &variableName, int componentIndex, int numSubComponents, std::string &subdomainName, const WmDomain &domain, const std::string &basisArraySetName="")
Constructor for WmUnstructuredSubdomainArray.
int _meshID
Definition: wmunstructuredsubdomainarray.h:263
Class WxAny is based on the "any" class described in "Valued Conversion", Kevlin Henney,...
Definition: wxany.h:139
Provides an abstract interface for access to hierachical datasets.
Definition: wxiobase.h:25
WxRange represents a hyper-rectangular domain of an n-dimensional space of integers.
Definition: wxrange.h:23
Provides a means for derived messengers to return implimentation specific message status flags and da...
Definition: wxiotmpl.h:23