From 487248dd51064c72a3e87844e5ae408531ac5563 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 14 Mar 2000 18:08:57 +0000 Subject: [PATCH] automatic component names git-svn-id: https://svn.dealii.org/trunk@2581 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_out.cc | 34 ++++++++++++--------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/deal.II/deal.II/source/numerics/data_out.cc b/deal.II/deal.II/source/numerics/data_out.cc index ab3431a6d8..f40801d10a 100644 --- a/deal.II/deal.II/source/numerics/data_out.cc +++ b/deal.II/deal.II/source/numerics/data_out.cc @@ -26,6 +26,8 @@ #include #endif +#include + template DataOut_DoFData::DataEntry::DataEntry (const Vector *data, const vector &names) : @@ -95,20 +97,24 @@ template void DataOut_DoFData::add_data_vector (const Vector &vec, const string &name) { -//TODO: Guido fixes the following when string operators work properly -// There was a problem with stringstreams (Linux, egcs1.2) -// unsigned int n = dofs->get_fe().n_components (); -// if (n > 1) -// { -// vector names (dofs->get_fe().n_components ()); -// for (unsigned int i=0;i(1,name)); -} + unsigned int n = dofs->get_fe().n_components (); + vector names (1); + if (n > 1) + { + names.resize(dofs->get_fe().n_components ()); + for (unsigned int i=0;i::clear () // delete patches vector > dummy; patches.swap (dummy); -}; +} template -- 2.39.5