fix warnings

This commit is contained in:
Joachim Schöberl 2018-03-08 21:36:26 +01:00
parent c06246f3bf
commit cf0d3f6682
3 changed files with 8 additions and 7 deletions

View File

@ -222,7 +222,7 @@ namespace netgen
ata.Solve (f, u); ata.Solve (f, u);
// the sign // the sign
Point<D> p0 = GetPoint(0); // Point<D> p0 = GetPoint(0);
Vec<D> ht = GetTangent(0); Vec<D> ht = GetTangent(0);
Vec<2> tang(ht(0), ht(1)); Vec<2> tang(ht(0), ht(1));

View File

@ -17,12 +17,13 @@ namespace netgen
if (!w) w = h; if (!w) w = h;
width = w; width = w;
height = h; height = h;
if (h*w) int hw = h*w;
data = new double[h*w]; if (hw)
data = new double[hw];
else else
data = 0; data = 0;
for (int i = 0 ; i < (h * w); i++) for (int i = 0 ; i < (hw); i++)
data[i] = 0; data[i] = 0;
} }

View File

@ -8,7 +8,7 @@ namespace netgen
static mutex buildsearchtree_mutex; static mutex buildsearchtree_mutex;
Mesh :: Mesh () Mesh :: Mesh ()
: surfarea(*this), topology(*this) : topology(*this), surfarea(*this)
{ {
// volelements.SetName ("vol elements"); // volelements.SetName ("vol elements");
// surfelements.SetName ("surf elements"); // surfelements.SetName ("surf elements");
@ -5602,7 +5602,7 @@ namespace netgen
{ {
int i, j, nv; int i, j, nv;
int ne = GetNE(); int ne = GetNE();
int nse = GetNSE(); // int nse = GetNSE();
numvertices = 0; numvertices = 0;
for (i = 1; i <= ne; i++) for (i = 1; i <= ne; i++)