|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <LField.h>
Public Types | |
| typedef CompressedBrickIterator< T, Dim > | iterator |
| typedef NDIndex< Dim > | Domain_t |
| typedef std::vector< LField< T, Dim > * >::iterator | OverlapIterator |
Public Member Functions | |
| LField (const NDIndex< Dim > &owned, const NDIndex< Dim > &allocated, int vnode=-1) | |
| LField (const NDIndex< Dim > &owned, const NDIndex< Dim > &allocated, int vnode, bool p) | |
| LField (const LField< T, Dim > &) | |
| ~LField () | |
| int | size (unsigned d) const |
| const NDIndex< Dim > & | getAllocated () const |
| const NDIndex< Dim > & | getOwned () const |
| T * | getP () |
| int | getVnode () const |
| const iterator & | begin () const |
| const iterator & | end () const |
| iterator | begin (const NDIndex< Dim > &domain) |
| iterator | begin (const NDIndex< Dim > &domain, T &) |
| bool | IsCompressed () const |
| bool | TryCompress (bool baseOnPhysicalCells=false) |
| bool | CanCompress () const |
| bool | CanCompress (T x) const |
| void | Compress () |
| void | Compress (const T &val) |
| void | Uncompress (bool fill_domain=true) |
| T & | getCompressedData () |
| const T & | getCompressedData () const |
| bool | OverlapCacheInitialized () |
| void | AddToOverlapCache (LField< T, Dim > *newCacheItem) |
| OverlapIterator | BeginOverlap () |
| OverlapIterator | EndOverlap () |
| void | swapData (LField< T, Dim > &a) |
| void | write (std::ostream &) const |
Private Member Functions | |
| bool | CanCompressBasedOnPhysicalCells () const |
| void | ReallyUncompress (bool fill_domain) |
| void | CompressBasedOnPhysicalCells () |
| void | allocateStorage (int newsize) |
| void | deallocateStorage () |
| LField () | |
| const LField< T, Dim > & | operator= (const LField< T, Dim > &) |
Private Attributes | |
| int | vnode_m |
| T * | P |
| bool | Pinned |
| NDIndex< Dim > | Owned |
| NDIndex< Dim > | Allocated |
| iterator | Begin |
| iterator | End |
| T | CompressedData |
| std::vector< LField< T, Dim > * > | overlap |
| bool | overlapCacheInited |
| int | allocCompressIndex |
| int | ownedCompressIndex |
| long | offsetBlocks |
| typedef CompressedBrickIterator<T,Dim> LField< T, Dim >::iterator |
| typedef std::vector<LField<T,Dim>*>::iterator LField< T, Dim >::OverlapIterator |
| LField< T, Dim >::LField | ( | const NDIndex< Dim > & | owned, |
| const NDIndex< Dim > & | allocated, | ||
| int | vnode = -1 ) |
Definition at line 85 of file LField.hpp.
References Allocated, allocCompressIndex, LFieldInitializer< T >::apply(), Begin, CompressedData, Dim, End, IPPL_OFFSET_BLOCKS, LField(), IpplInfo::noFieldCompression, offsetBlocks, overlapCacheInited, Owned, ownedCompressIndex, P, Pinned, ReallyUncompress(), and vnode_m.
Referenced by CanCompressBasedOnPhysicalCells(), LField(), LField(), and swapData().
| LField< T, Dim >::LField | ( | const NDIndex< Dim > & | owned, |
| const NDIndex< Dim > & | allocated, | ||
| int | vnode, | ||
| bool | p ) |
Definition at line 114 of file LField.hpp.
References Allocated, allocCompressIndex, LFieldInitializer< T >::apply(), Begin, CompressedData, End, IPPL_OFFSET_BLOCKS, IpplInfo::noFieldCompression, offsetBlocks, overlapCacheInited, Owned, ownedCompressIndex, P, Pinned, ReallyUncompress(), and vnode_m.
Definition at line 148 of file LField.hpp.
References Allocated, allocCompressIndex, Begin, CompressedData, End, IPPL_OFFSET_BLOCKS, IsCompressed(), LField(), offsetBlocks, overlapCacheInited, Owned, ownedCompressIndex, P, Pinned, and vnode_m.
Definition at line 199 of file LField.hpp.
References deallocateStorage().
|
inline |
Definition at line 188 of file LField.h.
Referenced by BareField< T, Dim >::accumGuardCells().
Definition at line 694 of file LField.hpp.
References ADDIPPLSTAT, IPPL_CACHE_LINE_SIZE, offsetBlocks, IpplInfo::offsetStorage, P, PAssert, PAssert_GE, and PAssert_GT.
Referenced by ReallyUncompress().
Definition at line 110 of file LField.h.
Referenced by BareField< T, Dim >::accumGuardCells(), ParallelInterpolationFace< T, D, M, C >::apply(), ParallelPeriodicFace< T, D, M, C >::apply(), assign(), assign(), assign(), assign(), assign(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply2(), ExtrapolateAndZeroFaceBCApply2(), ExtrapolateAndZeroFaceBCApply3(), ExtrapolateFaceBCApply2(), FieldDebugWriteb(), FunctionFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), FieldDataSource< T, Dim, M, C >::gather_data(), Interpolator::getFieldIter(), BareField< T, Dim >::getsingle(), BareField< T, Dim >::getsingle_bc(), IndexedLocalAssign(), IndexedReceive(), IndexedSend(), InterpolationFaceBCApply(), LinearExtrapolateFaceBCApply2(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), FieldDebugPrint< T, Dim >::print(), FieldPrint< T, Dim >::print(), DiscField< Dim >::read(), BareField< T, Dim >::setGuardCells(), SubFieldIter< T, Dim, SOffset< Dim > >::setLFieldData(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), UniformCartesian< Dim, MFLOAT >::storeSpacingFields(), UniformCartesian< Dim, MFLOAT >::storeSpacingFields(), TryCompressLHS(), and DiscField< Dim >::write().
| LField< T, Dim >::iterator LField< T, Dim >::begin | ( | const NDIndex< Dim > & | domain | ) |
Definition at line 601 of file LField.hpp.
References Allocated, CompressedData, and P.
| LField< T, Dim >::iterator LField< T, Dim >::begin | ( | const NDIndex< Dim > & | domain, |
| T & | compstore ) |
Definition at line 620 of file LField.hpp.
References Allocated, CompressedData, IsCompressed(), and P.
|
inline |
Definition at line 198 of file LField.h.
Referenced by BareField< T, Dim >::accumGuardCells().
Definition at line 146 of file LField.h.
Referenced by LField< Complex_t, Dim >::CanCompress(), and TryCompress().
Definition at line 256 of file LField.hpp.
References ADDIPPLSTAT, allocCompressIndex, endl(), IpplInfo::extraCompressChecks, getAllocated(), IsCompressed(), LFIELDMSG, IpplInfo::noFieldCompression, P, PAssert, PAssert_GE, PAssert_GT, and PAssert_LT.
|
private |
Definition at line 389 of file LField.hpp.
References ADDIPPLSTAT, begin(), endl(), IpplInfo::extraCompressChecks, getAllocated(), getOwned(), INFORM_ALL_NODES, IsCompressed(), LField(), LFIELDMSG, IpplInfo::noFieldCompression, ownedCompressIndex, P, PAssert_LT, and size().
Referenced by TryCompress().
Definition at line 161 of file LField.h.
Referenced by assign(), LField< Complex_t, Dim >::Compress(), IndexedLocalAssign(), IndexedReceive(), DiscField< Dim >::read(), BareField< T, Dim >::setGuardCells(), TryCompress(), and TryCompressLHS().
Definition at line 477 of file LField.hpp.
References Begin, begin(), CompressedData, deallocateStorage(), end(), endl(), getOwned(), INFORM_ALL_NODES, IsCompressed(), LFIELDMSG, and IpplInfo::noFieldCompression.
Definition at line 527 of file LField.hpp.
References Begin, begin(), CompressedData, deallocateStorage(), getOwned(), IsCompressed(), and IpplInfo::noFieldCompression.
Referenced by TryCompress().
Definition at line 723 of file LField.hpp.
References IPPL_CACHE_LINE_SIZE, offsetBlocks, IpplInfo::offsetStorage, and P.
Referenced by Compress(), CompressBasedOnPhysicalCells(), and ~LField().
Definition at line 111 of file LField.h.
Referenced by ComponentLinearExtrapolateFaceBCApply2(), Cartesian< Dim, MFLOAT >::getCellPositionField(), UniformCartesian< Dim, MFLOAT >::getCellPositionField(), Cartesian< Dim, MFLOAT >::getCellVolumeField(), Cartesian< Dim, MFLOAT >::getDeltaCellField(), Cartesian< Dim, MFLOAT >::getDeltaVertexField(), Cartesian< Dim, MFLOAT >::getVertexPositionField(), UniformCartesian< Dim, MFLOAT >::getVertexPositionField(), and LinearExtrapolateFaceBCApply2().
|
inline |
Definition at line 199 of file LField.h.
Referenced by BareField< T, Dim >::accumGuardCells().
|
inline |
Definition at line 98 of file LField.h.
Referenced by BareField< T, Dim >::accumGuardCells(), PatchBC< T, D, M, C >::apply(), assign(), CalcIndexedReceive(), CanCompress(), CanCompressBasedOnPhysicalCells(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), ExtrapolateFaceBCApply(), ExtrapolateFaceBCApply(), ExtrapolateFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), Interpolator::getFieldIter(), IndexedLocalAssign(), IndexedReceive(), InterpolationFaceBCApply(), LinearExtrapolateFaceBCApply(), BareField< T, Dim >::localElement(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), FieldDebugPrint< T, Dim >::print(), DiscField< Dim >::read(), BareField< T, Dim >::setGuardCells(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), UniformCartesian< Dim, MFLOAT >::storeSpacingFields(), and UniformCartesian< Dim, MFLOAT >::storeSpacingFields().
Definition at line 179 of file LField.h.
Referenced by ExtrapolateAndZeroFaceBCApply2(), ExtrapolateAndZeroFaceBCApply3(), ExtrapolateFaceBCApply2(), and BareField< T, Dim >::setGuardCells().
Definition at line 99 of file LField.h.
Referenced by BareField< T, Dim >::accumGuardCells(), PatchBC< T, D, M, C >::apply(), assign(), assign(), assign(), assign(), assign(), CanCompressBasedOnPhysicalCells(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), Compress(), CompressBasedOnPhysicalCells(), BareField< T, Dim >::CompressedFraction(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), ExtrapolateFaceBCApply(), ExtrapolateFaceBCApply(), ExtrapolateFaceBCApply(), FieldDebugWriteb(), FunctionFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), FieldDataSource< T, Dim, M, C >::gather_data(), Interpolator::getFieldIter(), IndexedLocalAssign(), IndexedReceive(), IndexedSend(), InterpolationFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), FieldDebugPrint< T, Dim >::print(), FieldPrint< T, Dim >::print(), DiscField< Dim >::read(), ReallyUncompress(), BareField< T, Dim >::setGuardCells(), SubFieldIter< T, Dim, SOffset< Dim > >::setLFieldData(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), UniformCartesian< Dim, MFLOAT >::storeSpacingFields(), UniformCartesian< Dim, MFLOAT >::storeSpacingFields(), TryCompress(), TryCompressLHS(), BareField< T, Dim >::write(), and DiscField< Dim >::write().
Definition at line 100 of file LField.h.
Referenced by BareField< T, Dim >::localElement(), and FFT< CCTransform, Dim, T >::transform().
Definition at line 134 of file LField.h.
Referenced by ParallelInterpolationFace< T, D, M, C >::apply(), ParallelPeriodicFace< T, D, M, C >::apply(), assign(), assign(), begin(), CanCompress(), LField< Complex_t, Dim >::CanCompress(), CanCompressBasedOnPhysicalCells(), ComponentLinearExtrapolateFaceBCApply2(), Compress(), LField< Complex_t, Dim >::Compress(), CompressBasedOnPhysicalCells(), BareField< T, Dim >::CompressedFraction(), ExtrapolateAndZeroFaceBCApply2(), ExtrapolateAndZeroFaceBCApply3(), ExtrapolateFaceBCApply2(), IndexedLocalAssign(), IndexedReceive(), LField(), LinearExtrapolateFaceBCApply2(), DiscField< Dim >::read(), BareField< T, Dim >::setGuardCells(), TryCompress(), TryCompressLHS(), and LField< Complex_t, Dim >::Uncompress().
|
private |
Definition at line 186 of file LField.h.
Referenced by BareField< T, Dim >::accumGuardCells().
Definition at line 558 of file LField.hpp.
References Allocated, allocateStorage(), Begin, CompressedData, endl(), getOwned(), INFORM_ALL_NODES, LFIELDMSG, Owned, P, and PAssert_NE.
Referenced by LField(), LField(), and LField< Complex_t, Dim >::Uncompress().
Definition at line 97 of file LField.h.
Referenced by CanCompressBasedOnPhysicalCells(), FieldDebugWriteb(), and FFT< CCTransform, Dim, T >::transform().
Definition at line 637 of file LField.hpp.
References a, Allocated, allocCompressIndex, Begin, CompressedData, LField(), offsetBlocks, Owned, ownedCompressIndex, P, and PAssert.
| bool LField< T, Dim >::TryCompress | ( | bool | baseOnPhysicalCells = false | ) |
Definition at line 214 of file LField.hpp.
References CanCompress(), CanCompressBasedOnPhysicalCells(), Compress(), CompressBasedOnPhysicalCells(), endl(), getOwned(), INFORM_ALL_NODES, IsCompressed(), LFIELDMSG, and IpplInfo::noFieldCompression.
Referenced by assign(), assign(), assign(), and assign().
Definition at line 172 of file LField.h.
Referenced by BareField< T, Dim >::accumGuardCells(), ParallelInterpolationFace< T, D, M, C >::apply(), ParallelPeriodicFace< T, D, M, C >::apply(), PatchBC< T, D, M, C >::apply(), assign(), assign(), assign(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ComponentFunctionFaceBCApply(), ExtrapolateAndZeroFaceBCApply2(), ExtrapolateAndZeroFaceBCApply3(), ExtrapolateFaceBCApply2(), FunctionFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), FunctionFaceBCApply(), IndexedLocalAssign(), IndexedReceive(), InterpolationFaceBCApply(), BareField< T, Dim >::localElement(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), PeriodicFaceBCApply(), FieldDebugPrint< T, Dim >::print(), FieldPrint< T, Dim >::print(), DiscField< Dim >::read(), BareField< T, Dim >::setGuardCells(), FFT< CCTransform, Dim, T >::transform(), and TryCompressLHS().
Definition at line 746 of file LField.hpp.
References begin(), and end().
Definition at line 238 of file LField.h.
Referenced by begin(), begin(), LField(), LField(), LField(), ReallyUncompress(), and swapData().
Definition at line 263 of file LField.h.
Referenced by CanCompress(), LField(), LField(), LField(), and swapData().
Definition at line 242 of file LField.h.
Referenced by Compress(), CompressBasedOnPhysicalCells(), LField(), LField(), LField(), ReallyUncompress(), and swapData().
Definition at line 250 of file LField.h.
Referenced by begin(), begin(), Compress(), CompressBasedOnPhysicalCells(), LField(), LField(), LField(), ReallyUncompress(), and swapData().
Definition at line 269 of file LField.h.
Referenced by allocateStorage(), deallocateStorage(), LField(), LField(), LField(), and swapData().
Definition at line 234 of file LField.h.
Referenced by LField(), LField(), LField(), ReallyUncompress(), and swapData().
Definition at line 264 of file LField.h.
Referenced by CanCompressBasedOnPhysicalCells(), LField(), LField(), LField(), and swapData().
Definition at line 226 of file LField.h.
Referenced by allocateStorage(), begin(), begin(), CanCompress(), CanCompressBasedOnPhysicalCells(), deallocateStorage(), LField(), LField(), LField(), ReallyUncompress(), and swapData().