From 985afbe1571af346865c2154c3706a1d1cf86ef6 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sat, 15 Mar 2014 00:06:34 +0000 Subject: [PATCH] Rewrite a piece of code that accessed an internal representation of the data used in a vector. git-svn-id: https://svn.dealii.org/trunk@32653 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/news/changes.h | 7 +++++++ deal.II/examples/step-32/step-32.cc | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index ca740881bb..333194f0b3 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -150,6 +150,13 @@ inconvenience this causes.
    +
  1. Fixed: step-32 had a piece of code where we accessed an internal + representation of how Trilinos vectors are actually stored. This is poor + style and has been rewritten. +
    + (Wolfgang Bangerth, 2014/03/14) +
  2. +
  3. Fixed: ParameterHandler will no longer output an error if the file to be read ends with "end" without a newline.
    diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 882332e1ea..6cffeabe77 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -3110,12 +3110,13 @@ namespace Step32 }; double global_temperature[2]; - for (unsigned int i=0; i (temperature[0], - distributed_temperature_solution.trilinos_vector()[0][i]); + distributed_temperature_solution(i)); temperature[1] = std::max (temperature[1], - distributed_temperature_solution.trilinos_vector()[0][i]); + distributed_temperature_solution(i)); } temperature[0] *= -1.0; -- 2.39.5