From: Wolfgang Bangerth Date: Sat, 10 Mar 2018 15:54:44 +0000 (-0700) Subject: Avoid re-init'ing the same vector twice in step-14. X-Git-Tag: v9.0.0-rc1~343^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6029%2Fhead;p=dealii.git Avoid re-init'ing the same vector twice in step-14. --- diff --git a/examples/step-14/step-14.cc b/examples/step-14/step-14.cc index c79aa2ce07..325d97d188 100644 --- a/examples/step-14/step-14.cc +++ b/examples/step-14/step-14.cc @@ -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::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::iterator> IteratorTuple;