From dabc1a87be7510dad55514973910f5dd4a4570de Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 28 Jul 2006 22:03:26 +0000 Subject: [PATCH] Fix TableHandler::write_tex to take an ostream, instead of an ofstream git-svn-id: https://svn.dealii.org/trunk@13480 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/table_handler.h | 2 +- deal.II/base/source/table_handler.cc | 2 +- deal.II/doc/news/changes.html | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/deal.II/base/include/base/table_handler.h b/deal.II/base/include/base/table_handler.h index b27f60d900..df31b05732 100644 --- a/deal.II/base/include/base/table_handler.h +++ b/deal.II/base/include/base/table_handler.h @@ -339,7 +339,7 @@ class TableHandler * file using a command like * "\input{table_file}". */ - void write_tex (std::ofstream &file, const bool with_header=true) const; + void write_tex (std::ostream &file, const bool with_header=true) const; /** @addtogroup Exceptions * @{ */ diff --git a/deal.II/base/source/table_handler.cc b/deal.II/base/source/table_handler.cc index 46610ddd79..95029b66b3 100644 --- a/deal.II/base/source/table_handler.cc +++ b/deal.II/base/source/table_handler.cc @@ -337,7 +337,7 @@ void TableHandler::write_text(std::ostream &out) const } -void TableHandler::write_tex (std::ofstream &out, const bool with_header) const +void TableHandler::write_tex (std::ostream &out, const bool with_header) const { AssertThrow (out, ExcIO()); if (with_header) diff --git a/deal.II/doc/news/changes.html b/deal.II/doc/news/changes.html index 381ab0b664..1d98958f8b 100644 --- a/deal.II/doc/news/changes.html +++ b/deal.II/doc/news/changes.html @@ -343,6 +343,14 @@ inconvenience this causes.

base

    +
  1. Fixed: The TableHandler::write_tex + accidentally took a parameter of type + std::ofstream instead of std::ostream + and could therefore only write to files, not to other kinds of + streams. This is now fixed. +
    + (WB 2006/07/28) +

  2. New: GeometryInfo offers several new functions, is_inside_unit_cell with an epsilon parameter to specify allowable -- 2.39.5