Merge remote-tracking branch 'origin/BUGFIX/restartIssueWithRadiationBCs'

This commit is contained in:
Dominik Christ 2014-04-08 18:55:31 +01:00
commit 5f92fdfc9e
3 changed files with 10 additions and 6 deletions

View file

@ -77,11 +77,12 @@ Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField
{ {
if (dict.found("value")) if (dict.found("value"))
{ {
refValue() = scalarField("value", dict, p.size());
fvPatchScalarField::operator= fvPatchScalarField::operator=
( (
scalarField("value", dict, p.size()) refValue()
); );
refValue() = scalarField("value", dict, p.size());
refGrad() = 0; refGrad() = 0;
valueFraction() = 1; valueFraction() = 1;

View file

@ -81,11 +81,13 @@ greyDiffusiveRadiationMixedFvPatchScalarField
{ {
if (dict.found("refValue")) if (dict.found("refValue"))
{ {
refValue() = scalarField("value", dict, p.size());
fvPatchScalarField::operator= fvPatchScalarField::operator=
( (
scalarField("value", dict, p.size()) refValue()
); );
refValue() = scalarField("refValue", dict, p.size());
refGrad() = scalarField("refGradient", dict, p.size()); refGrad() = scalarField("refGradient", dict, p.size());
valueFraction() = scalarField("valueFraction", dict, p.size()); valueFraction() = scalarField("valueFraction", dict, p.size());
} }

View file

@ -81,11 +81,12 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
{ {
if (dict.found("value")) if (dict.found("value"))
{ {
refValue() = scalarField("value", dict, p.size());
fvPatchScalarField::operator= fvPatchScalarField::operator=
( (
scalarField("value", dict, p.size()) refValue()
); );
refValue() = scalarField("value", dict, p.size());
refGrad() = 0; refGrad() = 0;
valueFraction() = 1; valueFraction() = 1;