mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
pointPatchField: Correct mapping so that the patchType entry in the base-class is mapped
This commit is contained in:
@ -59,10 +59,10 @@ Foam::basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
|
||||
const basicSymmetryPointPatchField<Type>& ptf,
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF,
|
||||
const pointPatchFieldMapper&
|
||||
const pointPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
pointPatchField<Type>(p, iF)
|
||||
pointPatchField<Type>(ptf, p, iF, mapper)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -68,10 +68,10 @@ calculatedPointPatchField<Type>::calculatedPointPatchField
|
||||
const calculatedPointPatchField<Type>& ptf,
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF,
|
||||
const pointPatchFieldMapper&
|
||||
const pointPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
pointPatchField<Type>(p, iF)
|
||||
pointPatchField<Type>(ptf, p, iF, mapper)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -61,10 +61,10 @@ coupledPointPatchField<Type>::coupledPointPatchField
|
||||
const coupledPointPatchField<Type>& ptf,
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF,
|
||||
const pointPatchFieldMapper&
|
||||
const pointPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
pointPatchField<Type>(p, iF)
|
||||
pointPatchField<Type>(ptf, p, iF, mapper)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -108,7 +108,7 @@ Foam::valuePointPatchField<Type>::valuePointPatchField
|
||||
const pointPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
pointPatchField<Type>(p, iF),
|
||||
pointPatchField<Type>(ptf, p, iF, mapper),
|
||||
Field<Type>(ptf, mapper)
|
||||
{}
|
||||
|
||||
|
||||
@ -61,10 +61,10 @@ zeroGradientPointPatchField<Type>::zeroGradientPointPatchField
|
||||
const zeroGradientPointPatchField<Type>& ptf,
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF,
|
||||
const pointPatchFieldMapper&
|
||||
const pointPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
pointPatchField<Type>(p, iF)
|
||||
pointPatchField<Type>(ptf, p, iF, mapper)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -77,10 +77,10 @@ emptyPointPatchField<Type>::emptyPointPatchField
|
||||
const emptyPointPatchField<Type>& ptf,
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF,
|
||||
const pointPatchFieldMapper&
|
||||
const pointPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
pointPatchField<Type>(p, iF)
|
||||
pointPatchField<Type>(ptf, p, iF, mapper)
|
||||
{
|
||||
if (!isType<emptyPointPatch>(this->patch()))
|
||||
{
|
||||
|
||||
@ -74,10 +74,10 @@ Foam::wedgePointPatchField<Type>::wedgePointPatchField
|
||||
const wedgePointPatchField<Type>& ptf,
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF,
|
||||
const pointPatchFieldMapper&
|
||||
const pointPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
pointPatchField<Type>(p, iF)
|
||||
pointPatchField<Type>(ptf, p, iF, mapper)
|
||||
{
|
||||
if (!isType<wedgePointPatch>(this->patch()))
|
||||
{
|
||||
|
||||
@ -63,6 +63,22 @@ pointPatchField<Type>::pointPatchField
|
||||
{}
|
||||
|
||||
|
||||
template<class Type>
|
||||
Foam::pointPatchField<Type>::pointPatchField
|
||||
(
|
||||
const pointPatchField<Type>& ptf,
|
||||
const pointPatch& p,
|
||||
const DimensionedField<Type, pointMesh>& iF,
|
||||
const pointPatchFieldMapper&
|
||||
)
|
||||
:
|
||||
patch_(p),
|
||||
internalField_(iF),
|
||||
updated_(false),
|
||||
patchType_(ptf.patchType_)
|
||||
{}
|
||||
|
||||
|
||||
template<class Type>
|
||||
pointPatchField<Type>::pointPatchField
|
||||
(
|
||||
|
||||
@ -167,6 +167,15 @@ public:
|
||||
const dictionary&
|
||||
);
|
||||
|
||||
//- Construct by mapping given patchField<Type> onto a new patch
|
||||
pointPatchField
|
||||
(
|
||||
const pointPatchField<Type>&,
|
||||
const pointPatch&,
|
||||
const DimensionedField<Type, pointMesh>&,
|
||||
const pointPatchFieldMapper&
|
||||
);
|
||||
|
||||
//- Construct as copy
|
||||
pointPatchField(const pointPatchField<Type>&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user