From 3230021dece1e29996c5a99fa2ec88f68511636b Mon Sep 17 00:00:00 2001 From: luz paz Date: Tue, 6 Sep 2022 19:43:32 -0400 Subject: [PATCH] Fix typos Found via `codespell` --- libsrc/csg/polyhedra.cpp | 4 ++-- libsrc/csg/specpoin.cpp | 2 +- libsrc/general/mpi_interface.hpp | 6 +++--- libsrc/geom2d/spline2d.hpp | 2 +- libsrc/gprim/spline.hpp | 2 +- libsrc/meshing/meshfunc.cpp | 2 +- libsrc/occ/Partition_Inter2d.cxx | 2 +- libsrc/occ/Partition_Spliter.cxx | 6 +++--- libsrc/occ/occmeshsurf.cpp | 2 +- libsrc/occ/python_occ_shapes.cpp | 4 ++-- libsrc/stlgeom/stltool.cpp | 2 +- ng/Togl2.1/aclocal.m4 | 4 ++-- ng/Togl2.1/configure | 4 ++-- ng/Togl2.1/togl.c | 4 ++-- 14 files changed, 23 insertions(+), 23 deletions(-) diff --git a/libsrc/csg/polyhedra.cpp b/libsrc/csg/polyhedra.cpp index 7db4f94c..93ec0746 100644 --- a/libsrc/csg/polyhedra.cpp +++ b/libsrc/csg/polyhedra.cpp @@ -272,7 +272,7 @@ namespace netgen if (printing) *testout << "lam = " << lam1 << " " << lam2 << " " << lam3 << endl; if (lam1 >= -eps_base1 && lam2 >= -eps_base1 && lam3 >= -eps_base1) - { // point is close to trianlge, perturbe by alpha*v + { // point is close to triangle, perturbed by alpha*v double dlamn = face.nn*v; if (fabs(dlamn) < 1e-8) // vec also in plane @@ -540,7 +540,7 @@ namespace netgen double lam3 = 1-lam1-lam2; if (lam1 >= -eps_base1 && lam2 >= -eps_base1 && lam3 >= -eps_base1) - { // point is close to trianlge, perturbe by alpha*v + { // point is close to triangle, perturbed by alpha*v double dlamn = face.nn*v; if (fabs(dlamn) < 1e-8) // vec also in plane diff --git a/libsrc/csg/specpoin.cpp b/libsrc/csg/specpoin.cpp index 286115a3..b99e054c 100644 --- a/libsrc/csg/specpoin.cpp +++ b/libsrc/csg/specpoin.cpp @@ -21,7 +21,7 @@ namespace netgen { - DLL_HEADER NgArray > boxes; // for visualizaton + DLL_HEADER NgArray > boxes; // for visualization void ProjectToEdge (const Surface * f1, const Surface * f2, Point<3> & hp); diff --git a/libsrc/general/mpi_interface.hpp b/libsrc/general/mpi_interface.hpp index 40b8396d..3faebcba 100644 --- a/libsrc/general/mpi_interface.hpp +++ b/libsrc/general/mpi_interface.hpp @@ -93,7 +93,7 @@ namespace netgen } template - [[deprecated("use ngcore - Array insterad")]] + [[deprecated("use ngcore - Array instead")]] inline void MyMPI_Recv ( NgArray & s, int src, int tag, MPI_Comm comm) { MPI_Status status; @@ -106,7 +106,7 @@ namespace netgen } template - [[deprecated("use ngcore - Array insterad")]] + [[deprecated("use ngcore - Array instead")]] inline int MyMPI_Recv ( NgArray & s, int tag, MPI_Comm comm) { MPI_Status status; @@ -141,7 +141,7 @@ namespace netgen template [[deprecated("mympi_isend ngflatarray, use comm.send instead")]] - [[deprecated("use ngcore - Array insterad")]] + [[deprecated("use ngcore - Array instead")]] inline MPI_Request MyMPI_ISend (NgFlatArray s, int dest, int tag, MPI_Comm comm) { MPI_Request request; diff --git a/libsrc/geom2d/spline2d.hpp b/libsrc/geom2d/spline2d.hpp index 7f52bdf4..dadd793e 100644 --- a/libsrc/geom2d/spline2d.hpp +++ b/libsrc/geom2d/spline2d.hpp @@ -88,7 +88,7 @@ public: virtual void GetPoints (int n, NgArray > & points); /** calculates lineintersections: - for lines $$ a x + b y + c = 0 $$ the interecting points are calculated + for lines $$ a x + b y + c = 0 $$ the intersecting points are calculated and stored in points */ virtual void LineIntersections (const double a, const double b, const double c, NgArray < Point<2> > & points, const double eps) const diff --git a/libsrc/gprim/spline.hpp b/libsrc/gprim/spline.hpp index 9f671077..2359a756 100644 --- a/libsrc/gprim/spline.hpp +++ b/libsrc/gprim/spline.hpp @@ -100,7 +100,7 @@ namespace netgen virtual void GetPoints (int n, NgArray > & points) const; /** calculates (2D) lineintersections: - for lines $$ a x + b y + c = 0 $$ the interecting points are calculated + for lines $$ a x + b y + c = 0 $$ the intersecting points are calculated and stored in points */ virtual void LineIntersections (const double a, const double b, const double c, NgArray < Point > & points, const double eps) const diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index d942f111..3e4aab21 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -213,7 +213,7 @@ namespace netgen for(auto & sel : mesh.OpenElements()) { // For quads: check if this open element is already closed by a hex - // this happends when we have identifications in two directions + // this happens when we have identifications in two directions if(sel.GetNP() == 4) { Element2d face = sel; diff --git a/libsrc/occ/Partition_Inter2d.cxx b/libsrc/occ/Partition_Inter2d.cxx index 90f429cb..7fed573b 100644 --- a/libsrc/occ/Partition_Inter2d.cxx +++ b/libsrc/occ/Partition_Inter2d.cxx @@ -157,7 +157,7 @@ static Standard_Boolean findVOnE(const TopoDS_Vertex & theV, // Check that vertex equal to V already exists on one // of edges, in such a case, V is not added but // existing vertex is updated to be on E1 and E2 and -// is returned insead of V. +// is returned instead of V. //======================================================================= TopoDS_Vertex Partition_Inter2d::AddVonE(const TopoDS_Vertex& theV, diff --git a/libsrc/occ/Partition_Spliter.cxx b/libsrc/occ/Partition_Spliter.cxx index f409a993..1263909e 100644 --- a/libsrc/occ/Partition_Spliter.cxx +++ b/libsrc/occ/Partition_Spliter.cxx @@ -1080,7 +1080,7 @@ void Partition_Spliter::MakeShells(const TopoDS_Shape& S, //function : findEqual //purpose : compare edges of EL1 against edges of EL2, // Result is in EMM binding EL1 edges to list of equal edges. -// Edges are considered equall only if they have same vertices. +// Edges are considered equal only if they have same vertices. // ==True makes consider same edges as equal // Put in all equal edges //======================================================================= @@ -1486,7 +1486,7 @@ void Partition_Spliter::MakeEdges (const TopoDS_Edge& E, //---------------------------------------------------------------- - // Construction of the new edges . + // Construction of the new edges. //---------------------------------------------------------------- if (VF.IsSame(VL)) { // closed edge @@ -1501,7 +1501,7 @@ void Partition_Spliter::MakeEdges (const TopoDS_Edge& E, else if (endV.IsSame(SV.Last())) SV.Prepend(endV); else - MESSAGE ("END VERTEX IS IN SEQUNCE MIDDLE"); + MESSAGE ("END VERTEX IS IN SEQUENCE MIDDLE"); } NbVer = SV.Length(); } diff --git a/libsrc/occ/occmeshsurf.cpp b/libsrc/occ/occmeshsurf.cpp index 015d4abe..a4eaff83 100644 --- a/libsrc/occ/occmeshsurf.cpp +++ b/libsrc/occ/occmeshsurf.cpp @@ -360,7 +360,7 @@ namespace netgen void OCCSurface :: Project (Point<3> & ap, PointGeomInfo & gi) { static Timer t("OccSurface::Project"); RegionTimer reg(t); - static Timer t2("OccSurface::Project actural"); + static Timer t2("OccSurface::Project actual"); // try Newton's method ... diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 432ec531..05281a9c 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -2227,7 +2227,7 @@ deg_min : int Minimum polynomial degree of splines deg_max : int - Maxmium polynomial degree of splines + Maximum polynomial degree of splines continuity : ShapeContinuity Continuity requirement on the approximating surface @@ -2345,7 +2345,7 @@ deg_min : int Minimum polynomial degree of splines deg_max : int - Maxmium polynomial degree of splines + Maximum polynomial degree of splines continuity : ShapeContinuity Continuity requirement on the approximating surface diff --git a/libsrc/stlgeom/stltool.cpp b/libsrc/stlgeom/stltool.cpp index 8839935a..d2377cb1 100644 --- a/libsrc/stlgeom/stltool.cpp +++ b/libsrc/stlgeom/stltool.cpp @@ -1162,7 +1162,7 @@ bool STLBoundary :: TestSeg(const Point<3>& p1, const Point<3> & p2, const Vec<3 /* (*testout) << "TestSeg-calls for classes:" << endl; (*testout) << cnti << " inner calls, " << cnto << " outercalls" << endl; - (*testout) << "total testes segments: " << cntsegs << endl; + (*testout) << "total tested segments: " << cntsegs << endl; for (i = 1; i <= cntclass.Size(); i++) { (*testout) << int (exp (i * log(2.0))) << " bnd segs: " << cntclass.Get(i) << endl; diff --git a/ng/Togl2.1/aclocal.m4 b/ng/Togl2.1/aclocal.m4 index 3a839212..6fdd332b 100644 --- a/ng/Togl2.1/aclocal.m4 +++ b/ng/Togl2.1/aclocal.m4 @@ -48,7 +48,7 @@ AC_DEFUN(TOGL_ENABLE_STUBS, [ #------------------------------------------------------------------------ # TOGL_UNDEF_GET_PROC_ADDRESS -- # -# Does defining GLX_GLXEXT_LEGACY interfer with including GL/glxext.h? +# Does defining GLX_GLXEXT_LEGACY interfere with including GL/glxext.h? # # Arguments: # none @@ -59,7 +59,7 @@ AC_DEFUN(TOGL_ENABLE_STUBS, [ # #------------------------------------------------------------------------ AC_DEFUN(TOGL_UNDEF_GET_PROC_ADDRESS, [ - AC_MSG_CHECKING([if GLX_GLXEXT_LEGACY interfers with including GL/glxext.h]) + AC_MSG_CHECKING([if GLX_GLXEXT_LEGACY interferes with including GL/glxext.h]) AC_LANG_PUSH(C) ac_save_CFLAGS=$CFLAGS CFLAGS=$TK_XINCLUDES diff --git a/ng/Togl2.1/configure b/ng/Togl2.1/configure index e11028e9..08b05afd 100755 --- a/ng/Togl2.1/configure +++ b/ng/Togl2.1/configure @@ -6028,8 +6028,8 @@ fi LIBGLU=-lGLU - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GLX_GLXEXT_LEGACY interfers with including GL/glxext.h" >&5 -$as_echo_n "checking if GLX_GLXEXT_LEGACY interfers with including GL/glxext.h... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GLX_GLXEXT_LEGACY interferes with including GL/glxext.h" >&5 +$as_echo_n "checking if GLX_GLXEXT_LEGACY interferes with including GL/glxext.h... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' diff --git a/ng/Togl2.1/togl.c b/ng/Togl2.1/togl.c index 290f5cef..35ab8356 100644 --- a/ng/Togl2.1/togl.c +++ b/ng/Togl2.1/togl.c @@ -5018,7 +5018,7 @@ Togl_Frustum(const Togl *togl, GLdouble left, GLdouble right, eyeOffset = togl->EyeSeparation / 2; /* for right eye */ eyeShift = (togl->Convergence - zNear) * (eyeOffset / togl->Convergence); - /* compenstate for altered viewports */ + /* compensate for altered viewports */ switch (togl->Stereo) { default: break; @@ -5053,7 +5053,7 @@ Togl_Ortho(const Togl *togl, GLdouble left, GLdouble right, eyeOffset = togl->EyeSeparation / 2; /* for right eye */ eyeShift = (togl->Convergence - zNear) * (eyeOffset / togl->Convergence); - /* compenstate for altered viewports */ + /* compensate for altered viewports */ switch (togl->Stereo) { default: break;