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&
|
||||
)
|
||||
{
|
||||
// Use internal values
|
||||
Field<Type>::operator=(this->patchInternalField());
|
||||
// Base fields do not rmap
|
||||
this->setSize(this->patch().size(), pTraits<Type>::zero);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -66,9 +66,11 @@ immersedBoundaryFvsPatchField<Type>::immersedBoundaryFvsPatchField
|
|||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
fvsPatchField<Type>(p, iF, dict),
|
||||
fvsPatchField<Type>(p, iF), // Do not read base data
|
||||
ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
|
||||
{}
|
||||
{
|
||||
operator=(pTraits<Type>::zero);
|
||||
}
|
||||
|
||||
|
||||
template<class Type>
|
||||
|
@ -80,7 +82,7 @@ immersedBoundaryFvsPatchField<Type>::immersedBoundaryFvsPatchField
|
|||
const fvPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
fvsPatchField<Type>(ptf, p, iF, mapper),
|
||||
fvsPatchField<Type>(p, iF), // Do not map base data
|
||||
ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
|
||||
{}
|
||||
|
||||
|
@ -153,7 +155,9 @@ template<class Type>
|
|||
void immersedBoundaryFvsPatchField<Type>::write(Ostream& os) const
|
||||
{
|
||||
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