From f2ce0df4c49909af71e7a6647e760f422be8d8a9 Mon Sep 17 00:00:00 2001 From: guido 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/.cvsignore | 1 + deal.II/deal.II/source/numerics/data_out.cc | 34 ++++++++++++--------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/deal.II/.cvsignore b/deal.II/.cvsignore index 8ad26a03d8..ac04fc9077 100644 --- a/deal.II/.cvsignore +++ b/deal.II/.cvsignore @@ -1,2 +1,3 @@ config.log config.status +TODO 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