Skip to content
Snippets Groups Projects
Commit 0ebcf9a5 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix bug in UNV format introduced in 1.53 (BEAM/BEAM2 require special
case in print_record)
parent 93e6b09e
No related branches found
No related tags found
No related merge requests found
// $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 // 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, ...@@ -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", fprintf(UNVFILE, "%10d%10d%10d%10d%10d%10d\n",
num, fetyp, geo, geo, 7, n + nsup); num, fetyp, geo, geo, 7, n + nsup);
int ntot = 0; if(fetyp == BEAM || fetyp == BEAM2)
fprintf(UNVFILE, "%10d%10d%10d\n", 0, 0, 0); fprintf(UNVFILE, "%10d%10d%10d\n", 0, 0, 0);
int ntot = 0;
for(int k = 0; k < n; k++) { for(int k = 0; k < n; k++) {
fprintf(UNVFILE, "%10d", v[k]->Num); fprintf(UNVFILE, "%10d", v[k]->Num);
if(ntot % 8 == 7) if(ntot % 8 == 7)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment