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);
// the sign
Point<D> p0 = GetPoint(0);
// Point<D> p0 = GetPoint(0);
Vec<D> ht = GetTangent(0);
Vec<2> tang(ht(0), ht(1));

View File

@ -15,14 +15,15 @@ namespace netgen
DenseMatrix :: DenseMatrix (int h, int w)
{
if (!w) w = h;
width = w;
width = w;
height = h;
if (h*w)
data = new double[h*w];
int hw = h*w;
if (hw)
data = new double[hw];
else
data = 0;
for (int i = 0 ; i < (h * w); i++)
for (int i = 0 ; i < (hw); i++)
data[i] = 0;
}

View File

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