From: Wolfgang Bangerth Date: Sat, 15 Mar 2014 00:06:34 +0000 (+0000) Subject: Rewrite a piece of code that accessed an internal representation of the data used... X-Git-Tag: v8.2.0-rc1~695 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd3d6fd4e73c2539e51ab67fb23c8e92e7fde4c;p=dealii.git 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 --- 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;