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