From: luz paz
Date: Sat, 30 Jul 2022 02:55:24 +0000 (-0400)
Subject: Fix various typos
X-Git-Tag: v9.5.0-rc1~1055^2~1
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc0f89863c7a9c7f9d50d66ad7c2e06399e3a674;p=dealii.git
Fix various typos
Fix typos found in source/, include/, and doc/
Found via `codespell -q 3 -S ./bundled,./doc/news -L ba,commend,nd,pres,ro,rotat,stoer,workd`
---
diff --git a/doc/developers/testsuite.html b/doc/developers/testsuite.html
index 55f0b4c812..1442d73162 100644
--- a/doc/developers/testsuite.html
+++ b/doc/developers/testsuite.html
@@ -640,7 +640,7 @@ category/test.expect=run.output
- The testsuite also suppors the special file ending
+ The testsuite also supports the special file ending
.run_only
that indicates that the diff stage should be
skipped in order to reach the PASSED
stage. You can
specify the keyword by changing the file ending from
diff --git a/doc/doxygen/headers/automatic_and_symbolic_differentiation.h b/doc/doxygen/headers/automatic_and_symbolic_differentiation.h
index 42368c46e1..73cbd8fcc5 100644
--- a/doc/doxygen/headers/automatic_and_symbolic_differentiation.h
+++ b/doc/doxygen/headers/automatic_and_symbolic_differentiation.h
@@ -200,7 +200,7 @@
*
* With the aid of the diagram below (it and some of the listed details courtesy of this
* Wikipedia article),
- * let us think about the represention of the calculation of the function
+ * let us think about the representation of the calculation of the function
* $f (\mathbf{x}) = \sin (x_{1}) + x_{1} x_{2}$ and its derivatives:
*
*
diff --git a/doc/users/cmake_dealii.html b/doc/users/cmake_dealii.html
index 72eec1dba7..799e3f5f78 100644
--- a/doc/users/cmake_dealii.html
+++ b/doc/users/cmake_dealii.html
@@ -423,7 +423,7 @@ library - builds and installs the 'library' component
you want to override this behavior, please set the C++ standard
directly for example by configuring with
-DDEAL_II_CXX_FLAGS="-std=c++17"
, or by setting the
- environement variable CXXFLAGS="-std=c++17"
.
+ environment variable CXXFLAGS="-std=c++17"
.
Similarly, for enabling SIMD vectorization support, you have to set
an appropriate target architecture via -march=...
, for
diff --git a/include/deal.II/cgal/triangulation.h b/include/deal.II/cgal/triangulation.h
index 3bc434f5de..4a21a41489 100644
--- a/include/deal.II/cgal/triangulation.h
+++ b/include/deal.II/cgal/triangulation.h
@@ -368,7 +368,7 @@ namespace CGALWrappers
// This is a degenerate Triangulation_2, made of edges
for (const auto &e : cgal_triangulation.finite_edges())
{
- // An edge is idendified by a face and a vertex index in the
+ // An edge is identified by a face and a vertex index in the
// face
const auto & f = e.first;
const auto & i = e.second;
@@ -408,7 +408,7 @@ namespace CGALWrappers
// This is a degenerate Triangulation_3, made of triangles
for (const auto &facet : cgal_triangulation.finite_facets())
{
- // A facet is idenfied by a cell and the opposite vertex index
+ // A facet is identified by a cell and the opposite vertex index
// in the face
const auto & c = facet.first;
const auto & i = facet.second;
@@ -430,7 +430,7 @@ namespace CGALWrappers
// This is a degenerate Triangulation_3, made of edges
for (const auto &edge : cgal_triangulation.finite_edges())
{
- // An edge is idenfied by a cell and its two vertices
+ // An edge is identified by a cell and its two vertices
const auto &[c, i, j] = edge;
CellData cell(ReferenceCells::Line.n_vertices());
cell.vertices[0] = vertex_map[c->vertex(i)];
diff --git a/include/deal.II/fe/mapping.h b/include/deal.II/fe/mapping.h
index 9335dce1d2..ab85730c03 100644
--- a/include/deal.II/fe/mapping.h
+++ b/include/deal.II/fe/mapping.h
@@ -134,7 +134,7 @@ enum MappingKind
/**
* The mappings for 2-forms and third order tensors.
*
- * These are mappings typpically applied to hessians transformed to the
+ * These are mappings typically applied to hessians transformed to the
* reference cell.
*
* Mapping of the hessian of a covariant vector field (see
diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h
index b990e26c3e..ae36c0c9b8 100644
--- a/include/deal.II/grid/tria.h
+++ b/include/deal.II/grid/tria.h
@@ -4067,7 +4067,7 @@ private:
reset_active_cell_indices();
/**
- * Reset global cell ids and globale level cell ids.
+ * Reset global cell ids and global level cell ids.
*/
void
reset_global_cell_indices();
diff --git a/include/deal.II/lac/read_write_vector.templates.h b/include/deal.II/lac/read_write_vector.templates.h
index d7587f5712..6972b59584 100644
--- a/include/deal.II/lac/read_write_vector.templates.h
+++ b/include/deal.II/lac/read_write_vector.templates.h
@@ -252,7 +252,7 @@ namespace LinearAlgebra
if (omit_zeroing_entries == false)
this->operator=(Number());
- // reset the communication patter
+ // reset the communication pattern
source_stored_elements.clear();
comm_pattern.reset();
}
@@ -272,7 +272,7 @@ namespace LinearAlgebra
if (omit_zeroing_entries == false)
this->operator=(Number());
- // reset the communication patter
+ // reset the communication pattern
source_stored_elements.clear();
comm_pattern.reset();
}
diff --git a/include/deal.II/matrix_free/matrix_free.h b/include/deal.II/matrix_free/matrix_free.h
index 1c1748ddd2..2947626c3e 100644
--- a/include/deal.II/matrix_free/matrix_free.h
+++ b/include/deal.II/matrix_free/matrix_free.h
@@ -503,7 +503,7 @@ public:
* Such an example is "local time stepping", where cells of different
* caterogries progress with different time-step sizes and, as a
* consequence, can only processed together with cells with the same
- * cateogry.
+ * category.
*
* This array is accessed by the number given by cell->active_cell_index()
* when working on the active cells (with
diff --git a/include/deal.II/non_matching/fe_immersed_values.h b/include/deal.II/non_matching/fe_immersed_values.h
index b9163c620c..8ee37ac395 100644
--- a/include/deal.II/non_matching/fe_immersed_values.h
+++ b/include/deal.II/non_matching/fe_immersed_values.h
@@ -76,7 +76,7 @@ namespace NonMatching
reinit(const typename Triangulation::cell_iterator &cell);
/**
- * Reinitialize quantitites (shape function values, gradients, etc) for the
+ * Reinitialize quantities (shape function values, gradients, etc) for the
* given cell of type "iterator into a DoFHandler object", and the finite
* element associated with this object.
*/
diff --git a/include/deal.II/opencascade/utilities.h b/include/deal.II/opencascade/utilities.h
index 6701c4cdbc..f651081bab 100644
--- a/include/deal.II/opencascade/utilities.h
+++ b/include/deal.II/opencascade/utilities.h
@@ -142,7 +142,7 @@ namespace OpenCASCADE
* mesh it automatically. We remark that the automatic mesh generation in
* OpenCASCADE takes care only of the geometrical resemblance between the
* shape and the mesh, to control the shape and regularity of the triangles
- * you should use other meshing softwares. The two arguments `deflection` and
+ * you should use other meshing software. The two arguments `deflection` and
* `angular_deflection` select the accuracy of the created triangulation with
* respect to the original topological shape. The argument
* `sew_different_faces` gives the possibility to use a Sewer from OpenCASCADE
diff --git a/include/deal.II/optimization/line_minimization.h b/include/deal.II/optimization/line_minimization.h
index 4b00292e36..65e2587492 100644
--- a/include/deal.II/optimization/line_minimization.h
+++ b/include/deal.II/optimization/line_minimization.h
@@ -251,7 +251,7 @@ namespace LineMinimization
*
* // Next we can write a function to determine if taking the full Newton
* // step is a good idea or not (i.e. if it offers good convergence
- * // characterisics). This function calls the one we defined above,
+ * // characteristics). This function calls the one we defined above,
* // and actually only performs the line search if an early exit
* // criterion is not met.
* auto perform_linesearch = [&]()
diff --git a/include/deal.II/particles/data_out.h b/include/deal.II/particles/data_out.h
index 492e4120cd..0f127a7e6a 100644
--- a/include/deal.II/particles/data_out.h
+++ b/include/deal.II/particles/data_out.h
@@ -35,7 +35,7 @@ namespace Particles
* This class generates graphical output for the particles stored by a
* ParticleHandler object. From a particle handler, it generates patches which
* can then be used to write traditional output files. This class currently
- * only supports witing the particle position and their ID and does not allow
+ * only supports writing the particle position and their ID and does not allow
* to write the properties attached to the particles
*
* @ingroup Particle
diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc
index 316e40271d..7da508bf49 100644
--- a/source/base/parameter_handler.cc
+++ b/source/base/parameter_handler.cc
@@ -304,7 +304,7 @@ namespace
(is_parameter_node(b.second) || is_alias_node(b.second));
// If a is a parameter/alias and b is a subsection,
- // a should go first, and viceversa.
+ // a should go first, and vice-versa.
if (a_is_param && !b_is_param)
return true;
diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc
index 4c23803e72..f8ba6206eb 100644
--- a/source/distributed/tria.cc
+++ b/source/distributed/tria.cc
@@ -585,7 +585,7 @@ namespace
public:
/**
- * Callback exectuted before point function. Last argument is always
+ * Callback executed before point function. Last argument is always
* nullptr.
*
* @return `int` interpreted as a C "bool". Zero means "stop the recursion".
diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc
index 010f40f178..34986fd390 100644
--- a/source/dofs/dof_handler_policy.cc
+++ b/source/dofs/dof_handler_policy.cc
@@ -788,7 +788,7 @@ namespace internal
(typename DoFHandler::ExcOnlyAvailableWithHP()));
// this function should only be called for dim<3 where there are
- // no quad dof identies. for dim==3, the specialization below should
+ // no quad dof identities. for dim==3, the specialization below should
// take care of it
Assert(dim < 3, ExcInternalError());
@@ -1518,7 +1518,7 @@ namespace internal
(typename DoFHandler::ExcOnlyAvailableWithHP()));
// this function should only be called for dim<3 where there are
- // no quad dof identies. for dim>=3, the specialization below should
+ // no quad dof identities. for dim>=3, the specialization below should
// take care of it
Assert(dim < 3, ExcInternalError());
}
diff --git a/source/fe/fe_system.cc b/source/fe/fe_system.cc
index 2e7f0fd5e5..d74476d1a8 100644
--- a/source/fe/fe_system.cc
+++ b/source/fe/fe_system.cc
@@ -1535,7 +1535,7 @@ void
FESystem::build_interface_constraints()
{
// check whether all base elements implement their interface constraint
- // matrices. if this is not the case, then leave the interface costraints of
+ // matrices. if this is not the case, then leave the interface constraints of
// this composed element empty as well; however, the rest of the element is
// usable
for (unsigned int base = 0; base < this->n_base_elements(); ++base)
diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc
index b94f8c147a..de63f709d9 100644
--- a/source/grid/grid_tools.cc
+++ b/source/grid/grid_tools.cc
@@ -6443,7 +6443,7 @@ namespace GridTools
std::map> &coinciding_vertex_groups,
std::map &vertex_to_coinciding_vertex_group)
{
- // 1) determine for each vertex a vertex it concides with and
+ // 1) determine for each vertex a vertex it coincides with and
// put it into a map
{
static const int lookup_table_2d[2][2] =
diff --git a/source/grid/grid_tools_nontemplates.cc b/source/grid/grid_tools_nontemplates.cc
index 47cc52915e..67d09e0a9f 100644
--- a/source/grid/grid_tools_nontemplates.cc
+++ b/source/grid/grid_tools_nontemplates.cc
@@ -96,7 +96,7 @@ namespace GridTools
# C(measure, optimized);
- additional optimizaton: divide by 2 only one time
+ additional optimization: divide by 2 only one time
*/
const double x[4] = {all_vertices[vertex_indices[0]](0),
diff --git a/source/grid/tria.cc b/source/grid/tria.cc
index eaa30ee9eb..7c94de04ef 100644
--- a/source/grid/tria.cc
+++ b/source/grid/tria.cc
@@ -13288,7 +13288,7 @@ Triangulation::end(const unsigned int level) const
{
// This function may be called on parallel triangulations on levels
// that exist globally, but not on the local portion of the
- // triangulation. In that case, just retrn the end iterator.
+ // triangulation. In that case, just return the end iterator.
//
// We need to use levels.size() instead of n_levels() because the
// latter function uses the cache, but we need to be able to call
diff --git a/source/lac/cuda_vector.cu b/source/lac/cuda_vector.cu
index d9f6cc4f74..44288c755d 100644
--- a/source/lac/cuda_vector.cu
+++ b/source/lac/cuda_vector.cu
@@ -592,7 +592,7 @@ namespace LinearAlgebra
Assert(dynamic_cast *>(&W) != nullptr,
ExcVectorTypeNotCompatible());
- // Downcast V and W. If it fails, throw an exceptiion.
+ // Downcast V and W. If it fails, throw an exception.
const Vector &down_V = dynamic_cast &>(V);
Assert(down_V.size() == this->size(),
ExcMessage("Vector V has the wrong size."));
diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc
index 775af7a13e..a89e5484dc 100644
--- a/source/opencascade/utilities.cc
+++ b/source/opencascade/utilities.cc
@@ -867,7 +867,7 @@ namespace OpenCASCADE
Standard_Real Max_Curvature = props.MaxCurvature();
Tensor<1, 3> normal = Point<3>(Normal.X(), Normal.Y(), Normal.Z());
- // In the case your manifold changes from convex to concave or viceversa
+ // In the case your manifold changes from convex to concave or vice-versa
// the normal could jump from "inner" to "outer" normal.
// However, you should be able to change the normal sense preserving
// the manifold orientation:
diff --git a/source/particles/generators.cc b/source/particles/generators.cc
index 18447fa257..f90e93dcf3 100644
--- a/source/particles/generators.cc
+++ b/source/particles/generators.cc
@@ -361,7 +361,7 @@ namespace Particles
std::llround(static_cast(n_particles_to_create) *
local_start_weight / global_weight_integral);
- // Calcualate number of local particles
+ // Calculate number of local particles
const types::particle_index end_particle_id =
std::llround(static_cast(n_particles_to_create) *
((local_start_weight + local_weight_integral) /