From 8c39a39555b7a7bd9717fca808e8f0428b0e36e4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 10 Mar 2018 08:54:44 -0700 Subject: [PATCH] Avoid re-init'ing the same vector twice in step-14. --- examples/step-14/step-14.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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; -- 2.39.5