WARPXM v1.10.0
|
#include <wmunstructuredsubdomainarray.h>
Public Types | |
typedef std::map< int, WmUnstructuredPatchArray< T > * > | patchArrays_t |
Holds the references to the patch arrays Unstructured arrays have separate dataspaces for each patch. | |
Public Member Functions | |
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. | |
~WmUnstructuredSubdomainArray () | |
bool | hasPatch (const int patchIndex) const |
Check if subdomain array contains patch. | |
void | fill (const WxAny &fillValue) |
Fill all of the Global Array with a specified fill value. | |
void | fill (const std::vector< WxAny > &fillValuesVector) |
Fill all of the Global Array with a specified fill values. | |
virtual bool | checkCompatible (const WmUnstructuredSubdomainArrayBase &other) const |
Checks the supplied global array is compatible with this one for swap. | |
virtual const std::type_info & | getElementType () const |
Returns the element type stored by the array. | |
virtual void | dump (WxIoBase &io, WxIoNodeType &grpNode, bool writeGhostCellsToo=false) const |
Write out the array to file. | |
virtual void | load (WxIoBase &io, const WxIoNodeType &grpNode, bool includeGhosts) |
Load object from file. | |
virtual WmUnstructuredPatchArray< T > & | getPatchArray (int patchIndex) |
Get patch array. | |
virtual const WmUnstructuredPatchArray< T > & | getPatchArray (int patchIndex) const |
Get patch array. | |
virtual WmTypeOpaqueArray< _WX_ROW_MAJOR_ORDER > * | getPatchArrayData (int patchIndex) |
Get a pointer to the locally held array for a patch. | |
virtual const WmTypeOpaqueArray< _WX_ROW_MAJOR_ORDER > * | getPatchArrayData (int patchIndex) const |
Get a pointer to the locally held array for a patch. | |
const WxAny | min () const |
Returns the minimum value in global array. | |
const WxAny | absoluteMin () const |
Returns the absolute minimum value in global array Absolute min is the closest value to zero Value will be negative if any negative values were found. | |
void | print () const |
Prints what is in host memory. | |
Public Member Functions inherited from WmUnstructuredSubdomainArrayBase | |
virtual | ~WmUnstructuredSubdomainArrayBase () |
virtual const WxAny | min () const =0 |
virtual const WxAny | absoluteMin () const =0 |
virtual void | fill (const WxAny &fillValue)=0 |
virtual void | fill (const std::vector< WxAny > &fillValuesVector)=0 |
virtual void | dump (WxIoBase &io, WxIoNodeType &grpNode, bool writeGhostCellsToo=false) const =0 |
virtual void | load (WxIoBase &io, const WxIoNodeType &grpNode, bool loadGhostCellsToo)=0 |
virtual bool | checkCompatible (const WmUnstructuredSubdomainArrayBase &other) const =0 |
virtual const std::type_info & | getElementType () const =0 |
virtual void | uploadInternalElementsToBuffers ()=0 |
virtual void | downloadInternalElementsFromBuffers () const =0 |
virtual void | downloadImportExportElementsFromBuffers () const =0 |
virtual void | uploadImportElementsToBuffers ()=0 |
virtual WmTypeOpaqueArray< _WX_ROW_MAJOR_ORDER > * | getPatchArrayData (int patchIndex) |
virtual const WmTypeOpaqueArray< _WX_ROW_MAJOR_ORDER > * | getPatchArrayData (int patchIndex) const |
virtual void | print () const =0 |
Protected Attributes | |
bool | _gatherListSet |
unsigned | _ndims |
WxRange | _globalRange |
const WmSolverBase * | _parentSolver |
std::string | _arrayName |
std::string | _variableName |
int | _componentIndex |
std::string | _subdomainName |
WmBasisArraySet | _basisSet |
int | _numSubComponents |
bool | _existsOnProcess |
patchArrays_t | _patchArrays |
int | _meshID |
typedef std::map<int, WmUnstructuredPatchArray<T>*> WmUnstructuredSubdomainArray< T >::patchArrays_t |
Holds the references to the patch arrays Unstructured arrays have separate dataspaces for each patch.
WmUnstructuredSubdomainArray< T >::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.
Collective Call!
WmUnstructuredSubdomainArray< T >::~WmUnstructuredSubdomainArray | ( | ) |
|
virtual |
Returns the absolute minimum value in global array Absolute min is the closest value to zero Value will be negative if any negative values were found.
Blocking Call
Collective Call
Implements WmUnstructuredSubdomainArrayBase.
|
virtual |
Checks the supplied global array is compatible with this one for swap.
Check ensures that array size and element types match.
Implements WmUnstructuredSubdomainArrayBase.
|
virtual |
Write out the array to file.
io | I/O object to use for writing |
grpNode | group node to write to |
writeGhostCellsToo | write external elements |
Implements WmUnstructuredSubdomainArrayBase.
|
virtual |
Fill all of the Global Array with a specified fill values.
Blocking Call
Non-collective Call
fillValue | to be applied to set in all elements in the local ext box. |
Implements WmUnstructuredSubdomainArrayBase.
|
virtual |
Fill all of the Global Array with a specified fill value.
Blocking Call
Non-collective Call
fillValue | to be applied to set in all elements in the local portion of global array. |
Implements WmUnstructuredSubdomainArrayBase.
|
virtual |
Returns the element type stored by the array.
Implements WmUnstructuredSubdomainArrayBase.
|
virtual |
Get patch array.
patchIndex | Patch to get array for |
|
virtual |
Get patch array.
patchIndex | Patch to get array for |
|
virtual |
Get a pointer to the locally held array for a patch.
Reimplemented from WmUnstructuredSubdomainArrayBase.
|
virtual |
Get a pointer to the locally held array for a patch.
Reimplemented from WmUnstructuredSubdomainArrayBase.
bool WmUnstructuredSubdomainArray< T >::hasPatch | ( | const int | patchIndex | ) | const |
Check if subdomain array contains patch.
patchIndex | Patch that may be in subdomain. |
|
virtual |
Load object from file.
This method is passed a group node from which its data should be read and then constructed.
io | I/O object to use for writing |
grpNode | group node to read from |
includeGhosts | read external elements |
Implements WmUnstructuredSubdomainArrayBase.
|
virtual |
Returns the minimum value in global array.
Blocking Call
Collective Call
Implements WmUnstructuredSubdomainArrayBase.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |