From: Guido Kanschat Date: Tue, 14 Mar 2000 18:08:57 +0000 (+0000) Subject: automatic component names X-Git-Tag: v8.0.0~20789 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=487248dd51064c72a3e87844e5ae408531ac5563;p=dealii.git automatic component names git-svn-id: https://svn.dealii.org/trunk@2581 0785d39b-7218-0410-832d-ea1e28bc413d --- 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