STYLE: use calculatedType() and zeroGradientType() methods

This commit is contained in:
Mark Olesen
2023-04-24 16:18:05 +02:00
parent 09ce87135b
commit e967305ef2
88 changed files with 165 additions and 212 deletions

View File

@ -114,7 +114,6 @@ Description
#include "ReadFields.H"
#include "mappedWallPolyPatch.H"
#include "fvMeshTools.H"
#include "zeroGradientFvPatchFields.H"
#include "processorMeshes.H"
using namespace Foam;
@ -1055,7 +1054,7 @@ labelList addRegionPatches
mesh,
patch1,
dictionary(), //optional per field value
calculatedFvPatchField<scalar>::typeName,
fvPatchFieldBase::calculatedType(),
true //validBoundary
);
@ -1076,7 +1075,7 @@ labelList addRegionPatches
mesh,
patch2,
dictionary(), //optional per field value
calculatedFvPatchField<scalar>::typeName,
fvPatchFieldBase::calculatedType(),
true //validBoundary
);
@ -1433,7 +1432,7 @@ void writeCellToRegion(const fvMesh& mesh, const labelList& cellRegion)
),
mesh,
dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName
fvPatchFieldBase::zeroGradientType()
);
forAll(cellRegion, celli)
{