From: wolf Date: Tue, 16 Mar 1999 08:42:45 +0000 (+0000) Subject: Fix my incorrect understanding of the AVS UCD format for cell data. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e71c41a8218296c2a12220eb61e1bf87f8e295;p=dealii-svn.git 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 --- 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