mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
fix warnings
This commit is contained in:
parent
c06246f3bf
commit
cf0d3f6682
@ -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));
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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++)
|
||||||
|
Loading…
Reference in New Issue
Block a user