mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
reduce warnings
This commit is contained in:
parent
7a6e3f64c1
commit
1fd07f3845
@ -544,18 +544,20 @@ HPREF_ELEMENT_TYPE ClassifyPrism(HPRefElement & el, INDEX_2_HASHTABLE<int> & edg
|
||||
break;
|
||||
case 1:
|
||||
if(sve[0] <= 1 && sve[1] <= 1)
|
||||
if(sve[2]==0)
|
||||
{
|
||||
types[0] = HP_PRISM_1FB_0E_0V;
|
||||
types[1] = HP_PRISM_1FA_1FB_0E_0V;
|
||||
types[2] = HP_PRISM_2FA_1FB_0E_0V;
|
||||
}
|
||||
else
|
||||
{
|
||||
types[0] = HP_PRISM_1FB_1EC_0V;
|
||||
types[1] = HP_PRISM_1FA_1FB_1EC_0V;
|
||||
types[2] = HP_PRISM_2FA_1FB_1EC_0V;
|
||||
}
|
||||
{
|
||||
if(sve[2]==0)
|
||||
{
|
||||
types[0] = HP_PRISM_1FB_0E_0V;
|
||||
types[1] = HP_PRISM_1FA_1FB_0E_0V;
|
||||
types[2] = HP_PRISM_2FA_1FB_0E_0V;
|
||||
}
|
||||
else
|
||||
{
|
||||
types[0] = HP_PRISM_1FB_1EC_0V;
|
||||
types[1] = HP_PRISM_1FA_1FB_1EC_0V;
|
||||
types[2] = HP_PRISM_2FA_1FB_1EC_0V;
|
||||
}
|
||||
}
|
||||
|
||||
if(sve[0] > 1 && sve[2] >= 1 && sve[1] <= 1)
|
||||
{
|
||||
|
@ -162,6 +162,8 @@ Ng_GetSurfaceElement (Ng_Mesh * mesh, int num, int * pi)
|
||||
case 3: et = NG_TRIG; break;
|
||||
case 4: et = NG_QUAD; break;
|
||||
case 6: et = NG_TRIG6; break;
|
||||
default:
|
||||
et = NG_TRIG; break; // for the compiler
|
||||
}
|
||||
return et;
|
||||
}
|
||||
@ -179,6 +181,8 @@ Ng_GetVolumeElement (Ng_Mesh * mesh, int num, int * pi)
|
||||
case 5: et = NG_PYRAMID; break;
|
||||
case 6: et = NG_PRISM; break;
|
||||
case 10: et = NG_TET10; break;
|
||||
default:
|
||||
et = NG_TET; break; // for the compiler
|
||||
}
|
||||
return et;
|
||||
}
|
||||
@ -428,9 +432,8 @@ DLL_HEADER Ng_Result Ng_STL_InitSTLGeometry (Ng_STL_Geometry * geom)
|
||||
|
||||
if (readedges.Size() != 0)
|
||||
{
|
||||
int i;
|
||||
/*
|
||||
for (i = 1; i <= readedges.Size(); i+=2)
|
||||
for (int i = 1; i <= readedges.Size(); i+=2)
|
||||
{
|
||||
cout << "e(" << readedges.Get(i) << "," << readedges.Get(i+1) << ")" << endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user