Update reading mechanism for patch type in immersed boundary
This commit is contained in:
parent
bcb361ba75
commit
ff509e6a62
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue