fix warnings

This commit is contained in:
Joachim Schöberl 2018-03-08 22:31:00 +01:00
parent 5de403ffd8
commit 7c1cee3817
3 changed files with 6 additions and 8 deletions

View File

@ -198,13 +198,10 @@ Identifyable (const SpecialPoint & sp1, const SpecialPoint & sp2,
const TABLE<int> & specpoint2solid,
const TABLE<int> & specpoint2surface) const
{
int i;
double val;
SpecialPoint hsp1 = sp1;
SpecialPoint hsp2 = sp2;
for (i = 1; i <= 1; i++)
for (int i = 1; i <= 1; i++)
{
// Swap (hsp1, hsp2);
@ -1260,7 +1257,7 @@ BuildSurfaceElements (Array<Segment> & segs,
Vec<3> t1 = mesh[s1[1]] - mesh[s1[0]];
Vec<3> t2 = mesh[s2[1]] - mesh[s2[0]];
Vec<3> nst1 = Cross(t1, ns);
Vec<3> nst2 = Cross(t2, ns);
// Vec<3> nst2 = Cross(t2, ns);
Vec<3> dvec = Center(mesh[s1[0]], mesh[s1[1]])-Center(mesh[s2[0]], mesh[s2[1]]);
if (nst1 * dvec < 0) continue;

View File

@ -162,10 +162,11 @@ namespace netgen
Point<2> p;
CalcProj(point,p);
/*
double val = spline_coefficient(0)*p(0)*p(0) + spline_coefficient(1)*p(1)*p(1)
+ spline_coefficient(2)*p(0)*p(1) + spline_coefficient(3)*p(0)
+ spline_coefficient(4)*p(1) + spline_coefficient(5);
*/
Vec<2> pr = p-spline->StartPI();

View File

@ -129,8 +129,8 @@ namespace netgen
#ifdef OCCGEOMETRY
OCCGeometry * occgeometry = dynamic_cast<OCCGeometry*> (ng_geometry.get());
static char buf[1000];
buf[0] = 0;
// static char buf[1000];
// buf[0] = 0;
stringstream str;
if (argc >= 2)