Public Types | |
using | PointsType = realx3Field_D |
using | PointsTypeHost = typename PointsType::FieldTypeHost |
using | device_type = typename PointsType::device_type |
using | memory_space = typename PointsType::memory_space |
using | execution_space = typename PointsType::execution_space |
Public Member Functions | |
TypeInfo ("internalPoints") | |
internalPoints () | |
internalPoints (const realx3Vector &posVec) | |
Construct from point positions, assume all points are active. More... | |
internalPoints (const internalPoints &)=delete | |
No Copy construct. More... | |
internalPoints (internalPoints &&)=default | |
Move construct. More... | |
internalPoints & | operator= (const internalPoints &)=delete |
No Copy assignment. More... | |
internalPoints & | operator= (internalPoints &&)=default |
Move assignment. More... | |
~internalPoints () override=default | |
Destructor. More... | |
const pFlagTypeDevice & | activePointsMaskDevice () const |
const pFlagTypeHost & | activePointsMaskHost () const |
const PointsType & | pointPosition () const |
PointsType & | pointPosition () |
auto | pointPositionHost () const |
auto | pointPositionDevice () const |
PointsTypeHost | activePointsHost () const |
uint32 | size () const |
uint32 | capacity () const |
bool | empty () const |
uint32 | numActive () const |
bool | isAllActive () const |
auto | activeRange () const |
virtual Time & | time ()=0 |
virtual const Time & | time () const =0 |
virtual boundaryBase & | boundary (size_t boundaryIndex)=0 |
virtual const boundaryBase & | boundary (size_t boundaryIndex) const =0 |
bool | deletePoints (scatteredFieldAccess< uint32, memory_space > delPoints) |
delete points at indices given in delPoints. More... | |
uint32 | updateFlag (const domain &dm, const std::array< real, 6 > &dist) |
void | fillNeighborsLists (ViewType1D< uint32, memory_space > leftList, ViewType1D< uint32, memory_space > rightList, ViewType1D< uint32, memory_space > bottomList, ViewType1D< uint32, memory_space > topList, ViewType1D< uint32, memory_space > rearList, ViewType1D< uint32, memory_space > frontList) |
bool | insertPoints (const realx3Vector &points, anyList &varList) |
bool | insertPointsOnly (const realx3Vector_D &points, message &msg, anyList &varList) |
bool | read (iIstream &is) |
Read. More... | |
bool | write (iOstream &os) const |
Write. More... | |
bool | read (iIstream &is, const IOPattern &iop) |
Read. More... | |
bool | write (iOstream &os, const IOPattern &iop) const |
Write. More... | |
![]() | |
subscriber (const word &name) | |
subscriber (const subscriber &) | |
Copy constructor, only copies the name, not the list. More... | |
subscriber (subscriber &&) | |
Move constructor, moves the name and the list, also change the subriber of the object in the list More... | |
subscriber & | operator= (const subscriber &) |
Copy assignemnt, only assign the name, do not assign the list. More... | |
subscriber & | operator= (subscriber &&) |
Move assignment, move assign name and list, also change the subcriber of the object in the list More... | |
virtual | ~subscriber () |
virtual bool | subscribe (message msg, observer *obsevr) const |
virtual bool | unsubscribe (observer *obsevr) const |
bool | notify (uint32 iter, real t, real dt, const message msg, const anyList &varList) |
bool | notify (const timeInfo &ti, const message msg, const anyList &varList) |
const word & | subscriberName () const |
Static Public Attributes | |
static const uint32 | initialCapacity_ = 10000 |
Protected Member Functions | |
void | syncPFlag () const |
void | unSyncFlag () |
void | createDeviceFlag (uint32 cap, uint32 start, uint32 end) |
bool | sortPoints (const uint32IndexContainer &sortedIndices) |
Private Member Functions | |
bool | deletePoints (const uint32Vector_D &delPoints) |
bool | changePointsFlagPosition (const uint32Vector_D &changePoints, realx3 transferVector, uint32 fromBoundaryIndex, uint32 toBoundaryIndex) |
Private Attributes | |
friend | boundaryBase |
PointsType | pointPosition_ |
Position of points on device. More... | |
pFlagTypeDevice | pFlagsD_ |
flag of points on device More... | |
pFlagTypeHost | pFlagsH_ |
flag of points on host More... | |
bool | pFlagSync_ = false |
if both host and device flags sync More... | |
Definition at line 38 of file internalPoints.hpp.
using PointsType = realx3Field_D |
Definition at line 46 of file internalPoints.hpp.
using PointsTypeHost = typename PointsType::FieldTypeHost |
Definition at line 48 of file internalPoints.hpp.
using device_type = typename PointsType::device_type |
Definition at line 50 of file internalPoints.hpp.
using memory_space = typename PointsType::memory_space |
Definition at line 52 of file internalPoints.hpp.
using execution_space = typename PointsType::execution_space |
Definition at line 54 of file internalPoints.hpp.
internalPoints | ( | ) |
Definition at line 159 of file internalPoints.cpp.
|
explicit |
Construct from point positions, assume all points are active.
Definition at line 167 of file internalPoints.cpp.
|
delete |
No Copy construct.
|
default |
Move construct.
|
overridedefault |
Destructor.
|
private |
Definition at line 37 of file internalPoints.cpp.
References message::add(), VectorSingle< T, MemorySpace >::deviceView(), anyList::emplaceBack(), VectorSingle< T, MemorySpace >::empty(), pFlow::endl(), message::eventName(), fatalErrorInFunction, message::ITEM_DELETE, message::RANGE_CHANGED, and message::SIZE_CHANGED.
|
private |
Definition at line 92 of file internalPoints.cpp.
References message::add(), pFlow::internalPointsKernels::changePosition(), VectorSingle< T, MemorySpace >::deviceView(), anyList::emplaceBack(), pFlow::endl(), message::eventName(), fatalErrorInFunction, and message::ITEM_FLAGCHANGED.
|
protected |
Definition at line 28 of file internalPoints.cpp.
References pointFlag< ExecutionSpace >::clone(), internalPoints::pFlagsD_, internalPoints::pFlagsH_, and internalPoints::pFlagSync_.
|
inlineprotected |
Definition at line 92 of file internalPoints.hpp.
References internalPoints::pFlagSync_.
Referenced by internalPoints::createDeviceFlag().
Definition at line 98 of file internalPoints.hpp.
References internalPoints::pFlagsD_, and internalPoints::unSyncFlag().
|
protected |
Definition at line 145 of file internalPoints.cpp.
References fatalErrorInFunction, and indexContainer< IndexType >::size().
TypeInfo | ( | "internalPoints" | ) |
|
delete |
No Copy assignment.
|
default |
Move assignment.
const pFlow::pFlagTypeDevice & activePointsMaskDevice | ( | ) | const |
Definition at line 194 of file internalPoints.cpp.
Referenced by internalField< realx3, void >::activePointsMaskDevice().
const pFlow::pFlagTypeHost & activePointsMaskHost | ( | ) | const |
Definition at line 201 of file internalPoints.cpp.
Referenced by internalField< realx3, void >::activePointsMaskHost(), and pointRectCell::mapPOints().
pFlow::internalPoints::PointsType & pointPosition | ( | ) | const |
Definition at line 209 of file internalPoints.cpp.
Referenced by particles::pointPosition(), selectBox::selectAllPointsInBox(), and pointStructure::setupPointStructure().
PointsType& pointPosition | ( | ) |
|
inline |
Definition at line 153 of file internalPoints.hpp.
References VectorSingle< T, MemorySpace >::hostView(), and internalPoints::pointPosition_.
Referenced by pointRectCell::mapPOints().
|
inline |
Definition at line 159 of file internalPoints.hpp.
References VectorSingle< T, MemorySpace >::deviceView(), and internalPoints::pointPosition_.
pFlow::internalPoints::PointsTypeHost activePointsHost | ( | ) | const |
Definition at line 222 of file internalPoints.cpp.
References n.
|
inline |
Definition at line 168 of file internalPoints.hpp.
References pointFlag< ExecutionSpace >::activeRange_, Range< T >::end(), and internalPoints::pFlagsD_.
Referenced by internalPoints::empty(), selectorStridedRange::selectorStridedRange(), and particles::size().
|
inline |
Definition at line 175 of file internalPoints.hpp.
References pointFlag< ExecutionSpace >::capacity(), and internalPoints::pFlagsD_.
Referenced by particles::capacity().
|
inline |
Definition at line 181 of file internalPoints.hpp.
References internalPoints::size().
|
inline |
Definition at line 188 of file internalPoints.hpp.
References pointFlag< ExecutionSpace >::numActive(), and internalPoints::pFlagsD_.
Referenced by particles::numActive().
|
inline |
Definition at line 195 of file internalPoints.hpp.
References pointFlag< ExecutionSpace >::isAllActive(), and internalPoints::pFlagsD_.
Referenced by particles::isAllActive(), and internalField< realx3, void >::isAllActive().
|
inline |
Definition at line 201 of file internalPoints.hpp.
References pointFlag< ExecutionSpace >::activeRange(), and internalPoints::pFlagsD_.
Referenced by pointField< pFlow::VectorSingle, pFlow::AB3History >::activeRange(), and internalField< realx3, void >::activeRange().
|
pure virtual |
Implemented in pointStructure.
Referenced by internalField< realx3, void >::time().
|
pure virtual |
Implemented in pointStructure.
|
pure virtual |
Implemented in pointStructure.
|
pure virtual |
Implemented in pointStructure.
bool deletePoints | ( | scatteredFieldAccess< uint32, memory_space > | delPoints | ) |
delete points at indices given in delPoints.
The default is that delPoints contains sorted indices
Definition at line 253 of file internalPoints.cpp.
References END_WARNING, pFlow::endl(), fatalErrorInFunction, and WARNING.
pFlow::uint32 updateFlag | ( | const domain & | dm, |
const std::array< real, 6 > & | dist | ||
) |
Definition at line 271 of file internalPoints.cpp.
void fillNeighborsLists | ( | ViewType1D< uint32, memory_space > | leftList, |
ViewType1D< uint32, memory_space > | rightList, | ||
ViewType1D< uint32, memory_space > | bottomList, | ||
ViewType1D< uint32, memory_space > | topList, | ||
ViewType1D< uint32, memory_space > | rearList, | ||
ViewType1D< uint32, memory_space > | frontList | ||
) |
Definition at line 291 of file internalPoints.cpp.
bool insertPoints | ( | const realx3Vector & | points, |
anyList & | varList | ||
) |
Definition at line 311 of file internalPoints.cpp.
References message::addAndName(), message::CAP_CHANGED, anyList::emplaceBack(), pFlow::endl(), message::eventName(), fatalErrorInFunction, anyList::getObject(), message::ITEM_INSERT, pFlow::pOutput, message::RANGE_CHANGED, Vector< T, Allocator >::size(), and message::SIZE_CHANGED.
bool insertPointsOnly | ( | const realx3Vector_D & | points, |
message & | msg, | ||
anyList & | varList | ||
) |
Definition at line 427 of file internalPoints.cpp.
References message::addAndName(), message::CAP_CHANGED, VectorSingle< T, MemorySpace >::deviceView(), anyList::emplaceBack(), pFlow::endl(), message::eventName(), fatalErrorInFunction, anyList::getObject(), message::ITEM_INSERT, pFlow::pOutput, message::RANGE_CHANGED, VectorSingle< T, MemorySpace >::size(), and message::SIZE_CHANGED.
bool read | ( | iIstream & | is | ) |
Read.
Definition at line 530 of file internalPoints.cpp.
References pFlow::endl(), fatalErrorInFunction, and IOstream::name().
bool write | ( | iOstream & | os | ) | const |
Write.
Definition at line 556 of file internalPoints.cpp.
Referenced by pFlow::operator<<(), and pointStructure::write().
Read.
Definition at line 566 of file internalPoints.cpp.
References pFlow::endl(), fatalErrorInFunction, and IOstream::name().
Write.
Definition at line 590 of file internalPoints.cpp.
|
inlinestatic |
Definition at line 44 of file internalPoints.hpp.
|
private |
Definition at line 60 of file internalPoints.hpp.
|
private |
Position of points on device.
Definition at line 65 of file internalPoints.hpp.
Referenced by internalPoints::pointPositionDevice(), and internalPoints::pointPositionHost().
|
mutableprivate |
flag of points on device
Definition at line 68 of file internalPoints.hpp.
Referenced by internalPoints::activeRange(), internalPoints::capacity(), internalPoints::createDeviceFlag(), internalPoints::isAllActive(), internalPoints::numActive(), internalPoints::size(), and internalPoints::syncPFlag().
|
mutableprivate |
flag of points on host
Definition at line 71 of file internalPoints.hpp.
Referenced by internalPoints::syncPFlag().
|
mutableprivate |
if both host and device flags sync
Definition at line 74 of file internalPoints.hpp.
Referenced by internalPoints::syncPFlag(), and internalPoints::unSyncFlag().