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

fix crash in BDS::outputScalarField

parent 09dd6cb2
No related branches found
No related tags found
No related merge requests found
// $Id: BDS.cpp,v 1.72 2007-01-16 11:31:41 geuzaine Exp $ // $Id: BDS.cpp,v 1.73 2007-02-03 15:40:06 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -32,6 +32,7 @@ bool test_move_point_parametric_triangle (BDS_Point * p, double u, double v, BDS ...@@ -32,6 +32,7 @@ bool test_move_point_parametric_triangle (BDS_Point * p, double u, double v, BDS
void outputScalarField(std::list < BDS_Face * >t, const char *iii, int param) void outputScalarField(std::list < BDS_Face * >t, const char *iii, int param)
{ {
FILE *f = fopen(iii, "w"); FILE *f = fopen(iii, "w");
if(!f) return;
fprintf(f, "View \"scalar\" {\n"); fprintf(f, "View \"scalar\" {\n");
std::list < BDS_Face * >::iterator tit = t.begin(); std::list < BDS_Face * >::iterator tit = t.begin();
std::list < BDS_Face * >::iterator tite = t.end(); std::list < BDS_Face * >::iterator tite = t.end();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment