Update reading mechanism for patch type in immersed boundary

This commit is contained in:
Hrvoje Jasak 2018-09-07 09:51:02 +01:00
parent bcb361ba75
commit ff509e6a62
2 changed files with 8 additions and 0 deletions

View file

@ -75,6 +75,10 @@ fixedValueIbFvPatchField<Type>::fixedValueIbFvPatchField
),
triValue_("triValue", dict, this->ibPatch().ibMesh().size())
{
// Since patch does not read a dictionary, the patch type needs to be read
// manually. HJ, 6/Sep/2018
this->readPatchType(dict);
if (!isType<immersedBoundaryFvPatch>(p))
{
FatalIOErrorIn

View file

@ -81,6 +81,10 @@ mixedIbFvPatchField<Type>::mixedIbFvPatchField
triGrad_("triGradient", dict, this->ibPatch().ibMesh().size()),
triValueFraction_("triValueFraction", dict, this->ibPatch().ibMesh().size())
{
// Since patch does not read a dictionary, the patch type needs to be read
// manually. HJ, 6/Sep/2018
this->readPatchType(dict);
if (!isType<immersedBoundaryFvPatch>(p))
{
FatalIOErrorIn