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

Fixed bad init in xyzv::update

parent 13a325ec
No related branches found
No related tags found
No related merge requests found
// $Id: Views.cpp,v 1.36 2001-04-22 18:13:02 geuzaine Exp $
// $Id: Views.cpp,v 1.37 2001-04-29 14:35:32 geuzaine Exp $
#include <set>
#include "Gmsh.h"
......@@ -717,7 +717,7 @@ void xyzv::update (int n, double *v)
if(!vals)
{
vals = new double[n];
for(i=0;i<nbvals;i++)vals[i] = 0.0;
for(i=0;i<n;i++)vals[i] = 0.0;
nbvals = n;
nboccurences = 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment