]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix meshworker tests 9997/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 5 May 2020 21:21:30 +0000 (23:21 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 5 May 2020 22:01:16 +0000 (00:01 +0200)
tests/meshworker/mesh_loop_04.cc
tests/meshworker/mesh_loop_05.cc
tests/meshworker/mesh_loop_06.cc
tests/meshworker/mesh_loop_07.cc
tests/meshworker/scratch_data_01.cc
tests/meshworker/scratch_data_02.cc
tests/meshworker/scratch_data_03.cc
tests/meshworker/scratch_data_05.cc
tests/meshworker/scratch_data_06.cc
tests/meshworker/scratch_data_07.cc

index 89e4fbf492264ba9d0418aa56168305d8af46081..6f0c713e73d3d280e6168514ded13bf3c421d255 100644 (file)
@@ -72,7 +72,6 @@ test()
   auto cell_worker = [](const Iterator &cell, ScratchData &s, CopyData &c) {
     const auto &fev = s.reinit(cell);
     const auto &JxW = s.get_JxW_values();
-    c               = 0;
     for (auto w : JxW)
       c.vectors[0][0] += w;
   };
index ede120e0a449001f7a5cc3f814b396519703a299..3d4ed98a43aa274cda3afd1fdfb57abe560e0ba3 100644 (file)
@@ -77,7 +77,6 @@ test()
   auto cell_worker = [](const Iterator &cell, ScratchData &s, CopyData &c) {
     const auto &fev = s.reinit(cell);
     const auto &JxW = s.get_JxW_values();
-    c               = 0;
     for (auto w : JxW)
       c.vectors[0][0] += w;
   };
index a0e98a9a161df2fa918c205db817df2b66ef4f35..df07e5e92eb6d06c8cb062f28f46e1f54dd4fed8 100644 (file)
@@ -78,7 +78,6 @@ test(const types::material_id test_id)
   auto cell_worker = [](const Iterator &cell, ScratchData &s, CopyData &c) {
     const auto &fev = s.reinit(cell);
     const auto &JxW = s.get_JxW_values();
-    c               = 0;
     for (auto w : JxW)
       c.vectors[0][0] += w;
   };
index 0b3b71cf85d80017197e07e1e40072e4e45d67dc..fb0fbc17bd40af804da62831a275ead6bee90752 100644 (file)
@@ -62,7 +62,6 @@ run()
                           ScratchData &           scratch_data,
                           CopyData &              copy_data) {
       const auto &fe_values = scratch_data.reinit(cell);
-      copy_data             = 0;
 
       for (unsigned int q_point = 0; q_point < fe_values.n_quadrature_points;
            ++q_point)
index c86406a8ceb080901d24695864b5d5fd75adbc4c..07e04e6b3b52dc35edbfad75d8ac89d1f025c2b8 100644 (file)
@@ -72,7 +72,6 @@ test()
   auto cell_worker = [](const Iterator &cell, ScratchData &s, CopyData &c) {
     const auto &fev = s.reinit(cell);
     const auto &JxW = s.get_JxW_values();
-    c               = 0;
     for (auto w : JxW)
       c.vectors[0][0] += w;
   };
index 562aafe78ac9888ed356ee94f142f54317b2ef30..31685bffd1010f4036eeabff767c00b039b28ac3 100644 (file)
@@ -116,8 +116,6 @@ test()
       const auto &JxW = s.get_JxW_values();
       const auto &p   = s.get_quadrature_points();
 
-      c = 0;
-
       c.local_dof_indices[0] = s.get_local_dof_indices();
 
       for (unsigned int q = 0; q < p.size(); ++q)
index d12abd339714d81d7ac824c2dda35e21d80aa684..b0c5822c5d17530ec3b1611048112353fd28de26 100644 (file)
@@ -116,8 +116,6 @@ test()
       const auto &JxW = s.get_JxW_values();
       const auto &p   = s.get_quadrature_points();
 
-      c = 0;
-
       c.local_dof_indices[0] = s.get_local_dof_indices();
 
       for (unsigned int q = 0; q < p.size(); ++q)
index 98f5fd03edc2ea6218fa984a0526c92cc1e53fa4..330e16518a75fce2ba3191d8e18fd501250f6a25 100644 (file)
@@ -130,8 +130,6 @@ test()
     const auto &u      = s.get_values("solution", scalar, dummy);
     const auto &grad_u = s.get_gradients("solution", scalar, dummy);
 
-    c = 0;
-
     c.local_dof_indices[0] = s.get_local_dof_indices();
 
     for (unsigned int i = 0; i < fev.dofs_per_cell; ++i)
index aa23f4154e15e358e4e57c559ee7fdb2c430a327..bbba1f986c9df54abc3c359804f71700bf4ae07f 100644 (file)
@@ -130,8 +130,6 @@ test()
     const auto &u      = s.get_values("solution", scalar, energy);
     const auto &grad_u = s.get_gradients("solution", scalar, energy);
 
-    c = 0;
-
     c.local_dof_indices[0] = s.get_local_dof_indices();
 
     for (unsigned int q = 0; q < p.size(); ++q)
index c83c5ef587b2e23eeb919278a9e8ae1d6f327dca..05bdd970e7c07e8c487f25ba60fbeaaa69eb46b0 100644 (file)
@@ -132,8 +132,6 @@ test()
     const auto &u                = s.get_values("solution", scalar, energy);
     const auto &grad_u           = s.get_gradients("solution", scalar, energy);
 
-    c = 0;
-
     c.local_dof_indices[0] = s.get_local_dof_indices();
 
     for (unsigned int q = 0; q < p.size(); ++q)

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.