]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid re-init'ing the same vector twice in step-14. 6029/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 10 Mar 2018 15:54:44 +0000 (08:54 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 10 Mar 2018 15:54:44 +0000 (08:54 -0700)
examples/step-14/step-14.cc

index c79aa2ce07bf78241d359caf2c1ec2c1de486b94..325d97d18817c0832f5d2e7954056f45bc7a7296 100644 (file)
@@ -2348,14 +2348,9 @@ namespace Step14
              ++face_no)
           face_integrals[cell->face(face_no)] = -1e20;
 
-      // Then set up a vector with error indicators and reserve one slot for
-      // each cell and set it to zero. With this, we can then set up the
-      // parallel iterator range just as we did in step-9, and hand it
-      // all off to WorkStream::run to compute the estimators for all
-      // cells in parallel:
-      error_indicators.reinit (DualSolver<dim>::dof_handler
-                               .get_triangulation().n_active_cells());
-
+      // Then set up the parallel iterator range just as we did in
+      // step-9, and hand it all off to WorkStream::run() to compute
+      // the estimators for all cells in parallel:
       typedef
       std::tuple<active_cell_iterator,Vector<float>::iterator>
       IteratorTuple;

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.