Skip to content

Commit

Permalink
externalWallHeatFluxTemperatureFvPatchScalarField: Set size of option…
Browse files Browse the repository at this point in the history
… fields before mapping

Resolves problem with reconstruction
  • Loading branch information
Henry Weller committed Oct 16, 2017
1 parent 65e6081 commit 00efd09
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,14 @@ externalWallHeatFluxTemperatureFvPatchScalarField
}
case fixedHeatFlux:
{
q_.setSize(mapper.size());
q_.map(ptf.q_, mapper);

break;
}
case fixedHeatTransferCoeff:
{
h_.setSize(mapper.size());
h_.map(ptf.h_, mapper);

break;
Expand All @@ -206,6 +208,7 @@ externalWallHeatFluxTemperatureFvPatchScalarField

if (qrName_ != "none")
{
qrPrevious_.setSize(mapper.size());
qrPrevious_.map(ptf.qrPrevious_, mapper);
}
}
Expand Down

0 comments on commit 00efd09

Please sign in to comment.