Decomposition/reconstruction bug fixes
This commit is contained in:
parent
e0e02afc50
commit
9747240660
2 changed files with 10 additions and 6 deletions
|
@ -166,8 +166,8 @@ void immersedBoundaryFvPatchField<Type>::rmap
|
||||||
const labelList&
|
const labelList&
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Use internal values
|
// Base fields do not rmap
|
||||||
Field<Type>::operator=(this->patchInternalField());
|
this->setSize(this->patch().size(), pTraits<Type>::zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -66,9 +66,11 @@ immersedBoundaryFvsPatchField<Type>::immersedBoundaryFvsPatchField
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fvsPatchField<Type>(p, iF, dict),
|
fvsPatchField<Type>(p, iF), // Do not read base data
|
||||||
ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
|
ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
|
||||||
{}
|
{
|
||||||
|
operator=(pTraits<Type>::zero);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
|
@ -80,7 +82,7 @@ immersedBoundaryFvsPatchField<Type>::immersedBoundaryFvsPatchField
|
||||||
const fvPatchFieldMapper& mapper
|
const fvPatchFieldMapper& mapper
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fvsPatchField<Type>(ptf, p, iF, mapper),
|
fvsPatchField<Type>(p, iF), // Do not map base data
|
||||||
ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
|
ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -153,7 +155,9 @@ template<class Type>
|
||||||
void immersedBoundaryFvsPatchField<Type>::write(Ostream& os) const
|
void immersedBoundaryFvsPatchField<Type>::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
fvsPatchField<Type>::write(os);
|
fvsPatchField<Type>::write(os);
|
||||||
this->writeEntry("value", os);
|
// The value entry needs to be written with zero size
|
||||||
|
Field<Type>::null().writeEntry("value", os);
|
||||||
|
// this->writeEntry("value", os);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue