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);
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>
void Foam::timeVaryingMappedFvPatchField<Type>::rmap
(
const fvPatchField<Type>& ptf,
const timeVaryingMappedFvPatchField<Type>& tiptf,
const labelList& addr
)
{
const timeVaryingMappedFvPatchField<Type>& tiptf =
refCast<const timeVaryingMappedFvPatchField<Type>>(ptf);
startSampledValues_.rmap(tiptf.startSampledValues_, addr);
endSampledValues_.rmap(tiptf.endSampledValues_, addr);

View File

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