30 template<
class FaceList,
class Po
intField>
33 const FaceList& faces,
41 localPoints0Ptr_(
nullptr)
45 template<
class FaceList,
class Po
intField>
55 localPoints0Ptr_(
nullptr)
59 template<
class FaceList,
class Po
intField>
62 const FaceList& faces,
69 localPoints0Ptr_(
nullptr)
73 template<
class FaceList,
class Po
intField>
82 localPoints0Ptr_(
nullptr)
86 template<
class FaceList,
class Po
intField>
93 points0_(patch.points0_),
94 patch0Ptr_(patch.patch0Ptr_,
false),
95 localPoints0Ptr_(
nullptr)
99 template<
class FaceList,
class Po
intField>
106 points0_(move(patch.points0_)),
107 patch0Ptr_(patch.patch0Ptr_),
108 localPoints0Ptr_(
nullptr)
114 template<
class FaceList,
class Po
intField>
123 template<
class FaceList,
class Po
intField>
133 if (!localPoints0Ptr_)
135 const labelList& meshPts = this->meshPoints();
143 locPts[pointi] = points0_[meshPts[pointi]];
158 return *localPoints0Ptr_;
162 template<
class FaceList,
class Po
intField>
168 return patch0Ptr_->faceCentres();
172 template<
class FaceList,
class Po
intField>
178 return patch0Ptr_->faceAreas();
182 template<
class FaceList,
class Po
intField>
188 return patch0Ptr_->faceNormals();
192 template<
class FaceList,
class Po
intField>
201 return NullObjectRef<Field<PointType>>();
205 template<
class FaceList,
class Po
intField>
209 if (has0()) patch0Ptr_->clearOut();
215 template<
class FaceList,
class Po
intField>
219 if (has0()) patch0Ptr_->clearGeom();
225 template<
class FaceList,
class Po
intField>
231 if (has0()) patch0Ptr_->clearGeom();
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
const Field< PointType > & faceAreas0() const
Return old-time face areas for patch.
A list of faces which address into the list of points.
virtual ~PrimitiveOldTimePatch()
Destructor.
const Field< PointType > & pointNormals0() const
Return old-time point normals for patch.
const Field< PointType > & localPoints0() const
Return pointField of old-time points in patch.
const Field< PointType > & faceCentres0() const
Return old-time face centres for patch.
PrimitiveOldTimePatch(const FaceList &faces, const Field< PointType > &points, const Field< PointType > &points0)
Construct from components.
std::remove_reference< PointField >::type::value_type PointType
const T & NullObjectRef()
Return reference to the nullObject of type T.
void deleteDemandDrivenData(DataPtr &dataPtr)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual void movePoints0(const Field< PointType > &)
Correct patch after moving points.
const Field< PointType > & faceNormals0() const
Return old-time face normals for patch.