Skip to content
Snippets Groups Projects
Commit 8e8faee1 authored by Éric Béchet's avatar Éric Béchet
Browse files

uninitialized stuff

parent 070de5a2
No related branches found
No related tags found
No related merge requests found
......@@ -51,11 +51,26 @@ CTX::CTX()
drawRotationCenter = 0;
pickElements = 0;
geom.draw = 1;
mesh.draw = 1;
post.draw = 1;
lock = 0; // very primitive locking
mesh.qualityInf = mesh.qualitySup = mesh.radiusInf = mesh.radiusSup = mesh.qualityType = 0;
mesh.triangles = mesh.tetrahedra = mesh.quadrangles = mesh.prisms = mesh.pyramids = mesh.hexahedra = mesh.lines = 0;
mesh.volumesEdges = mesh.volumesFaces = mesh.surfacesEdges = mesh.surfacesFaces = 0;
mesh.volumesFaces = mesh.surfacesEdges = mesh.surfacesFaces = 0;
mesh.smoothInternalEdges = mesh.smoothNormals = mesh.reverseAllNormals = mesh.explode = mesh.angleSmoothNormals = 0;
mesh.colorCarousel = 0;
mesh.changed = 0;
color.mesh.tangents = color.mesh.tetrahedron = color.mesh.triangle = color.mesh.prism = color.mesh.pyramid = color.mesh.hexahedron = 0;
color.mesh.tangents = color.mesh.line = color.mesh.quadrangle = 0;
for (int i = 0; i < 20; i++)
color.mesh.carousel[i] = 0;
post.draw = 1;
post.combineTime = 0; // try to combineTime views at startup
lock = 0; // very primitive locking
#if defined(HAVE_FLTK)
glFontEnum = FL_HELVETICA;
#else
......
......@@ -36,7 +36,7 @@ class linearSystemCSR : public linearSystem<scalar> {
sparsityPattern _sparsity; // only used for pre-allocation, does not store the sparsity once allocated
public:
linearSystemCSR()
: sorted(false), _a(0), _b(0), _x(0) {}
: sorted(false), _entriesPreAllocated(false), _a(0), _b(0), _x(0) {}
virtual bool isAllocated() const { return _a != 0; }
virtual void allocate(int) ;
virtual void clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment