From d2e71c41a8218296c2a12220eb61e1bf87f8e295 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 16 Mar 1999 08:42:45 +0000 Subject: [PATCH] Fix my incorrect understanding of the AVS UCD format for cell data. git-svn-id: https://svn.dealii.org/trunk@1014 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_io.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/deal.II/deal.II/source/numerics/data_io.cc b/deal.II/deal.II/source/numerics/data_io.cc index e286f45a1c..c2c54446e3 100644 --- a/deal.II/deal.II/source/numerics/data_io.cc +++ b/deal.II/deal.II/source/numerics/data_io.cc @@ -426,6 +426,27 @@ void DataOut::write_ucd (ostream &out) const { out << (*cell_data[i].data)(index) << ' '; out << endl; }; + + // strange enough, but true: the ucd + // format requires that the number of + // cell data entries be the same as + // there were cells. cells however + // include those boundary faces with + // an indicator other than zero, so + // we may have printed faces as well + // in the above list of cells. we + // have to give respective values + // here as well. since faces have no + // natural value when cell data is + // concerned, we assign a zero. + for (unsigned int i=0; i