mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
GeometricField::internalField() -> GeometricField::internalFieldRef()
Non-const access to the internal field now obtained from a specifically
named access function consistent with the new names for non-canst access
to the boundary field boundaryFieldRef() and dimensioned internal field
dimensionedInternalFieldRef().
See also commit a4e2afa4b3
This commit is contained in:
@ -87,7 +87,7 @@ int main(int argc, char *argv[])
|
||||
mesh,
|
||||
dimensionedScalar("aggomeration", dimless, 0.0)
|
||||
);
|
||||
scalarField& fld = scalarAgglomeration.internalField();
|
||||
scalarField& fld = scalarAgglomeration.internalFieldRef();
|
||||
forAll(fld, celli)
|
||||
{
|
||||
fld[celli] = cellToCoarse[celli];
|
||||
@ -166,7 +166,7 @@ int main(int argc, char *argv[])
|
||||
mesh,
|
||||
dimensionedScalar("aggomeration", dimless, 0.0)
|
||||
);
|
||||
scalarField& fld = scalarAgglomeration.internalField();
|
||||
scalarField& fld = scalarAgglomeration.internalFieldRef();
|
||||
forAll(fld, celli)
|
||||
{
|
||||
fld[celli] = cellToCoarse[celli];
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -164,7 +164,7 @@ int main(int argc, char *argv[])
|
||||
dimensionedScalar("one", dimless, 1.0),
|
||||
calculatedPointPatchScalarField::typeName
|
||||
);
|
||||
pointX.internalField() = mesh.points().component(0);
|
||||
pointX.internalFieldRef() = mesh.points().component(0);
|
||||
pointX.correctBoundaryConditions();
|
||||
Info<< "Writing x-component field "
|
||||
<< pointX.name() << " in " << runTime.timeName() << endl;
|
||||
|
||||
@ -86,7 +86,7 @@ int main(int argc, char *argv[])
|
||||
patchFieldTypes
|
||||
);
|
||||
|
||||
cc.internalField() = mesh.C().internalField();
|
||||
cc.internalFieldRef() = mesh.C().internalField();
|
||||
cc.boundaryFieldRef().updateCoeffs();
|
||||
|
||||
forAll(cc.boundaryField(), patchi)
|
||||
|
||||
Reference in New Issue
Block a user