BUG: Corrected assignment to reference object

This commit is contained in:
Andrew Heather
2016-10-07 12:26:09 +01:00
parent 07bbb1852e
commit 8ff2e8f14d
3 changed files with 4 additions and 4 deletions

View File

@ -145,7 +145,7 @@ void Foam::threePhaseInterfaceProperties::calculateK()
// Complex expression for curvature. // Complex expression for curvature.
// Correction is formally zero but numerically non-zero. // Correction is formally zero but numerically non-zero.
// volVectorField nHat = gradAlpha/(mag(gradAlpha) + deltaN_); // volVectorField nHat = gradAlpha/(mag(gradAlpha) + deltaN_);
// nHat.boundaryField() = nHatfv.boundaryField(); // nHat.boundaryFieldRef() = nHatfv.boundaryField();
// K_ = -fvc::div(nHatf_) + (nHat & fvc::grad(nHatfv) & nHat); // K_ = -fvc::div(nHatf_) + (nHat & fvc::grad(nHatfv) & nHat);
} }

View File

@ -2824,7 +2824,7 @@ bool Foam::snappyLayerDriver::writeLayerData
faceRealThickness faceRealThickness
); );
// Convert patchReal to relavtive thickness // Convert patchReal to relative thickness
scalarField pfld(patchReal.size(), 0.0); scalarField pfld(patchReal.size(), 0.0);
forAll(patchReal, i) forAll(patchReal, i)
{ {
@ -2834,7 +2834,7 @@ bool Foam::snappyLayerDriver::writeLayerData
} }
} }
fld.boundaryField()[patchi] == pfld; fld.boundaryFieldRef()[patchi] == pfld;
} }
Info<< indent << fld.name() Info<< indent << fld.name()
<< " : overall layer thickness (fraction" << " : overall layer thickness (fraction"

View File

@ -142,7 +142,7 @@ void Foam::interfaceProperties::calculateK()
volVectorField nHat(gradAlpha/(mag(gradAlpha) + deltaN_)); volVectorField nHat(gradAlpha/(mag(gradAlpha) + deltaN_));
forAll(nHat.boundaryField(), patchi) forAll(nHat.boundaryField(), patchi)
{ {
nHat.boundaryField()[patchi] = nHatfv.boundaryField()[patchi]; nHat.boundaryFieldRef()[patchi] = nHatfv.boundaryField()[patchi];
} }
K_ = -fvc::div(nHatf_) + (nHat & fvc::grad(nHatfv) & nHat); K_ = -fvc::div(nHatf_) + (nHat & fvc::grad(nHatfv) & nHat);