From 18df3bbaf483722dc744c165860fefad4872a043 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 28 May 2013 06:46:40 +0000 Subject: [PATCH] fixes by Jacques Lechelle for P2 elements --- libsrc/interface/writediffpack.cpp | 46 +++++++++++++++++++----------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/libsrc/interface/writediffpack.cpp b/libsrc/interface/writediffpack.cpp index eb73462c..07a21b2a 100644 --- a/libsrc/interface/writediffpack.cpp +++ b/libsrc/interface/writediffpack.cpp @@ -27,7 +27,7 @@ void WriteDiffPackFormat (const Mesh & mesh, double scale = 1; ofstream outfile(filename.c_str()); - + outfile.precision(14); if (mesh.GetDimension() == 3) @@ -97,13 +97,13 @@ void WriteDiffPackFormat (const Mesh & mesh, { const Point3d & p = mesh.Point(i); - outfile.width(4); + outfile.width(12); outfile << i << " ("; - outfile.width(10); + outfile.width(16); outfile << p.X()/scale << ", "; - outfile.width(9); + outfile.width(16); outfile << p.Y()/scale << ", "; - outfile.width(9); + outfile.width(16); outfile << p.Z()/scale << ") "; if(mesh[PointIndex(i)].Type() != INNERPOINT) @@ -211,14 +211,14 @@ void WriteDiffPackFormat (const Mesh & mesh, outfile.precision(6); outfile.setf (ios::fixed, ios::floatfield); outfile.setf (ios::showpoint); - + const Element2d & eldummy = mesh.SurfaceElement((int)1); outfile << "\n\n" "Finite element mesh (GridFE):\n\n" " Number of space dim. = 2\n" " Number of elements = " << nse << "\n" " Number of nodes = " << np << "\n\n" " All elements are of the same type : dpTRUE\n" - " Max number of nodes in an element: 3\n" + " Max number of nodes in an element: "<