From 0ebcf9a56ce69a3e0e1354e2e3428c45424f5871 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 7 Jun 2004 23:52:29 +0000 Subject: [PATCH] fix bug in UNV format introduced in 1.53 (BEAM/BEAM2 require special case in print_record) --- Mesh/Print_Mesh.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mesh/Print_Mesh.cpp b/Mesh/Print_Mesh.cpp index b4ce1aec56..ca8eabd3f6 100644 --- a/Mesh/Print_Mesh.cpp +++ b/Mesh/Print_Mesh.cpp @@ -1,4 +1,4 @@ -// $Id: Print_Mesh.cpp,v 1.53 2004-05-27 06:23:48 geuzaine Exp $ +// $Id: Print_Mesh.cpp,v 1.54 2004-06-07 23:52:29 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // @@ -646,8 +646,9 @@ static void _unv_print_record(int num, int fetyp, int geo, int n, int nsup, { fprintf(UNVFILE, "%10d%10d%10d%10d%10d%10d\n", num, fetyp, geo, geo, 7, n + nsup); + if(fetyp == BEAM || fetyp == BEAM2) + fprintf(UNVFILE, "%10d%10d%10d\n", 0, 0, 0); int ntot = 0; - fprintf(UNVFILE, "%10d%10d%10d\n", 0, 0, 0); for(int k = 0; k < n; k++) { fprintf(UNVFILE, "%10d", v[k]->Num); if(ntot % 8 == 7) -- GitLab