]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Typo configuration
authorRene Gassmoeller <rene.gassmoeller@mailbox.org>
Mon, 12 Aug 2024 19:00:56 +0000 (13:00 -0600)
committerRene Gassmoeller <rene.gassmoeller@mailbox.org>
Mon, 12 Aug 2024 23:06:24 +0000 (17:06 -0600)
89 files changed:
.github/workflows/typos.yml [new file with mode: 0644]
.typos.toml [new file with mode: 0644]
doc/news/5.1.0-vs-5.2.0.h
doc/news/8.4.2-vs-8.5.0.h
doc/news/8.5.0-vs-9.0.0.h
doc/news/9.3.3-vs-9.4.0.h
doc/news/changes/minor/20240812Gassmoeller [new file with mode: 0644]
examples/step-83/doc/intro.dox
examples/step-83/doc/results.dox
include/deal.II/base/time_stepping.h
include/deal.II/grid/reference_cell.h
include/deal.II/lac/petsc_ts.templates.h
include/deal.II/lac/trilinos_tpetra_precondition.h
tests/arpack/arpack_advection_diffusion.cc
tests/arpack/parpack_advection_diffusion_petsc.cc
tests/arpack/parpack_advection_diffusion_trilinos.cc
tests/base/derivative_form_trivial_copy.cc
tests/base/polynomial_minus_equals.cc
tests/base/replace_in_string_01.cc
tests/bits/iterators_01.cc
tests/boost/node_visitor_01.cc
tests/cgal/cgal_mesh_criteria.cc
tests/codim_one/fe_dgq_prolongation_01.cc
tests/distributed_grids/2d_refinement_10.cc
tests/distributed_grids/2d_refinement_10.output
tests/distributed_grids/3d_refinement_12.cc
tests/distributed_grids/3d_refinement_12.output
tests/dofs/dof_constraints_11_x.cc
tests/fe/br_approximation_01.cc
tests/fe/fe_conformity_test.h
tests/fe/rt_approximation_01.cc
tests/full_matrix/complex_real_full_matrix_09.cc
tests/full_matrix/full_matrix_66.cc
tests/grid/torus_01.cc
tests/hp/fe_nothing_18.cc
tests/hp/identity_constraints_01.cc
tests/hp/identity_constraints_01.output
tests/hp/identity_constraints_02.cc
tests/hp/identity_constraints_02.output
tests/integrators/assembler_simple_mgmatrix_04.cc
tests/lac/constrained_linear_operator_01.cc
tests/lac/diagonal_matrix_02.cc
tests/mappings/mapping_get_vertices_on_face.cc
tests/mappings/mapping_q_cache_05.cc
tests/mappings/mapping_q_cache_06.cc
tests/mappings/mapping_q_cache_07.cc
tests/matrix_free/face_to_cell_index_nodal_simplex.cc
tests/matrix_free/hp_dg_01.cc
tests/matrix_free/matrix_vector_rt_01.cc
tests/matrix_free/matrix_vector_rt_face_01.cc
tests/mpi/derivative_approximation_01.cc
tests/mpi/petsc_distribute_01_inhomogeneous.cc [moved from tests/mpi/petsc_distribute_01_inhomogenous.cc with 100% similarity]
tests/mpi/petsc_distribute_01_inhomogeneous.with_petsc=true.mpirun=1.output [moved from tests/mpi/petsc_distribute_01_inhomogenous.with_petsc=true.mpirun=1.output with 100% similarity]
tests/mpi/petsc_distribute_01_inhomogeneous.with_petsc=true.mpirun=10.output [moved from tests/mpi/petsc_distribute_01_inhomogenous.with_petsc=true.mpirun=10.output with 100% similarity]
tests/mpi/petsc_distribute_01_inhomogeneous.with_petsc=true.mpirun=2.output [moved from tests/mpi/petsc_distribute_01_inhomogenous.with_petsc=true.mpirun=2.output with 100% similarity]
tests/mpi/petsc_distribute_01_inhomogeneous.with_petsc=true.mpirun=4.output [moved from tests/mpi/petsc_distribute_01_inhomogenous.with_petsc=true.mpirun=4.output with 100% similarity]
tests/mpi/trilinos_distribute_01_inhomogeneous.cc [moved from tests/mpi/trilinos_distribute_01_inhomogenous.cc with 100% similarity]
tests/mpi/trilinos_distribute_01_inhomogeneous.with_trilinos=true.mpirun=1.output [moved from tests/mpi/trilinos_distribute_01_inhomogenous.with_trilinos=true.mpirun=1.output with 100% similarity]
tests/mpi/trilinos_distribute_01_inhomogeneous.with_trilinos=true.mpirun=10.output [moved from tests/mpi/trilinos_distribute_01_inhomogenous.with_trilinos=true.mpirun=10.output with 100% similarity]
tests/mpi/trilinos_distribute_01_inhomogeneous.with_trilinos=true.mpirun=2.output [moved from tests/mpi/trilinos_distribute_01_inhomogenous.with_trilinos=true.mpirun=2.output with 100% similarity]
tests/mpi/trilinos_distribute_01_inhomogeneous.with_trilinos=true.mpirun=4.output [moved from tests/mpi/trilinos_distribute_01_inhomogenous.with_trilinos=true.mpirun=4.output with 100% similarity]
tests/multigrid-global-coarsening/global_id_01.cc
tests/multigrid/transfer_system_01.cc
tests/multigrid/transfer_system_02.cc
tests/multigrid/transfer_system_03.cc
tests/multigrid/transfer_system_04.cc
tests/multigrid/transfer_system_adaptive_01.cc
tests/multigrid/transfer_system_adaptive_02.cc
tests/multigrid/transfer_system_adaptive_03.cc
tests/multigrid/transfer_system_adaptive_04.cc
tests/multigrid/transfer_system_adaptive_05.cc
tests/multigrid/transfer_system_adaptive_06.cc
tests/multigrid/transfer_system_adaptive_07.cc
tests/multigrid/transfer_system_adaptive_08.cc
tests/non_matching/mesh_classifier.cc
tests/non_matching/mesh_classifier.with_lapack=on.output
tests/parameter_handler/prm/parameter_handler_26_fail.json
tests/parameter_handler/prm/parameter_handler_26_fail.prm
tests/particles/property_pool_03.cc
tests/performance/timing_matrix_free_kokkos.cc
tests/petsc/step-77-snes.cc
tests/petsc_complex/00.cc
tests/remote_point_evaluation/data_out_resample_01.cc
tests/remote_point_evaluation/data_out_resample_02.cc
tests/simplex/mapping_fe_fields_02.cc
tests/simplex/orientation_04.cc
tests/tensors/constexpr_tensor.cc
tests/tensors/symmetric_tensor_trivial_copy.cc
tests/tensors/tensor_trivial_copy.cc

diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml
new file mode 100644 (file)
index 0000000..760528c
--- /dev/null
@@ -0,0 +1,62 @@
+name: Spell Check with Typos
+on:
+  push:
+    branches:
+      - 'master'
+  pull_request:
+
+concurrency:
+  group: ${{ github.actor }}-${{ github.ref }}-typos
+  cancel-in-progress: true
+
+permissions: write-all
+
+jobs:
+  typos-check:
+    name: Check for new typos
+    runs-on: ubuntu-latest
+    timeout-minutes: 5
+    steps:
+      - name: Checkout the Checkout Actions Repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+      - name: Check spelling with typos
+        env:
+          GH_TOKEN: "${{ github.token }}"
+        run: |
+          mkdir -p "${{ runner.temp }}/typos"
+          wget --secure-protocol=TLSv1_3 --max-redirect=1 --retry-on-host-error --retry-connrefused --tries=3 \
+            --quiet --output-document=- "https://github.com/crate-ci/typos/releases/download/v1.19.0/typos-v1.19.0-x86_64-unknown-linux-musl.tar.gz" \
+            | tar -xz -C "${{ runner.temp }}/typos" ./typos
+          "${{ runner.temp }}/typos/typos" --version
+
+          "${{ runner.temp }}/typos/typos" --config .typos.toml --format json doc examples include source tests >> ${{ runner.temp }}/typos.jsonl || true
+      - name: Update repo with fixable typos
+        uses: crate-ci/typos@v1.19.0
+        with:
+          write_changes: true
+          config: ./.typos.toml
+          files: doc examples include source tests
+      - name: Store typos diff file
+        run:  git diff > changes-typos.diff
+      - name: archive typos results
+        uses: actions/upload-artifact@v4
+        with:
+          name: changes-typos.diff
+          path: changes-typos.diff
+      - name: Report typos as warnings
+        run: |
+          python -c '
+          import sys, json
+          old = set()
+          clean = True
+          with open(sys.argv[1]) as file:
+            for line in file:
+              new = json.loads(line)
+              if new["type"] == "typo":
+                clean = False
+                print("::warning file={},line={},col={}::perhaps \"{}\" should be \"{}\".".format(
+                  new["path"], new["line_num"], new["byte_offset"],
+                  new["typo"], " or ".join(new["corrections"])))
+          sys.exit(1 if not clean else 0)' "${{ runner.temp }}/typos.jsonl"
diff --git a/.typos.toml b/.typos.toml
new file mode 100644 (file)
index 0000000..f636e74
--- /dev/null
@@ -0,0 +1,51 @@
+[default]
+# Don't check text that matches the following regexes'
+extend-ignore-re = [
+    '\\cite\{.*\}', # citations contain arbitrary keys,
+    '@cite \w'
+]
+
+[default.extend-identifiers]
+# Don't correct these whole identifiers (word-groups)
+bungartz2016precice = "bungartz2016precice"
+chourdakis2021precice = "chourdakis2021precice"
+y_FoR = "y_FoR"
+use_degress = "use_degress"
+MPI_MODE_WRONLY = "MPI_MODE_WRONLY"
+Equil = "Equil"
+multline = "multline"
+
+[default.extend-words]
+# Don't correct these word (parts)
+OCE = "OCE"
+MIS = "MIS"
+parm = "parm"
+nd = "nd"
+inout = "inout"
+datas = "datas"
+Elemente = "Elemente"
+Methode = "Methode"
+workd = "workd"
+Stoer = "Stoer"
+Lik = "Lik"
+htmp = "htmp"
+Numer = "Numer"
+ue = "ue"
+reord = "reord"
+Uite = "Uite"
+strat = "strat"
+Ned = "Ned"
+BA = "BA"
+Fike = "Fike"
+clen = "clen"
+
+# Don't check the following files
+[files]
+extend-exclude = [
+    # "*.output",
+    "tests/parameter_handler/parameter_handler_25.cc", # this file contains a typo on purpose
+    "*.svg",
+    "*.pvsm",
+    "*.vtu",
+    "*.bib", # bib entries contain many arbitrary abbreviations
+    ] 
index 7375b08ce325b2e2a7cedd9e5730f7d0aa78b684..dffcaa9eefe24b7e12f7c4182024ae1e41450938 100644 (file)
@@ -397,7 +397,7 @@ inconvenience this causes.
   <li> <p>
        Improved: The class <code>Quadrature</code> has a new
        constructor generating the <tt>dim</tt>-dimensional tensor product of a
-       one-dimensonal formula directly.
+       one-dimensional formula directly.
        <br>
        (GK, 2005/06/10)
        </p>
index bd2a9b58b4d78d42d7b24667d446759855a1f861..6e2f26e1dfd47aacd8b3657bcd0a7297a3dd26c0 100644 (file)
@@ -1017,7 +1017,7 @@ inconvenience this causes.
  </li>
 
  <li>
-  Improved: ContraintMatrix::distribute_local_to_global now does a bulk write of
+  Improved: ConstraintMatrix::distribute_local_to_global now does a bulk write of
   all vector values at once. This improves performance with
   PETScWrappers::MPI::Vector by about 10%.
   <br>
index 4fd133a5e5dab8a26e3d15c627551f06b9d350ba..62843f2c9062360870af2cc3e73b4e51b9103439 100644 (file)
@@ -1037,7 +1037,7 @@ inconvenience this causes.
 
  <li>
   New: FECollection gained an equality comparison operator. Both FiniteElement
-  and FECollcetion have a non-equality comparison operator now.
+  and FECollection have a non-equality comparison operator now.
   <br>
   (Daniel Arndt, 2018/04/25)
  </li>
index 452ba6550753614659d8957dc98a9887042285d0..ac9539dea900049da4e136b9fe497db005dd13df 100644 (file)
@@ -1645,7 +1645,7 @@ inconvenience this causes.
  </li>
 
  <li>
-  New: You can now perform range-based iterations on hp::FECollecion, hp::QCollection,
+  New: You can now perform range-based iterations on hp::FECollection, hp::QCollection,
   and hp::MappingCollection objects.
   <br>
   (Peter Munch, 2021/10/27)
diff --git a/doc/news/changes/minor/20240812Gassmoeller b/doc/news/changes/minor/20240812Gassmoeller
new file mode 100644 (file)
index 0000000..cb2b19e
--- /dev/null
@@ -0,0 +1,4 @@
+New: deal.II contributions are now automatically checked
+for typos using the 'typos' software.
+<br>
+(Rene Gassmoeller, 2024/08/12)
index 5c7408bbda1712dc616d275553386fa752c1b98a..43634c38e48f40b85701e5f7f29dac96f515bbc6 100644 (file)
@@ -606,7 +606,7 @@ in the program below, a "checkpoint" actually consists of a number
 of files -- one file into which we write the program's member
 variables, and several into which the triangulation puts its
 information. We then would have to rename several files,
-preferrably as a single, "atomic" operation that cannot be
+preferably as a single, "atomic" operation that cannot be
 interrupted. Implementing this is tricky and non-trivial (though
 possible), and so we will not show this part and instead just
 assume that nothing will happen between renaming the first
index 75c26765b9f644da14cf338bb331150a59be7dff..acb61b18926fcd54c848892a3f9e8fc4347316da 100644 (file)
@@ -112,7 +112,7 @@ lines:
 [...]
 @endcode
 What each of these numbers represents is hard to tell in practice, and also
-entirely unimporant for our current purposes -- it's
+entirely unimportant for our current purposes -- it's
 a representation of the many objects that make up this program's state, and
 from which one can restore its state. The point simply being that this is what
 serialization produces: A long list (a sequence) of bits that we can put
index 16fbf228efb5bcef8e3784a0a83f9fd98c7c7ebe..257e612f503db9289c2108914031b1f9d98a40e6 100644 (file)
@@ -508,7 +508,7 @@ namespace TimeStepping
       const double                                                       t,
       const double      factor_solution,
       const double      factor_ai,
-      const VectorType &corrent_ri,
+      const VectorType &current_ri,
       VectorType       &vec_ki,
       VectorType       &solution,
       VectorType       &next_ri) const;
index 507fc336007e74598a71ee9bbf9954a84dfe2a6b..4271b777784e4e5d0fe1cbe22b51150189c2c52f 100644 (file)
@@ -68,7 +68,7 @@ namespace internal
 /**
  * Enum of different choices for istropic refinement.
  * There are 3 different ways to refine a tetrahedral, here we save the
- * different possibilities. It is different to RefinementPossibilites are these
+ * different possibilities. It is different to RefinementPossibilities are these
  * are options in the case that an isotropic refinement is conducted.
  */
 enum class IsotropicRefinementChoice : std::uint8_t
index f3c351885b3ead2912d8bfb09a7d079db817dd54..a292f466784bf5350960924021eb6abda763b7fd 100644 (file)
@@ -1081,7 +1081,7 @@ namespace PETScWrappers
 
         // If we have the decide_and_prepare_for_remeshing callback
         // set, then we also need to have the callback for actually
-        // transfering the solution:
+        // transferring the solution:
         AssertThrow(interpolate || transfer_solution_vectors_to_new_mesh,
                     StandardExceptions::ExcFunctionNotProvided(
                       "transfer_solution_vectors_to_new_mesh"));
index 9650d732bfbd77b0817f5aeea2ea82612e2e9a44..dc3e8427d8bbc5fc3523ac0e967769bebb8d32d5 100644 (file)
@@ -73,7 +73,7 @@ namespace LinearAlgebra
       PreconditionBase() = default;
 
       /**
-       * @brief Desctructor.
+       * @brief Destructor.
        * Destroys the preconditioner, leaving an object like just after having
        * called the constructor.
        */
