From: guido Date: Fri, 7 Dec 2001 14:45:35 +0000 (+0000) Subject: 3D dx output patched X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=585817254930290c386b05d0c9b8b8f98520a7ca;p=dealii-svn.git 3D dx output patched git-svn-id: https://svn.dealii.org/trunk@5327 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index bf9242b8b1..38d70727c9 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -659,14 +659,14 @@ void DataOutBase::write_dx (const typename std::vector > &pa for (unsigned int k=0; k > &pa out << std::endl; }; - out << "attribute \"element type\" string \"quads\"" << std::endl + out << "attribute \"element type\" string \""; + if (dim==1) out << "lines"; + if (dim==2) out << "quads"; + if (dim==3) out << "cubes"; + out << "\"" << std::endl << "attribute \"ref\" string \"positions\"" << std::endl; /////////////////////////////