Corrected typos in comments

found using cspell.

Patch contributed by Timo Niemi, VTT.
Resolves patch request https://bugs.openfoam.org/view.php?id=3372
This commit is contained in:
Henry Weller
2019-10-18 11:57:11 +01:00
parent 81fca4c43a
commit 4e6695e32d
24 changed files with 64 additions and 64 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -145,7 +145,7 @@ int main(int argc, char *argv[])
fcs[1] = face(labelList(2, 222));
CompactListList<label, face> compactFcs(fcs);
Info<< "comactFcs:" << compactFcs << endl;
Info<< "compactFcs:" << compactFcs << endl;
faceList fcs2 = compactFcs();
Info<< "fcs2:" << fcs2 << endl;

View File

@ -22,7 +22,7 @@ main()
cerr << "deallocated ints\n";
cerr << "alloacting doubles\n";
cerr << "allocating doubles\n";
double* doubles = new double[500000];

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -517,7 +517,7 @@ int main(int argc, char *argv[])
{
Info<< "Could not insert mesh edge " << edgeI
<< " for input point " << pts.first() << nl
<< "Perhaps the edge is already marked for collaping?" << endl;
<< "Perhaps the edge is already marked for collapsing?" << endl;
validInputs = false;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -112,7 +112,7 @@ hexBlock::hexBlock(const label nx, const label ny, const label nz)
void hexBlock::readPoints
(
const bool readBlank,
const scalar twoDThicknes,
const scalar twoDThickness,
Istream& is
)
{
@ -120,7 +120,7 @@ void hexBlock::readPoints
label nPoints = points_.size();
if (twoDThicknes > 0)
if (twoDThickness > 0)
{
nPoints /= 2;
}
@ -137,7 +137,7 @@ void hexBlock::readPoints
is >> points_[i].y();
}
if (twoDThicknes > 0)
if (twoDThickness > 0)
{
Info<< "Extruding " << nPoints << " points in z direction..." << endl;
// Duplicate points
@ -148,7 +148,7 @@ void hexBlock::readPoints
for (label i=0; i < nPoints; i++)
{
points_[i].z() = 0;
points_[i+nPoints].z() = twoDThicknes;
points_[i+nPoints].z() = twoDThickness;
}
}
else

View File

@ -149,7 +149,7 @@ public:
void readPoints
(
const bool readBlank,
const scalar twoDThicknes,
const scalar twoDThickness,
Istream&
);
};

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -93,7 +93,7 @@ void Foam::sammMesh::fixCollapsedEdges()
forAll(vertexLabels, vI)
{
// In order for a face to be a valid entity, duplicate
// vertices can only be consecutive (othervise, the
// vertices can only be consecutive (otherwise, the
// collapse creates an invalid face). We shall use this
// property in the creation of the collapsed face
@ -130,7 +130,7 @@ void Foam::sammMesh::fixCollapsedEdges()
{
FatalErrorInFunction
<< "face " << facei << " of cell " << celli
<< " is colapsed down to a point or edge, which is "
<< " is collapsed down to a point or edge, which is "
<< "not permitted" << endl
<< "original face: " << vertexLabels << endl
<< "purged face: " << newFace << endl

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -92,7 +92,7 @@ void Foam::starMesh::fixCollapsedEdges()
forAll(vertexLabels, vI)
{
// In order for a face to be a valid entity, duplicate
// vertices can only be consecutive (othervise, the
// vertices can only be consecutive (otherwise, the
// collapse creates an invalid face). We shall use this
// property in the creation of the collapsed face
@ -129,7 +129,7 @@ void Foam::starMesh::fixCollapsedEdges()
{
FatalErrorInFunction
<< "Face " << facei << " of cell " << celli
<< " is colapsed down to a point or edge, which is "
<< " is collapsed down to a point or edge, which is "
<< "not permitted" << endl
<< "original face: " << vertexLabels << endl
<< "purged face: " << newFace << endl

View File

@ -268,7 +268,7 @@ int main(int argc, char *argv[])
if (nElemAttr != 0)
{
WarningInFunction
<< "Element attributes (third elemenent in .ele header)"
<< "Element attributes (third element in .ele header)"
<< " not used" << endl;
}

View File

@ -232,7 +232,7 @@ private:
void checkCoeffs
(
const scalarList& reactionCoeffs,
const char* reationRateName,
const char* reactionRateName,
const label nCoeffs
) const;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -94,7 +94,7 @@ Foam::LduMatrix<Type, DType, LUType>::preconditioner::New
FatalIOErrorInFunction
(
preconditionerDict
) << "cannot preconditione incomplete matrix, "
) << "cannot precondition incomplete matrix, "
"no diagonal or off-diagonal coefficient"
<< exit(FatalIOError);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -142,7 +142,7 @@ Foam::processorGAMGInterface::processorGAMGInterface
const label index,
const lduInterfacePtrsList& coarseInterfaces,
const labelUList& faceCells,
const labelUList& faceRestrictAddresssing,
const labelUList& faceRestrictAddressing,
const label coarseComm,
const label myProcNo,
const label neighbProcNo,
@ -155,7 +155,7 @@ Foam::processorGAMGInterface::processorGAMGInterface
index,
coarseInterfaces,
faceCells,
faceRestrictAddresssing
faceRestrictAddressing
),
comm_(coarseComm),
myProcNo_(myProcNo),

View File

@ -5642,7 +5642,7 @@ void Foam::hexRef8::setUnrefinement
if (facesToRemove.size() != splitFaces.size())
{
FatalErrorInFunction
<< "Ininitial set of split points to unrefine does not"
<< "Initial set of split points to unrefine does not"
<< " seem to be consistent or not mid points of refined cells"
<< abort(FatalError);
}
@ -5685,7 +5685,7 @@ void Foam::hexRef8::setUnrefinement
if (region == -1)
{
FatalErrorInFunction
<< "Ininitial set of split points to unrefine does not"
<< "Initial set of split points to unrefine does not"
<< " seem to be consistent or not mid points"
<< " of refined cells" << nl
<< "cell:" << celli << " on splitPoint " << pointi

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -246,7 +246,7 @@ void Foam::FreeStream<CloudType>::inflow()
// Cumulative triangle area fractions
List<scalar> cTriAFracs(faceTets.size(), 0.0);
scalar previousCummulativeSum = 0.0;
scalar previousCumulativeSum = 0.0;
forAll(faceTets, triI)
{
@ -254,9 +254,9 @@ void Foam::FreeStream<CloudType>::inflow()
cTriAFracs[triI] =
faceTetIs.faceTri(mesh).mag()/fA
+ previousCummulativeSum;
+ previousCumulativeSum;
previousCummulativeSum = cTriAFracs[triI];
previousCumulativeSum = cTriAFracs[triI];
}
// Force the last area fraction value to 1.0 to avoid any

View File

@ -45,7 +45,7 @@ const dictionary& autocorrelationFunctionDict
//- Velocity autocorrelation function
Info << tab << "velocty" << endl;
Info << tab << "velocity" << endl;
const dictionary& velocityACFDict
(

View File

@ -42,7 +42,7 @@ void Foam::reducedUnits::calcRefValues()
)
{
FatalErrorInFunction
<< "One of more referencence values too small for floating point "
<< "One of more reference values too small for floating point "
<< "calculation: "
<< "refTime_ = " << refTime_
<< ", refLength = " << refTemp_

View File

@ -392,8 +392,8 @@ Foam::layerParameters::layerParameters
Foam::scalar Foam::layerParameters::layerThickness
(
const label nLayers,
const scalar firstLayerThickess,
const scalar finalLayerThickess,
const scalar firstLayerThickness,
const scalar finalLayerThickness,
const scalar totalThickness,
const scalar expansionRatio
) const
@ -412,11 +412,11 @@ Foam::scalar Foam::layerParameters::layerThickness
{
if (mag(expansionRatio-1) < small)
{
return firstLayerThickess * nLayers;
return firstLayerThickness * nLayers;
}
else
{
return firstLayerThickess
return firstLayerThickness
*(1 - pow(expansionRatio, nLayers))
/(1 - expansionRatio);
}
@ -427,13 +427,13 @@ Foam::scalar Foam::layerParameters::layerThickness
{
if (mag(expansionRatio-1) < small)
{
return finalLayerThickess * nLayers;
return finalLayerThickness * nLayers;
}
else
{
const scalar invExpansion = 1.0/expansionRatio;
return finalLayerThickess
return finalLayerThickness
*(1 - pow(invExpansion, nLayers))
/(1 - invExpansion);
}
@ -453,8 +453,8 @@ Foam::scalar Foam::layerParameters::layerThickness
Foam::scalar Foam::layerParameters::layerExpansionRatio
(
const label nLayers,
const scalar firstLayerThickess,
const scalar finalLayerThickess,
const scalar firstLayerThickness,
const scalar finalLayerThickness,
const scalar totalThickness,
const scalar expansionRatio
) const
@ -474,7 +474,7 @@ Foam::scalar Foam::layerParameters::layerExpansionRatio
return layerExpansionRatio
(
nLayers,
totalThickness/firstLayerThickess
totalThickness/firstLayerThickness
);
}
break;
@ -486,7 +486,7 @@ Foam::scalar Foam::layerParameters::layerExpansionRatio
/layerExpansionRatio
(
nLayers,
totalThickness/finalLayerThickess
totalThickness/finalLayerThickness
);
}
break;
@ -504,8 +504,8 @@ Foam::scalar Foam::layerParameters::layerExpansionRatio
Foam::scalar Foam::layerParameters::firstLayerThickness
(
const label nLayers,
const scalar firstLayerThickess,
const scalar finalLayerThickess,
const scalar firstLayerThickness,
const scalar finalLayerThickness,
const scalar totalThickness,
const scalar expansionRatio
) const
@ -515,12 +515,12 @@ Foam::scalar Foam::layerParameters::firstLayerThickness
case FIRST_AND_EXPANSION:
case FIRST_AND_TOTAL:
{
return firstLayerThickess;
return firstLayerThickness;
}
case FINAL_AND_EXPANSION:
{
return finalLayerThickess*pow(1.0/expansionRatio, nLayers-1);
return finalLayerThickness*pow(1.0/expansionRatio, nLayers-1);
}
break;
@ -529,13 +529,13 @@ Foam::scalar Foam::layerParameters::firstLayerThickness
const scalar r = layerExpansionRatio
(
nLayers,
firstLayerThickess,
finalLayerThickess,
firstLayerThickness,
finalLayerThickness,
totalThickness,
expansionRatio
);
return finalLayerThickess/pow(r, nLayers-1);
return finalLayerThickness/pow(r, nLayers-1);
}
break;

View File

@ -414,7 +414,7 @@ void Foam::snappyLayerDriver::handleFeatureAngle
forAll(eFaces, i)
{
nomalsCombine()
normalsCombine()
(
edgeNormal[meshEdgeI],
pp.faceNormals()[eFaces[i]]
@ -426,7 +426,7 @@ void Foam::snappyLayerDriver::handleFeatureAngle
(
mesh,
edgeNormal,
nomalsCombine(),
normalsCombine(),
point::max // null value
);
@ -970,7 +970,7 @@ void Foam::snappyLayerDriver::determineSidePatches
// Sometimes edges-to-be-extruded are on more than 2 processors.
// Work out which 2 hold the faces to be extruded and thus which procpatch
// the side-face should be in. As an additional complication this might
// mean that 2 procesors that were only edge-connected now suddenly need
// mean that 2 processors that were only edge-connected now suddenly need
// to become face-connected i.e. have a processor patch between them.
fvMesh& mesh = meshRefiner_.mesh();
@ -2738,7 +2738,7 @@ bool Foam::snappyLayerDriver::writeLayerData
faceRealThickness
);
// Convert patchReal to relavtive thickness
// Convert patchReal to relative thickness
scalarField pfld(patchReal.size(), 0.0);
forAll(patchReal, i)
{

View File

@ -75,7 +75,7 @@ private:
// Private classes
//- Combine operator class to combine normal with other normal.
class nomalsCombine
class normalsCombine
{
public:

View File

@ -87,7 +87,7 @@ void Foam::axesRotation::calcTransform
default:
{
FatalErrorInFunction
<< "Unhandled axes specifictation" << endl
<< "Unhandled axes specification" << endl
<< abort(FatalError);
Rtr = Zero;

View File

@ -165,7 +165,7 @@ Foam::cylindrical::cylindrical(const dictionary& dict)
{
FatalErrorInFunction
<< " cylindrical can not be constructed from dictionary "
<< " use the construtctor : "
<< " use the constructor : "
"("
" const dictionary&, const objectRegistry&"
")"

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -43,7 +43,7 @@ Foam::topoSetSource::addToUsageTable Foam::rotatedBoxToCell::usage_
rotatedBoxToCell::typeName,
"\n Usage: rotatedBoxToCell (originx originy originz)"
" (ix iy iz) (jx jy jz) (kx ky kz)\n\n"
" Select all cells with cellCentre within parallelopiped\n\n"
" Select all cells with cellCentre within parallelepiped\n\n"
);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -306,7 +306,7 @@ void Foam::hierarchGeomDecomp::findBinary
if (returnReduce(hasNotChanged, andOp<bool>()))
{
WarningInFunction
<< "unable to find desired deomposition split, making do!"
<< "unable to find desired decomposition split, making do!"
<< endl;
break;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -543,7 +543,7 @@ Foam::label Foam::ptscotchDecomp::decompose
{
if (debug)
{
Info<< "ptscotchDecomp : Using procesor weights "
Info<< "ptscotchDecomp : Using processor weights "
<< processorWeights
<< endl;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -375,7 +375,7 @@ Foam::label Foam::scotchDecomp::decomposeOneProc
{
if (debug)
{
Info<< "scotchDecomp : Using procesor weights " << processorWeights
Info<< "scotchDecomp : Using processor weights " << processorWeights
<< endl;
}
check