timeVaryingMappedFixedValueFvPatchField: Corrected rmap of the timeVaryingMappedFvPatchField

This commit is contained in:
Henry Weller
2019-01-30 11:43:46 +00:00
parent da77e6a77f
commit 20cefd3b81
3 changed files with 16 additions and 7 deletions

View File

@ -129,7 +129,14 @@ void Foam::timeVaryingMappedFixedValueFvPatchField<Type>::rmap
) )
{ {
fixedValueFvPatchField<Type>::rmap(ptf, addr); fixedValueFvPatchField<Type>::rmap(ptf, addr);
fieldMapper_.rmap(ptf, addr); fieldMapper_.rmap
(
refCast
<
const timeVaryingMappedFixedValueFvPatchField<Type>
>(ptf).fieldMapper_,
addr
);
} }

View File

@ -402,13 +402,10 @@ void Foam::timeVaryingMappedFvPatchField<Type>::autoMap
template<class Type> template<class Type>
void Foam::timeVaryingMappedFvPatchField<Type>::rmap void Foam::timeVaryingMappedFvPatchField<Type>::rmap
( (
const fvPatchField<Type>& ptf, const timeVaryingMappedFvPatchField<Type>& tiptf,
const labelList& addr const labelList& addr
) )
{ {
const timeVaryingMappedFvPatchField<Type>& tiptf =
refCast<const timeVaryingMappedFvPatchField<Type>>(ptf);
startSampledValues_.rmap(tiptf.startSampledValues_, addr); startSampledValues_.rmap(tiptf.startSampledValues_, addr);
endSampledValues_.rmap(tiptf.endSampledValues_, addr); endSampledValues_.rmap(tiptf.endSampledValues_, addr);

View File

@ -218,8 +218,13 @@ public:
//- Map (and resize as needed) from self given a mapping object //- Map (and resize as needed) from self given a mapping object
void autoMap(const fvPatchFieldMapper&); void autoMap(const fvPatchFieldMapper&);
//- Reverse map the given fvPatchField onto this fvPatchField //- Reverse map the given timeVaryingMappedFvPatchField
void rmap(const fvPatchField<Type>&, const labelList&); // onto this timeVaryingMappedFvPatchField
void rmap
(
const timeVaryingMappedFvPatchField<Type>&,
const labelList&
);
// Evaluation functions // Evaluation functions