From a10531adb2dd92aa29e21fac04e13f089e9a5070 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Tue, 6 Feb 2018 14:12:24 -0500 Subject: [PATCH] Misc. typos Found via `codespell -q 3` --- libsrc/interface/writegmsh.cpp | 2 +- libsrc/meshing/smoothing3.cpp | 4 ++-- libsrc/occ/Partition_Inter3d.cxx | 4 ++-- libsrc/occ/Partition_Loop.cxx | 2 +- libsrc/occ/Partition_Loop2d.cxx | 9 +++++---- libsrc/occ/Partition_Spliter.cxx | 8 ++++---- libsrc/occ/occgenmesh.cpp | 4 ++-- libsrc/occ/occgeom.cpp | 4 ++-- libsrc/occ/utilities.h | 2 +- 9 files changed, 20 insertions(+), 19 deletions(-) diff --git a/libsrc/interface/writegmsh.cpp b/libsrc/interface/writegmsh.cpp index 63afd6e9..c4adfbd6 100644 --- a/libsrc/interface/writegmsh.cpp +++ b/libsrc/interface/writegmsh.cpp @@ -191,7 +191,7 @@ void WriteGmshFormat (const Mesh & mesh, else { - cout << " Invalide element type for Gmsh volume Format !\n"; + cout << " Invalid element type for Gmsh volume Format !\n"; } diff --git a/libsrc/meshing/smoothing3.cpp b/libsrc/meshing/smoothing3.cpp index 7f5f3bf2..e16799dd 100644 --- a/libsrc/meshing/smoothing3.cpp +++ b/libsrc/meshing/smoothing3.cpp @@ -1584,7 +1584,7 @@ void Mesh :: ImproveMeshJacobian (const MeshingParameters & mp, if (goal == OPT_WORSTCASE && !badnodes.Test(i)) continue; - // (*testout) << "smoot p " << i << endl; + // (*testout) << "smooth p " << i << endl; /* if (multithread.terminate) @@ -1733,7 +1733,7 @@ void Mesh :: ImproveMeshJacobianOnSurface (const MeshingParameters & mp, if (goal == OPT_WORSTCASE && !badnodes.Test(i)) continue; - // (*testout) << "smoot p " << i << endl; + // (*testout) << "smooth p " << i << endl; /* if (multithread.terminate) diff --git a/libsrc/occ/Partition_Inter3d.cxx b/libsrc/occ/Partition_Inter3d.cxx index 9fe1641a..38787fbe 100644 --- a/libsrc/occ/Partition_Inter3d.cxx +++ b/libsrc/occ/Partition_Inter3d.cxx @@ -219,7 +219,7 @@ static void PutInBounds (const TopoDS_Face& F, gp_Pnt2d Pm = C2d->Value( Um ); // sometimes on shpere, pcurve is out of domain by V though S is - // UPeriodic, sometimes it is in domain but nontheless it has + // UPeriodic, sometimes it is in domain but nonetheless it has // wrong position. // Check pcurve position by 3D point if (S->IsKind(STANDARD_TYPE( Geom_SphericalSurface ))) @@ -526,7 +526,7 @@ void Partition_Inter3d::Inter3D(const TopoDS_Face& F1, C3d = new Geom_TrimmedCurve( C3d, umin, umax); pc = TopOpeBRepTool_CurveTool::MakePCurveOnFace (F,C3d,tol); if (pc.IsNull()) { - MESSAGE (" CANT BUILD PCURVE "); + MESSAGE (" CANNOT BUILD PCURVE "); } B.UpdateEdge( se, pc, F, tol); } diff --git a/libsrc/occ/Partition_Loop.cxx b/libsrc/occ/Partition_Loop.cxx index 7170dd64..25af5287 100644 --- a/libsrc/occ/Partition_Loop.cxx +++ b/libsrc/occ/Partition_Loop.cxx @@ -150,7 +150,7 @@ static Standard_Boolean SelectEdge(const TopoDS_Face& F, if (LE.Extent() > 1) { //-------------------------------------------------------------- // Several possible edges. - // - Test the edges differents of CE + // - Test the edge difference of CE //-------------------------------------------------------------- Standard_Real cf, cl, f, l; TopoDS_Face FForward = F; diff --git a/libsrc/occ/Partition_Loop2d.cxx b/libsrc/occ/Partition_Loop2d.cxx index 1baf1528..22740a58 100644 --- a/libsrc/occ/Partition_Loop2d.cxx +++ b/libsrc/occ/Partition_Loop2d.cxx @@ -156,7 +156,7 @@ static Standard_Real preciseU (const BRepAdaptor_Surface& theSurf, { // u for test u = u0 + du; - du *= 10; // for the next iteration: increase du untill du3d is large enough + du *= 10; // for the next iteration: increase du until du3d is large enough // find out how u is far from u0 in 3D gp_Pnt2d aP2d = theC->Value( u ); @@ -194,7 +194,7 @@ static Standard_Boolean SelectEdge(const BRepAdaptor_Surface& Surf, if (LE.Extent() > 1) { //-------------------------------------------------------------- // Several possible edges. - // - Test the edges differents of CE + // - Test the edge difference of CE //-------------------------------------------------------------- TopoDS_Face FForward = Surf.Face(); TopoDS_Edge aPrevNE; @@ -734,7 +734,7 @@ void Partition_Loop2d::Perform() } } } - // removal of doulbe edges can explode a wire into parts, + // removal of double edges can explode a wire into parts, // make new wires of them. // A Loop like previous one but without 2d check while ( !WEL.IsEmpty() ) { @@ -901,7 +901,8 @@ const TopTools_ListOfShape& Partition_Loop2d::NewFaces() const //======================================================================= //function : findEqual -//purpose : move wires form to pairs of wires build of the same edges +//purpose : move wires form to pairs of wires build of the +// same edges //======================================================================= static void findEqual (TopTools_ListOfShape& WL, diff --git a/libsrc/occ/Partition_Spliter.cxx b/libsrc/occ/Partition_Spliter.cxx index 6503880e..eb52af9d 100644 --- a/libsrc/occ/Partition_Spliter.cxx +++ b/libsrc/occ/Partition_Spliter.cxx @@ -874,7 +874,7 @@ TopoDS_Shape Partition_Spliter::FindFacesInside(const TopoDS_Shape& theShape, // ultimate list of internal faces TopTools_ListOfShape KeptFaces; - // add to MFP not split tool faces as well, they may be connected with + // add to MFP unsplit tool faces as well, they may be connected with // tool faces interfering with theShape for ( itm.Initialize(myMapTools); itm.More(); itm.Next() ) { const TopoDS_Shape& aToolFace = itm.Key(); @@ -1226,7 +1226,7 @@ TopoDS_Shape Partition_Spliter::MakeFaces (const TopoDS_Shape& S) // add splits to loops - // LE: old edges + new not splitted edges + // LE: old edges + new unsplit edges const TopTools_ListOfShape& LE = myAsDes->Descendant(F); for (itl.Initialize(LE); itl.More(); itl.Next()) { const TopoDS_Edge& E = TopoDS::Edge( itl.Value() ); @@ -1606,7 +1606,7 @@ void Partition_Spliter::MergeEqualEdges (const TopTools_ListOfShape& LSE) C3d = new Geom_TrimmedCurve( C3d, f,l); pc = TopOpeBRepTool_CurveTool::MakePCurveOnFace (F,C3d,tol); if (pc.IsNull()) { - MESSAGE (" CANT BUILD PCURVE "); + MESSAGE (" CANNOT BUILD PCURVE "); } myBuilder.UpdateEdge( EKeep, pc, F, tol); } @@ -1918,7 +1918,7 @@ Standard_Boolean Partition_Spliter::CheckTool(const TopoDS_Shape& S) } } if (hasNewE) { - // add new adges + // add new edges NEL = myAsDes->Descendant( F ); for ( itNE.Initialize( NEL ); itNE.More(); itNE.Next()) { TopTools_ListOfShape SEL; // splits diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index 7ce79d8c..14fa5374 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -669,7 +669,7 @@ namespace netgen PrintMessage (2, "Face ", k, " / ", mesh.GetNFD(), " (parameter space projection)"); if (surfmesherror) - cout << "Surface meshing error occured before (in " << surfmesherror << " faces)" << endl; + cout << "Surface meshing error occurred before (in " << surfmesherror << " faces)" << endl; // Meshing2OCCSurfaces meshing(f2, bb); meshing.SetStartTime (starttime); @@ -855,7 +855,7 @@ namespace netgen if (surfmesherror) { cout << "WARNING! NOT ALL FACES HAVE BEEN MESHED" << endl; - cout << "SURFACE MESHING ERROR OCCURED IN " << surfmesherror << " FACES:" << endl; + cout << "SURFACE MESHING ERROR OCCURRED IN " << surfmesherror << " FACES:" << endl; for (int i = 1; i <= geom.fmap.Extent(); i++) if (geom.facemeshstatus[i-1] == -1) { diff --git a/libsrc/occ/occgeom.cpp b/libsrc/occ/occgeom.cpp index 45b44c09..d8aeff4a 100644 --- a/libsrc/occ/occgeom.cpp +++ b/libsrc/occ/occgeom.cpp @@ -1168,7 +1168,7 @@ void STEP_GetEntityName(const TopoDS_Shape & theShape, STEPCAFControl_Reader * a } - // For the IGES Reader, all the shapes can be exported as one compund shape + // For the IGES Reader, all the shapes can be exported as one compound shape // using the "OneShape" member occgeo->shape = reader.OneShape(); occgeo->face_colours = iges_colour_contents; @@ -1563,7 +1563,7 @@ void STEP_GetEntityName(const TopoDS_Shape & theShape, STEPCAFControl_Reader * a if (!stretchedpinfaces++) str << "StretchedPinFace {Stretched pin face} "; - (*testout) << "Face " << i << " is a streched pin" << endl; + (*testout) << "Face " << i << " is a stretched pin" << endl; str << "StretchedPinFace/Face" << i << " "; str << "{Face " << i << " } "; } diff --git a/libsrc/occ/utilities.h b/libsrc/occ/utilities.h index 8cb9e305..e2348ec6 100644 --- a/libsrc/occ/utilities.h +++ b/libsrc/occ/utilities.h @@ -26,7 +26,7 @@ // Module : SALOME // $Header: /cvs/netgen/netgen/libsrc/occ/utilities.h,v 1.3 2008/03/31 14:20:28 wabro Exp $ -/* --- Definition macros file to print informations if _DEBUG_ is defined --- */ +/* --- Definition macros file to print information if _DEBUG_ is defined --- */ #ifndef UTILITIES_H #define UTILITIES_H