@@ -853,7 +853,7 @@ namespace LinearAlgebra
          */
         double min_eigenvalue;
         /**
-         * @brief Estimated ratio between maximum and mimimum eigenvalue.
+         * @brief Estimated ratio between maximum and minimum eigenvalue.
          *
          */
         double eigenvalue_ratio;
@@ -930,7 +930,7 @@ namespace LinearAlgebra
          * @brief Constructor.
          *
          * Before factorization each diagonal entry will be modified by the
-         * following fomula \f[a_{ii}^{new} = \alpha\sign(a_{ii})+\beta a_{ii}
+         * following formula \f[a_{ii}^{new} = \alpha\sign(a_{ii})+\beta a_{ii}
          * \f] with \f[\alpha\f] given by ilu_atol and \f[\beta\f] given by
          * ilu_rtol.
          *
@@ -1014,7 +1014,7 @@ namespace LinearAlgebra
          * @brief Constructor.
          *
          * Before factorization each diagonal entry will be modified by the
-         * following fomula \f[a_{ii}^{new} = \alpha\sign(a_{ii})+\beta a_{ii}
+         * following formula \f[a_{ii}^{new} = \alpha\sign(a_{ii})+\beta a_{ii}
          * \f] with \f[\alpha\f] given by ilut_atol and \f[\beta\f] given by
          * ilut_rtol.
          *
index b83ff81d061f31e7a3a0d41b62d25bb9f866094f..64c7a5d8445b3d852d2a91761b6bdfed713cbd67 100644 (file)
@@ -18,7 +18,7 @@
  *          Joscha Gedicke, U Heidelberg
  *
  * This file tests the non-symmetric interface to ARPACK for an
- advection-diffussion
+ advection-diffusion
  * operator. The advection is chosen in such a way that we compute complex
  eigenvalues.
  * The most critical case when we cut a complex conjugate pair is tested, i.e.
index f535afb12ff8a14142ceac46371cbd5eb171d534..411417b6eb492b28fc9f60606baedc5b949af5da 100644 (file)
@@ -13,7 +13,7 @@
  * ------------------------------------------------------------------------
 
  * This file tests the non-symmetric interface to PARPACK for an
- advection-diffussion
+ advection-diffusion
  * operator with PETSc mpi vectors.
  *
  * We test that the computed vectors are eigenvectors and mass-normal, i.e.
index e3354e9c489b1934bd8a9d9fab5e9c775d6fc7bd..73cb2b1c8803eac752f028807ff2fb573717b320 100644 (file)
@@ -13,7 +13,7 @@
  * ------------------------------------------------------------------------
 
  * This file tests the non-symmetric interface to PARPACK for an
- advection-diffussion
+ advection-diffusion
  * operator with Trilinos mpi vectors.
  *
  * We test that the computed vectors are eigenvectors and mass-normal, i.e.
index 3c317884691b4cba29baf487668e0f88382da534..37684bddac5ed2a6ec7cd61614673602f33f6849 100644 (file)
@@ -16,7 +16,7 @@
 // Verify that DerivativeForm is trivially copyable.
 
 // TODO not all compilers that support enough of a subset of C++11 to compile
-// the library (notably GCC 4.8) implement std::is_trivally_copyable. At some
+// the library (notably GCC 4.8) implement std::is_trivially_copyable. At some
 // point in the future we should use that instead of the boost equivalent.
 
 #include <deal.II/base/derivative_form.h>
index 212725dcb2f33fb6c120dbadfbf9e3876c994b2d..1b9ccfcd709a04a2ba80ec80d90af7befb306e36 100644 (file)
@@ -42,7 +42,7 @@ main()
   std::vector<double> coefficients_a;
 
   //      arbitrary point
-  double evalutation_number = 12.123;
+  double evaluation_number = 12.123;
 
   for (unsigned int pp = 0; pp < p_dim; ++pp)
     {
@@ -53,6 +53,6 @@ main()
 
       test_poly_b -= test_poly_a;
 
-      deallog << test_poly_b.value(evalutation_number) << std::endl;
+      deallog << test_poly_b.value(evaluation_number) << std::endl;
     }
 }
index 159e87f9abe60b52fafb59589711d85eb6f32962..754a85e89d5b5743ee106932e26e3e14175ee25d 100644 (file)
@@ -37,11 +37,11 @@ check(const std::string in,
 void
 test()
 {
-  check("wie geht es dir?", "dir", "euch", "wie geht es euch?");
+  check("how are you?", "you", "you all", "how are you all?");
   check("empty from", "", "abc", "empty from");
-  check("eins zwei drei", "ei", "", "ns zw dr");
-  check("eins zwei drei", "zwei", "zweiundvierzig", "eins zweiundvierzig drei");
-  check("wer das liest ist doof", "das liest ", "", "wer ist doof");
+  check("one two three", "e", "", "on two thr");
+  check("one two three", "two", "fortytwo", "one fortytwo three");
+  check("how are you?", "how are ", "", "you?");
   check("string string", "string", "", " ");
   check(" same is same", " same", " same", " same is same");
   check("  ", " ", "", "");
index 43fd4a1cd70daeefd8863064ee8aba1afcd53dd0..8b26d8a18b79ce678f1a8cc59c4a62ec14aa752c 100644 (file)
@@ -51,7 +51,7 @@ main()
     internal::BlockVectorIterators::Iterator<BlockVector<double>,
                                              false>>::iterator_category;
 
-  using intervall_iterator_category =
+  using interval_iterator_category =
     std::iterator_traits<IndexSet::IntervalIterator>::iterator_category;
   using element_iterator_category =
     std::iterator_traits<IndexSet::ElementIterator>::iterator_category;
index be30f4b9a1076e22d667f9cb7ef12905827f364f..167cc5733573d457fe0d29a2070183d378bf0889 100644 (file)
@@ -63,7 +63,7 @@ main()
       if (level == 2)
         {
           Assert(boxes_in_boxes.size() == 0,
-                 ExcMessage("Leafs have no children."));
+                 ExcMessage("Leaves have no children."));
         }
       else
         {
index df5c9983a975787e60a34c08b7c2131e0605db1c..0d8e1bf96bd901ff72ea68eb9b918ade408d95cd 100644 (file)
@@ -48,17 +48,17 @@ test()
   AdditionalData<3> data;
   data.cell_size = .1;
   cgal_surface_mesh_to_cgal_triangulation(sm, tria, data);
-  const unsigned int n_intial_facets = tria.number_of_facets_in_complex();
+  const unsigned int n_initial_facets = tria.number_of_facets_in_complex();
   tria.clear();
   data.cell_size = .5;
   cgal_surface_mesh_to_cgal_triangulation(sm, tria, data);
 
   Assert(
-    n_intial_facets > tria.number_of_facets_in_complex(),
+    n_initial_facets > tria.number_of_facets_in_complex(),
     ExcMessage(
       "The number of facets in the finer mesh must be greater than the number of facets in the coarse mesh."));
   deallog << std::boolalpha
-          << (n_intial_facets > tria.number_of_facets_in_complex())
+          << (n_initial_facets > tria.number_of_facets_in_complex())
           << std::endl;
 }
 
index 7cbc919f21729dc0a42270591baff0b87f52cfdb..0b2af65205d3f4c35fa2fc79e8d1028909f4e558 100644 (file)
@@ -13,7 +13,7 @@
 // ------------------------------------------------------------------------
 
 
-// this is the root cause for solution_tranfer_01: the prolongation
+// this is the root cause for solution_transfer_01: the prolongation
 // matrices for FE_DGQ<dim-1,dim> were not computed at all
 
 #include <deal.II/fe/fe_dgq.h>
index 804f9f06c3731e2b6672b273222602b6c9336d01..abbd37297ffb7b1bbf211704754e084821b35f5a 100644 (file)
@@ -123,8 +123,8 @@ main(int argc, char *argv[])
   std::vector<unsigned int> n_cell_smooth;
   std::vector<unsigned int> n_cell_no_smooth;
 
-  std::set<Location<dim>> final_cell_center_loactions_smooth;
-  std::set<Location<dim>> final_cell_center_loactions_no_smooth;
+  std::set<Location<dim>> final_cell_center_locations_smooth;
+  std::set<Location<dim>> final_cell_center_locations_no_smooth;
   if (I_am_host)
     {
       deallog << "Flag limit_level_difference_at_vertices set:" << std::endl;
@@ -132,7 +132,7 @@ main(int argc, char *argv[])
   {
     TriaTest<dim> tria_test(
       dealii::Triangulation<dim>::limit_level_difference_at_vertices);
-    tria_test.run(n_cell_smooth, final_cell_center_loactions_smooth);
+    tria_test.run(n_cell_smooth, final_cell_center_locations_smooth);
   }
   if (I_am_host)
     {
@@ -140,7 +140,7 @@ main(int argc, char *argv[])
     }
   {
     TriaTest<dim> tria_test(dealii::Triangulation<dim>::none);
-    tria_test.run(n_cell_no_smooth, final_cell_center_loactions_no_smooth);
+    tria_test.run(n_cell_no_smooth, final_cell_center_locations_no_smooth);
   }
   if (I_am_host)
     {
@@ -161,26 +161,26 @@ main(int argc, char *argv[])
       }
   }
   {
-    bool cell_center_loactions_are_same =
-      (final_cell_center_loactions_smooth.size() ==
-       final_cell_center_loactions_no_smooth.size());
+    bool cell_center_locations_are_same =
+      (final_cell_center_locations_smooth.size() ==
+       final_cell_center_locations_no_smooth.size());
 
     std::set<Location<dim>>::const_iterator it1 =
-      final_cell_center_loactions_smooth.begin();
+      final_cell_center_locations_smooth.begin();
     std::set<Location<dim>>::const_iterator it2 =
-      final_cell_center_loactions_no_smooth.begin();
+      final_cell_center_locations_no_smooth.begin();
 
-    for (; cell_center_loactions_are_same &&
-           (it1 != final_cell_center_loactions_smooth.end());
+    for (; cell_center_locations_are_same &&
+           (it1 != final_cell_center_locations_smooth.end());
          ++it1, ++it2)
       {
-        cell_center_loactions_are_same =
-          cell_center_loactions_are_same && (*it1 == *it2);
+        cell_center_locations_are_same =
+          cell_center_locations_are_same && (*it1 == *it2);
       }
     if (I_am_host)
       {
-        deallog << "cell_center_loactions_are_same = "
-                << cell_center_loactions_are_same << std::endl;
+        deallog << "cell_center_locations_are_same = "
+                << cell_center_locations_are_same << std::endl;
       }
   }
 
index fa349ed428586f8830f9678a85a35532927149bd..a83cfad86bd65f06ee44715d6600f96adb212252 100644 (file)
@@ -103,4 +103,4 @@ DEAL:2d::0.875000 0.625000
 DEAL:2d::0.875000 0.875000
 DEAL:2d::Compare result:
 DEAL:2d::n_cells_are_same = 1
-DEAL:2d::cell_center_loactions_are_same = 1
+DEAL:2d::cell_center_locations_are_same = 1
index cacd5683c75bbabf0d7bdbcf602410755122a9ac..aa45bd015fa5b3a53b421b11e14ab5a0f79d8077 100644 (file)
@@ -123,8 +123,8 @@ main(int argc, char *argv[])
   std::vector<unsigned int> n_cell_smooth;
   std::vector<unsigned int> n_cell_no_smooth;
 
-  std::set<Location<dim>> final_cell_center_loactions_smooth;
-  std::set<Location<dim>> final_cell_center_loactions_no_smooth;
+  std::set<Location<dim>> final_cell_center_locations_smooth;
+  std::set<Location<dim>> final_cell_center_locations_no_smooth;
   if (I_am_host)
     {
       deallog << "Flag limit_level_difference_at_vertices set:" << std::endl;
@@ -132,7 +132,7 @@ main(int argc, char *argv[])
   {
     TriaTest<dim> tria_test(
       dealii::Triangulation<dim>::limit_level_difference_at_vertices);
-    tria_test.run(n_cell_smooth, final_cell_center_loactions_smooth);
+    tria_test.run(n_cell_smooth, final_cell_center_locations_smooth);
   }
   if (I_am_host)
     {
@@ -140,7 +140,7 @@ main(int argc, char *argv[])
     }
   {
     TriaTest<dim> tria_test(dealii::Triangulation<dim>::none);
-    tria_test.run(n_cell_no_smooth, final_cell_center_loactions_no_smooth);
+    tria_test.run(n_cell_no_smooth, final_cell_center_locations_no_smooth);
   }
   if (I_am_host)
     {
@@ -161,26 +161,26 @@ main(int argc, char *argv[])
       }
   }
   {
-    bool cell_center_loactions_are_same =
-      (final_cell_center_loactions_smooth.size() ==
-       final_cell_center_loactions_no_smooth.size());
+    bool cell_center_locations_are_same =
+      (final_cell_center_locations_smooth.size() ==
+       final_cell_center_locations_no_smooth.size());
 
     std::set<Location<dim>>::const_iterator it1 =
-      final_cell_center_loactions_smooth.begin();
+      final_cell_center_locations_smooth.begin();
     std::set<Location<dim>>::const_iterator it2 =
-      final_cell_center_loactions_no_smooth.begin();
+      final_cell_center_locations_no_smooth.begin();
 
-    for (; cell_center_loactions_are_same &&
-           (it1 != final_cell_center_loactions_smooth.end());
+    for (; cell_center_locations_are_same &&
+           (it1 != final_cell_center_locations_smooth.end());
          ++it1, ++it2)
       {
-        cell_center_loactions_are_same =
-          cell_center_loactions_are_same && (*it1 == *it2);
+        cell_center_locations_are_same =
+          cell_center_locations_are_same && (*it1 == *it2);
       }
     if (I_am_host)
       {
-        deallog << "cell_center_loactions_are_same = "
-                << cell_center_loactions_are_same << std::endl;
+        deallog << "cell_center_locations_are_same = "
+                << cell_center_locations_are_same << std::endl;
       }
   }
 
index 81aea2f43cbf79d3f2955b1274da5d2941e902f0..6716e3cea92032e18b771923f0f6b39665606570 100644 (file)
@@ -383,4 +383,4 @@ DEAL:3d::0.875000 0.875000 0.625000
 DEAL:3d::0.875000 0.875000 0.875000
 DEAL:3d::Compare result:
 DEAL:3d::n_cells_are_same = 1
-DEAL:3d::cell_center_loactions_are_same = 1
+DEAL:3d::cell_center_locations_are_same = 1
index 0db7f5625d2c6d7958f72debada803aa2221f1f3..a33d17511e0a785bd255474a945aa6b67e48b54d 100644 (file)
@@ -14,8 +14,7 @@
 
 
 
-// simply check what happens when condensing BlockDyanmicSparsityPattern. This
-// test was written when I changed a few things in the algorithm.
+// simply check what happens when condensing BlockDynamicSparsityPattern.
 
 #include <deal.II/dofs/dof_accessor.h>
 #include <deal.II/dofs/dof_handler.h>
index 7e67b204b6ad3d13f8cc699172a3911266815698..15f718bdfa339c0e6ad7860d6917fd99822461b9 100644 (file)
@@ -455,15 +455,16 @@ main()
     MappingQ1Eulerian<2> mapping_euler(*dof_handler_def, deformation);
 
     // Try rotating the elements
-    for (double rotat = 0; rotat < 2 * numbers::PI; rotat += 0.25 * numbers::PI)
+    for (double rotate = 0; rotate < 2 * numbers::PI;
+         rotate += 0.25 * numbers::PI)
       {
         // Rotate element
         VectorTools::project(*dof_handler_def,
                              hn_constraints_def,
                              QGauss<2>(6),
-                             TestDef1<2>(2, rotat),
+                             TestDef1<2>(2, rotate),
                              deformation);
-        deallog << "phi = " << rotat << std::endl;
+        deallog << "phi = " << rotate << std::endl;
         TestProjection(mapping_euler, dof_handler);
       }
 
index c83ca58304921fe3463743d5876c22702a7acf19..27326e495893f8d98183f8280a4ead8b06739e8d 100644 (file)
@@ -91,7 +91,7 @@ namespace FEConforimityTest
     DoFHandler<dim>                        dof_handler;
     AffineConstraints<double>              constraints;
 
-    Vector<double> random_fe_funtion;
+    Vector<double> random_fe_function;
 
     const unsigned int config_switch;
 
@@ -266,10 +266,10 @@ namespace FEConforimityTest
       constraints.close();
     }
 
-    random_fe_funtion.reinit(dof_handler.n_dofs());
+    random_fe_function.reinit(dof_handler.n_dofs());
 
     // Fill vector with pseudo-random values
-    fill_vector_randomly(random_fe_funtion, /* min */ -5.0, /* max */ 5.0);
+    fill_vector_randomly(random_fe_function, /* min */ -5.0, /* max */ 5.0);
   } // make_dofs()
 
 
@@ -453,7 +453,7 @@ namespace FEConforimityTest
                 case FiniteElementData<dim>::Conformity::H1:
                   {
                     get_function_jump(fe_interface_values,
-                                      random_fe_funtion,
+                                      random_fe_function,
                                       interface_jumps);
 
                     deallog << "Function jumps (at quad points) in cell   "
@@ -466,7 +466,7 @@ namespace FEConforimityTest
                 case FiniteElementData<dim>::Conformity::Hdiv:
                   {
                     get_normal_jump(fe_interface_values,
-                                    random_fe_funtion,
+                                    random_fe_function,
                                     interface_jumps);
 
                     deallog << "Normal jumps (at quad points) in cell   "
@@ -479,7 +479,7 @@ namespace FEConforimityTest
                 case FiniteElementData<dim>::Conformity::Hcurl:
                   {
                     get_tangential_jump(fe_interface_values,
-                                        random_fe_funtion,
+                                        random_fe_function,
                                         interface_jumps);
 
                     deallog << "Tangential jumps (at quad points) in cell   "
index 0bcb5072cfe6cf0371db11ffbff3cd61c5f6386e..a5ecdaef0ed8f50f1d1f16e75f3f21d081cc4dcc 100644 (file)
@@ -467,15 +467,16 @@ main()
     MappingQ1Eulerian<2> mapping_euler(*dof_handler_def, deformation);
 
     // Try rotating the elements
-    for (double rotat = 0; rotat < 2 * numbers::PI; rotat += 0.25 * numbers::PI)
+    for (double rotate = 0; rotate < 2 * numbers::PI;
+         rotate += 0.25 * numbers::PI)
       {
         // Rotate element
         VectorTools::project(*dof_handler_def,
                              hn_constraints_def,
                              QGauss<2>(6),
-                             TestDef1<2>(2, rotat),
+                             TestDef1<2>(2, rotate),
                              deformation);
-        deallog << "phi = " << rotat << std::endl;
+        deallog << "phi = " << rotate << std::endl;
         TestProjection(mapping_euler, dof_handler);
       }
 
index e83f60c207f647d391e374cfb53ec1efdb8a8281..ccb5e38911068f850191fc1806332575aab22e95 100644 (file)
@@ -14,7 +14,7 @@
 
 
 
-// check assignment from IdenityMatrix. like the full_matrix_* tests, but use
+// check assignment from IdentityMatrix. like the full_matrix_* tests, but use
 // complex-valued matrices and vectors, even though we only store real values
 // in them
 
index 1f0082308f6940cfc5a09ded84d5dedc89cb31ac..acf377c63acdc89b8d9f2dbfdcd489424422b6a4 100644 (file)
@@ -14,7 +14,7 @@
 
 
 
-// check assignment from IdenityMatrix
+// check assignment from IdentityMatrix
 
 
 #include "../tests.h"
index 42afc284308d85b6414390f9a0aa8a122fc4802b..76b04896b4f68d447bcc4a8e30dd1b46e678508e 100644 (file)
@@ -13,7 +13,7 @@
 // ------------------------------------------------------------------------
 
 // test GridTools::torus() the manifolds attached to the torus (TorusManifold,
-// ToriodalManifold, TransfiniteInterpolationManifold), output visually
+// ToroidalManifold, TransfiniteInterpolationManifold), output visually
 // checked
 
 #include <deal.II/grid/grid_generator.h>
index 4f48c14902131740efcc234446596adfc09ec908..b17dc99edc5f3e16a1596c094a69a8b0ce371aad 100644 (file)
@@ -87,11 +87,11 @@ private:
   void
   setup_system();
 
-  const unsigned int n_blocks;         // total number of blocks
-  const unsigned int n_components;     // total number of components
-  const unsigned int first_u_comp;     // where displacements starts
-  const unsigned int first_lamda_comp; // where lagrage multipliers start
-  const unsigned int degree;           // of shape functions
+  const unsigned int n_blocks;          // total number of blocks
+  const unsigned int n_components;      // total number of components
+  const unsigned int first_u_comp;      // where displacements starts
+  const unsigned int first_lambda_comp; // where lagrage multipliers start
+  const unsigned int degree;            // of shape functions
 
   std::vector<types::global_dof_index> dofs_per_block;
 
@@ -118,7 +118,7 @@ private:
                                            // used for integral evaluation
 
   const FEValuesExtractors::Vector u_fe;
-  const FEValuesExtractors::Vector lamda_fe;
+  const FEValuesExtractors::Vector lambda_fe;
 
   unsigned int id_of_lagrange_mult;
   double       beta1;
@@ -156,7 +156,7 @@ public:
   virtual void
   vector_value(const Point<dim> &p, Vector<double> &values) const;
   virtual double
-  value(const Point<dim> &p, unsigned int compoment) const;
+  value(const Point<dim> &p, unsigned int component) const;
 };
 
 template <int dim>
@@ -169,7 +169,7 @@ BoundaryValues<dim>::vector_value(const Point<dim> &p,
 
 template <int dim>
 inline double
-BoundaryValues<dim>::value(const Point<dim> &p, unsigned int compoment) const
+BoundaryValues<dim>::value(const Point<dim> &p, unsigned int component) const
 {
   return -0.001;
 }
@@ -237,7 +237,7 @@ ElasticProblem<dim>::ElasticProblem()
   : n_blocks(2)
   , n_components(dim * n_blocks)
   , first_u_comp(0)
-  , first_lamda_comp(dim)
+  , first_lambda_comp(dim)
   , degree(1)
   , dofs_per_block(n_blocks)
   , dof_handler(triangulation)
@@ -254,7 +254,7 @@ ElasticProblem<dim>::ElasticProblem()
                              dim // same for lagrange multipliers
                              )
   , u_fe(first_u_comp)
-  , lamda_fe(first_lamda_comp)
+  , lambda_fe(first_lambda_comp)
   , id_of_lagrange_mult(1)
   , beta1(1.0)
 {
@@ -343,7 +343,7 @@ ElasticProblem<dim>::setup_system()
           << n_elasticity_cells << std::endl;
   Assert(n_lagrange_cells > 0,
          ExcInternalError()); // there should be at least 1 cell! Otherwise
-                              // DoFHanlder crashes with 0 dofs for block 2!
+                              // DoFHandler crashes with 0 dofs for block 2!
   //
   //(2) distribute DoFs
   dof_handler.distribute_dofs(
index e8549c2d473cca81702e76e4e9144720e338c941..c2ed646a6b5d0c3b4bc2e5c9f94ff7c6d199a9be 100644 (file)
@@ -60,7 +60,7 @@ test()
 
   deallog << "Total constraints:          " << constraints.n_constraints()
           << std::endl
-          << "  Inhomogenous constraints: " << constraints.n_inhomogeneities()
+          << "  Inhomogeneous constraints: " << constraints.n_inhomogeneities()
           << std::endl
           << "  Identity constraints:     " << constraints.n_identities()
           << std::endl;
index 163e459c5ab6c1e21f3b3651ca761471e55290b5..c2656e0edd73c5ee033c184bc3ec9bc3325a4a33 100644 (file)
@@ -1,10 +1,10 @@
 
 DEAL:1d::Total constraints:          0
-DEAL:1d::  Inhomogenous constraints: 0
+DEAL:1d::  Inhomogeneous constraints: 0
 DEAL:1d::  Identity constraints:     0
 DEAL:2d::Total constraints:          2
-DEAL:2d::  Inhomogenous constraints: 0
+DEAL:2d::  Inhomogeneous constraints: 0
 DEAL:2d::  Identity constraints:     0
 DEAL:3d::Total constraints:          20
-DEAL:3d::  Inhomogenous constraints: 0
+DEAL:3d::  Inhomogeneous constraints: 0
 DEAL:3d::  Identity constraints:     4
index a600b16630fb77d4ee621c5bd82f429d4a2d19dc..9b4e62443e3be3447f1c8d569964f568fa397800 100644 (file)
@@ -99,7 +99,7 @@ test(std::array<unsigned int, 4> fe_degrees)
 
   deallog << "Total constraints:          " << constraints.n_constraints()
           << std::endl
-          << "  Inhomogenous constraints: " << constraints.n_inhomogeneities()
+          << "  Inhomogeneous constraints: " << constraints.n_inhomogeneities()
           << std::endl
           << "  Identity constraints:     " << constraints.n_identities()
           << std::endl;
index 7eee87e5c73924a7d71c01c1568c2ccba8a5653d..bff4164a73e89c1a37093858de4e8e8c853e8f36 100644 (file)
@@ -1,15 +1,15 @@
 
 DEAL::FE degrees: 1 - 4
 DEAL:2d::Total constraints:          8
-DEAL:2d::  Inhomogenous constraints: 0
+DEAL:2d::  Inhomogeneous constraints: 0
 DEAL:2d::  Identity constraints:     0
 DEAL:3d::Total constraints:          55
-DEAL:3d::  Inhomogenous constraints: 0
+DEAL:3d::  Inhomogeneous constraints: 0
 DEAL:3d::  Identity constraints:     3
 DEAL::FE degrees: 2 - 5
 DEAL:2d::Total constraints:          12
-DEAL:2d::  Inhomogenous constraints: 0
+DEAL:2d::  Inhomogeneous constraints: 0
 DEAL:2d::  Identity constraints:     0
 DEAL:3d::Total constraints:          92
-DEAL:3d::  Inhomogenous constraints: 0
+DEAL:3d::  Inhomogeneous constraints: 0
 DEAL:3d::  Identity constraints:     4
index a93cea17e225d96cfb2889dca9e1dc030e4d7464..ebd0523a079d979e2f137dad323c836a9519f44d 100644 (file)
@@ -176,15 +176,15 @@ test(FiniteElement<dim> &fe)
   deallog << fe.get_name() << std::endl;
 
   Triangulation<dim> tr(Triangulation<dim>::limit_level_difference_at_vertices);
-  std::vector<unsigned int> repititions(dim, 1);
-  repititions[0] = 2;
+  std::vector<unsigned int> repetitions(dim, 1);
+  repetitions[0] = 2;
   const Point<dim> p1 =
     (dim == 1 ? Point<dim>(-1.) :
                 (dim == 2 ? Point<dim>(-1., -1.) : Point<dim>(-1., -1., -1.)));
   const Point<dim> p2 =
     (dim == 1 ? Point<dim>(1.) :
                 (dim == 2 ? Point<dim>(1., 1.) : Point<dim>(1., 1., 1.)));
-  GridGenerator::subdivided_hyper_rectangle(tr, repititions, p1, p2);
+  GridGenerator::subdivided_hyper_rectangle(tr, repetitions, p1, p2);
   tr.begin_active()->set_refine_flag();
   tr.execute_coarsening_and_refinement();
 
index 13d98502010393589b13d2f63c52b60a9910246e..29339f06e1928d52bfcee2c8e26fb36ebb47fcd4 100644 (file)
@@ -19,7 +19,7 @@
 // of applying the constraints directly to the solution obtained by solving
 // the system:
 //   (C^T * A * C + Id_c) * x = C^t * (b - A * k)
-// with the help of constrainted_linear_operator and
+// with the help of constrained_linear_operator and
 // constrained_right_hand_side
 
 #include <deal.II/base/quadrature_lib.h>
index 44dd00f07afff8dc5be2cc06b4b330eb960c4886..16a8990fa094c3a8c0c852626b17c37b0053308d 100644 (file)
@@ -14,7 +14,7 @@
 
 
 
-// this tests the correctness of distribute_local_to_globa() for DiagonalMatrix
+// this tests the correctness of distribute_local_to_global() for DiagonalMatrix
 
 #include <deal.II/base/function.h>
 #include <deal.II/base/utilities.h>
index 009697156cfb31f6c36106f008938cd8487236cd..dde4b204928ef8496260983cefe80d31cd97969d 100644 (file)
@@ -13,7 +13,7 @@
 // ------------------------------------------------------------------------
 
 
-// Checks if vertices on face are given in correct oder
+// Checks if vertices on face are given in correct order
 
 #include <deal.II/fe/mapping_q.h>
 
index e52dee1b88f32fc75f332b6382125135a96ac298..fa5db3ed51f0c020b6a8666194b04ddc69d8fb02 100644 (file)
@@ -37,10 +37,10 @@ public:
   {}
 
   double
-  value(const Point<dim> &point, const unsigned int compontent) const
+  value(const Point<dim> &point, const unsigned int component) const
   {
-    return std::sin(point[compontent] * 0.5 * numbers::PI) -
-           (is_displacement_function ? point[compontent] : 0.0);
+    return std::sin(point[component] * 0.5 * numbers::PI) -
+           (is_displacement_function ? point[component] : 0.0);
   }
 
 private:
@@ -93,9 +93,9 @@ main()
        const Point<2> &p) -> Point<2> {
       Point<2> result;
 
-      for (unsigned int compontent = 0; compontent < 2; ++compontent)
-        result[compontent] =
-          std::sin(p[compontent] * 0.5 * numbers::PI) - p[compontent];
+      for (unsigned int component = 0; component < 2; ++component)
+        result[component] =
+          std::sin(p[component] * 0.5 * numbers::PI) - p[component];
 
       return result;
     },
@@ -106,8 +106,8 @@ main()
        const Point<2> &p) -> Point<2> {
       Point<2> result;
 
-      for (unsigned int compontent = 0; compontent < 2; ++compontent)
-        result[compontent] = std::sin(p[compontent] * 0.5 * numbers::PI);
+      for (unsigned int component = 0; component < 2; ++component)
+        result[component] = std::sin(p[component] * 0.5 * numbers::PI);
 
       return result;
     },
index b35b8ab6f1b299efb23fb29375022b4f315600eb..de3f94c48275ad325d54d1e8c7b68ce5df5cc002 100644 (file)
@@ -43,10 +43,10 @@ public:
   {}
 
   double
-  value(const Point<dim> &point, const unsigned int compontent) const
+  value(const Point<dim> &point, const unsigned int component) const
   {
-    return std::sin(point[compontent] * 0.5 * numbers::PI) -
-           (is_displacement_function ? point[compontent] : 0.0);
+    return std::sin(point[component] * 0.5 * numbers::PI) -
+           (is_displacement_function ? point[component] : 0.0);
   }
 
 private:
index 6760e990d303efd12aca964e5c486d5104a0ddc3..7925bcb69468070f1ee6ea180ea231dd85c04d13 100644 (file)
@@ -65,10 +65,10 @@ test(const bool         vector_describes_relative_displacement,
 
   if (vector_describes_relative_displacement)
     {
-      Vector<double> absolut_vector(dof_handler_dim.n_dofs());
-      VectorTools::get_position_vector(dof_handler_dim, absolut_vector);
+      Vector<double> absolute_vector(dof_handler_dim.n_dofs());
+      VectorTools::get_position_vector(dof_handler_dim, absolute_vector);
 
-      euler_vector -= absolut_vector;
+      euler_vector -= absolute_vector;
     }
 
   // output mesh with with MappingFEField based on a vector constructed
index 1a8805dd0ef67aa252b565e5f517199f608ea790..84688255f9741c33631b2752fce7fde23e080fbd 100644 (file)
@@ -48,13 +48,13 @@ test(const FiniteElement<dim> &fe, const Quadrature<dim> &quad)
       Triangulation<dim> tria;
       GridGenerator::reference_cell(tria, fe.reference_cell());
 
-      FE_SimplexP<dim> fe_continous(fe.degree);
+      FE_SimplexP<dim> fe_continuous(fe.degree);
 
       DoFHandler<dim> dof_handler(tria);
-      dof_handler.distribute_dofs(fe_continous);
+      dof_handler.distribute_dofs(fe_continuous);
 
       std::vector<types::global_dof_index> dof_indices(
-        fe_continous.n_dofs_per_face());
+        fe_continuous.n_dofs_per_face());
       for (const auto &cell : dof_handler.active_cell_iterators())
         {
           unsigned int face_counter = 0;
index cf76657a89c7aa0424e606bcea8de2153a3938a3..4528ac5938e373582a32c7bd510529918d680a4b 100644 (file)
@@ -12,7 +12,7 @@
 //
 // ------------------------------------------------------------------------
 
-// Check if intialization of FEFaceEvaluation works for hp + DG in 3D.
+// Check if initialization of FEFaceEvaluation works for hp + DG in 3D.
 
 #include <deal.II/fe/fe_dgq.h>
 #include <deal.II/fe/mapping_q1.h>
index a7c2e372bca7e60ba24003878a5d94d6c701bcda..3e8c0dcd98fe225e7b96e7cd93a167233a790daf 100644 (file)
@@ -14,7 +14,7 @@
 
 // This function tests the correctness of the matrix-free implementation
 // of the FE_RaviartThomasNodal element by evaluating values + gradients
-// as well as the divergence and comparing the result with FEVaules which
+// as well as the divergence and comparing the result with FEValues which
 // is considered the reference. The mesh is a hypercube mesh with no
 // hanging nodes and no other constraints.
 
index bd9c87820c30ac878f71f448b9cb7d946a545ea8..8492e41c1d0895c95fface33791e1ddd9f336bbf 100644 (file)
@@ -15,7 +15,7 @@
 // This function tests the correctness of the matrix-free implementation
 // of the FE_RaviartThomasNodal element by evaluating values + gradients
 // as well as the divergence on faces and comparing the result with
-// FEFaceVaules which is considered the reference. The mesh is a hypercube
+// FEFaceValues which is considered the reference. The mesh is a hypercube
 // mesh with no hanging nodes and no other constraints.
 
 #include "../tests.h"
index 5c42787f65a7583b24302c7b6d604062770ac2fa..c851f1810cb83ce83661c13b8b95f1ac11a16d82 100644 (file)
@@ -14,7 +14,7 @@
 
 
 
-// document bug in the DerivateApproximation in parallel
+// document bug in the DerivativeApproximation in parallel
 /*
  --------------------------------------------------------
  An error occurred in line <3349> of file
index b33125a032ba6877f2fc2f87c88eb107a6d4a275..e0165fbc5df0a6d6d0c5d4b6254a7021145afed0 100644 (file)
@@ -42,7 +42,7 @@ test(const MPI_Comm comm)
   GridGenerator::subdivided_hyper_cube(basetria, 4);
   basetria.refine_global(4);
 
-  const auto deterimine_n_coarse_cells = [&comm](auto &tria) {
+  const auto determine_n_coarse_cells = [&comm](auto &tria) {
     types::coarse_cell_id n_coarse_cells = 0;
 
     for (auto cell : tria.active_cell_iterators())
@@ -55,7 +55,7 @@ test(const MPI_Comm comm)
 
   // create translator: CellID <-> unique ID
   internal::CellIDTranslator<dim> cell_id_translator(
-    deterimine_n_coarse_cells(basetria), basetria.n_global_levels());
+    determine_n_coarse_cells(basetria), basetria.n_global_levels());
 
 
   for (auto cell : basetria.cell_iterators())
index 82a7991c7d147a52e1e58a50f85c86a3b3861d57..4b3d38eaae9b7de0ba51f9bce8f55bf2a003b42b 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index e5d13851dbad5f841643805354dbb0f687bbbda9..8a2c6ef2136f95cdf0db85d540b6754d59e2ed3e 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index c9cb8c22def5f04de7ed85a569f689c7e35b866a..f3beb221272da6c595031ffba1f3c64e9fe5b246 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index 8566dc4e6367cadbd13d014c0b9c3639c9a410d6..16730d0edfe5e0f7344707632561b757accdadd7 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index 6cb654c595c8bd5c8869a869e85abd284e637808..aa8857eba8dff6446823273b66dcd43275941812 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index 9c3b2134e8ec3e1f585e382536926235a7b96b3b..395121919f94fa3dea053cc63c9c5bc211b414d2 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index fa0ad663274581e01b87b28f114c174b480285fe..f603099c20d254fb451945d09996d71590b9cc14 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index 4788d092378f8bcd5233f061ed8b42d1bc09464d..d2cde09005cda86c1892d2af99d723b6391dcd50 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index 53eb8efe057882c9ac78aea64d19b1aa8fe89156..59de61a86a3670ca64b4dbac2753337da49a6952 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index 29e5fe88bcedbe9c83a3aad91f00ff263d582be3..0506b64a8d769fb5dacfb12fc4ef894459385d8c 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index b9e9cec1b3ab541b11870687b64bf5d58fc3dcde..2e5a0dff4a6339d514ce646b598abde7e4dc81bd 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index f6a61497ffac0073845a83a21e6e745bfd149a30..876886b9373cda1c2726ec15d24501a72c5b6a4b 100644 (file)
 
 
 
-template <int dim, typename number, int spacedim>
-void
-reinit_vector(const dealii::DoFHandler<dim, spacedim> &mg_dof,
-              MGLevelObject<dealii::Vector<number>>   &v)
-{
-  for (unsigned int level = v.min_level(); level <= v.max_leve(); ++level)
-    {
-      unsigned int n = mg_dof.n_dofs(level);
-      v[level].reinit(n);
-    }
-}
-
-
 template <typename Transfer>
 void
 make_matrix(const Transfer     &transfer,
index 329f4870b0dbdd00012472a8f1d19426cfcb56f4..087d27d4a374118358bef1e350fae32141cbf15f 100644 (file)
@@ -289,9 +289,9 @@ setup_intersected_Q2_positive_coefficients<3>(Vector<double> &level_set)
 // functions are negative between the support points.
 template <int dim>
 void
-test_lagrange_coefficents_positive()
+test_lagrange_coefficients_positive()
 {
-  deallog << "test_lagrange_coefficents_positive" << std::endl;
+  deallog << "test_lagrange_coefficients_positive" << std::endl;
   Triangulation<dim> triangulation;
   GridGenerator::hyper_cube(triangulation);
 
@@ -367,7 +367,7 @@ run_test()
   test_intersection_x_eq_0_plane<dim>();
   // This test doesn't make sense in 1D.
   if (dim != 1)
-    test_lagrange_coefficents_positive<dim>();
+    test_lagrange_coefficients_positive<dim>();
 
   test_reclassify_called_multiple_times<dim>();
 }
index 338309e69ea16b400631c75f94d7aff4339e1a70..50f1954936e0d957d167b4371c5491d5f6986351 100644 (file)
@@ -95,7 +95,7 @@ DEAL::face 1 outside
 DEAL::face 2 intersected
 DEAL::face 3 intersected
 DEAL::
-DEAL::test_lagrange_coefficents_positive
+DEAL::test_lagrange_coefficients_positive
 DEAL::cell intersected
 DEAL::face 0 outside
 DEAL::face 1 outside
@@ -177,7 +177,7 @@ DEAL::face 3 intersected
 DEAL::face 4 intersected
 DEAL::face 5 intersected
 DEAL::
-DEAL::test_lagrange_coefficents_positive
+DEAL::test_lagrange_coefficients_positive
 DEAL::cell intersected
 DEAL::face 0 outside
 DEAL::face 1 intersected
index bb26073225074b323e5a507f11bab5bff10e6fba..2df3ba6266b231fdfd0d7c3a838f47ffa22c0a29 100644 (file)
@@ -1,5 +1,5 @@
 {
   "General": {
-  "Precison": "float"
+  "Precision": "float"
   }
 }
index ecbda5622365e189f7250c48a7c252c50bb8304e..6878b54c1a268995b97e00dd3deb35b63adb8146 100644 (file)
@@ -1,3 +1,3 @@
 subsection General
-  set Precison = float
+  set Precision = float
 end
index bc5d7efb5d5e158f5fa982bb4042d7d5e3ac37c7..9b5947a2d65e259850b568285421bbecdb44a41b 100644 (file)
@@ -37,7 +37,7 @@ test()
     std::vector<typename Particles::PropertyPool<dim, spacedim>::Handle>
       particle_handles;
 
-    // Allocate some space in non-contigous locations
+    // Allocate some space in non-contiguous locations
     particle_handles.push_back(pool.register_particle());
     particle_handles.insert(particle_handles.begin(), pool.register_particle());
     particle_handles.push_back(pool.register_particle());
index d5d343e4473ae62d6415d1664d7377e055fe9ebd..c9b0f53fbff3c79d2cebc2e830d7a1908b439562 100644 (file)
@@ -18,7 +18,7 @@
  * infrastructure on the CPU. Considered are the initialization
  * costs and the costs for an operator evaluation.
  * CUDAWrapper::MatrixFree was written with CUDA and now uses
- * Kokkos as backend and, as consequnce, favors GPU hardware. This
+ * Kokkos as backend and, as consequence, favors GPU hardware. This
  * performance test is meant to track the improvement of
  * the performance of CUDAWrapper::MatrixFree on the CPU.
  *
index d88a754816b6846fd672916b14a06c80d5276d41..4617d1cb2a992c25c39c964ae39ebc909d7b87eb 100644 (file)
@@ -323,7 +323,7 @@ namespace Step77
 
   // The following function is similar to that in step-77,
   // except that it supports parallel assembly.
-  // The Jacobian is assembled using homogenous boundary conditions
+  // The Jacobian is assembled using homogeneous boundary conditions
   // since we always solve for the update step.
   // Here we don't need to reevaluate the `locally_relevant_solution`
   // vector since SNES guaranties that the Jacobian callback is called
@@ -463,7 +463,7 @@ namespace Step77
 
   // Again, this is basically a verbatim copy of the function in step-77.
   // The only differences are in how we setup the nonlinear solver and in
-  // the way we handle non-homogenous boundary conditions.
+  // the way we handle non-homogeneous boundary conditions.
   template <int dim>
   void
   MinimalSurfaceProblem<dim>::run()
@@ -586,7 +586,7 @@ namespace Step77
           // We are now set up to solve the nonlinear system
           nonlinear_solver.solve(current_solution);
 
-          // Differently from step-77, we apply non-homogenous boundary
+          // Differently from step-77, we apply non-homogeneous boundary
           // conditions only once, after the algebraic solve is done.
           // Note that this call is only needed since this example uses hanging
           // nodes constraints.
index 2c5c148262dffb5890da767a28849501831ac7f3..3b0887a07ba7d3e9fc7deec6a2414c815a0b9f23 100644 (file)
@@ -18,7 +18,7 @@
 #include "../tests.h"
 
 // These tests were used while building extensions for
-// PetscSclar=complex. They check that std::complex<double> and
+// PetscScalar=complex. They check that std::complex<double> and
 // PetscScalar complex are compatible without explicitly casting.
 //
 // These tests look archaic - they are the original tests used to
index c73c61f0e8d80eda5f3db411737864061065c2ae..00028fc67c3ebd8787d72a01d2080d22a1a84b49 100644 (file)
@@ -86,11 +86,11 @@ main(int argc, char **argv)
 
   MappingQ1<patch_dim, spacedim> mapping_slice;
 
-  parallel::distributed::Triangulation<dim, spacedim> tria_backround(comm);
-  GridGenerator::hyper_cube(tria_backround, -1.0, +1.0);
-  tria_backround.refine_global(n_refinements_1);
+  parallel::distributed::Triangulation<dim, spacedim> tria_background(comm);
+  GridGenerator::hyper_cube(tria_background, -1.0, +1.0);
+  tria_background.refine_global(n_refinements_1);
 
-  DoFHandler<dim, spacedim> dof_handler(tria_backround);
+  DoFHandler<dim, spacedim> dof_handler(tria_background);
   dof_handler.distribute_dofs(FE_Q<dim, spacedim>{1});
 
   MappingQ1<dim, spacedim> mapping;
index e4f18685f13e47526d146af233a5dea1a96cd677..0e107437636bde414b50740d273b35b9bd255197 100644 (file)
@@ -87,11 +87,11 @@ main(int argc, char **argv)
 
   MappingQ1<patch_dim, spacedim> mapping_slice;
 
-  parallel::distributed::Triangulation<dim, spacedim> tria_backround(comm);
-  GridGenerator::hyper_cube(tria_backround, -1.0, +1.0);
-  tria_backround.refine_global(n_refinements_1);
+  parallel::distributed::Triangulation<dim, spacedim> tria_background(comm);
+  GridGenerator::hyper_cube(tria_background, -1.0, +1.0);
+  tria_background.refine_global(n_refinements_1);
 
-  DoFHandler<dim, spacedim> dof_handler(tria_backround);
+  DoFHandler<dim, spacedim> dof_handler(tria_background);
   dof_handler.distribute_dofs(
     FESystem<dim, spacedim>(FE_Q<dim, spacedim>{1}, n_components));
 
index e7a9d91afd8016a57a6a04abb1625ac30215a151..05de3d29136042046ef0122408560ac0ab85e27f 100644 (file)
@@ -47,9 +47,9 @@ public:
   {}
 
   double
-  value(const Point<dim> &point, const unsigned int compontent) const
+  value(const Point<dim> &point, const unsigned int component) const
   {
-    return std::sin(point[compontent] * 0.5 * numbers::PI);
+    return std::sin(point[component] * 0.5 * numbers::PI);
   }
 };
 
index 49c032b4c5db2f55df45bbeb43d4bb8dc71a72e2..c348ea19b624b3df920a2a9597fabb652ff2e0ce 100644 (file)
@@ -47,7 +47,7 @@ std::tuple<unsigned int, unsigned int>
 create_triangulation(const std::vector<Point<3>>    &vertices_,
                      const std::vector<CellData<3>> &cell_data_,
                      const unsigned int              face_n,
-                     const unsigned int              n_permuations,
+                     const unsigned int              n_permutations,
                      Triangulation<3>               &tria)
 {
   const ReferenceCell ref_cell  = ReferenceCells::Tetrahedron;
@@ -79,7 +79,7 @@ create_triangulation(const std::vector<Point<3>>    &vertices_,
       tria.create_triangulation(vertices, cell_data, SubCellData());
       ++permutation_n;
     }
-  while ((permutation_n < n_permuations) &&
+  while ((permutation_n < n_permutations) &&
          std::next_permutation(cell_data.back().vertices.begin(),
                                cell_data.back().vertices.end()));
 
index 457f6a7b66fd9566517b834b2054e955ef18da82..9c27c744081e89c78e520ebfba1e367bfc59ec15 100644 (file)
@@ -182,7 +182,7 @@ main()
     constexpr Tensor<1, 3> dummy_1;
     constexpr Tensor<0, 3> dummy_0;
     DEAL_II_CONSTEXPR auto product_result = dummy_1 * dummy_1;
-    DEAL_II_CONSTEXPR auto constraction_result =
+    DEAL_II_CONSTEXPR auto contraction_result =
       contract<0, 0>(dummy_1, dummy_1);
     DEAL_II_CONSTEXPR auto outer_product_result =
       outer_product(dummy_0, dummy_0);
index 010e2f5bba4ba16baf5d05d1fef26dae255bcc27..b76b2948449cb9e755b8f7fe7ed4f7e7fbe44e0b 100644 (file)
@@ -16,7 +16,7 @@
 // Verify that SymmetricTensor is trivially copyable.
 
 // TODO not all compilers that support enough of a subset of C++11 to compile
-// the library (notably GCC 4.8) implement std::is_trivally_copyable. At some
+// the library (notably GCC 4.8) implement std::is_trivially_copyable. At some
 // point in the future we should use that instead of the boost equivalent.
 
 #include <deal.II/base/symmetric_tensor.h>
index 938737e040bb89ef3767a6a5f47db4fa8e0a6e7d..147ff4616ebe01fe0fa341593595b6d7cbb7134d 100644 (file)
@@ -16,7 +16,7 @@
 // Verify that Tensor is trivially copyable.
 
 // TODO not all compilers that support enough of a subset of C++11 to compile
-// the library (notably GCC 4.8) implement std::is_trivally_copyable. At some
+// the library (notably GCC 4.8) implement std::is_trivially_copyable. At some
 // point in the future we should use that instead of the boost equivalent.
 
 #include <deal.II/base/tensor.h>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.