From: Guido Kanschat Date: Fri, 7 Dec 2001 14:45:35 +0000 (+0000) Subject: 3D dx output patched X-Git-Tag: v8.0.0~18508 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=425336feb88ebdbff738fb4496f827d4e31be397;p=dealii.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; /////////////////////////////