From 425336feb88ebdbff738fb4496f827d4e31be397 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Fri, 7 Dec 2001 14:45:35 +0000 Subject: [PATCH] 3D dx output patched git-svn-id: https://svn.dealii.org/trunk@5327 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/data_out_base.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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; ///////////////////////////// -- 2.39.5