mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
reduce warnings
This commit is contained in:
parent
b3506658df
commit
777f9c65f2
@ -581,7 +581,7 @@ namespace netgen
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
class RemoveDummyIterator : public SolidIterator
|
class RemoveDummyIterator : public SolidIterator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -593,6 +593,8 @@ namespace netgen
|
|||||||
|
|
||||||
void RemoveDummyIterator :: Do(Solid * sol)
|
void RemoveDummyIterator :: Do(Solid * sol)
|
||||||
{
|
{
|
||||||
|
cerr << "remove dummy iterator is obsolete" << endl;
|
||||||
|
|
||||||
if ( (sol->op == Solid::SUB || sol->op == Solid::SECTION ||
|
if ( (sol->op == Solid::SUB || sol->op == Solid::SECTION ||
|
||||||
sol->op == Solid::UNION)
|
sol->op == Solid::UNION)
|
||||||
&& sol->s1->op == Solid::DUMMY)
|
&& sol->s1->op == Solid::DUMMY)
|
||||||
@ -601,6 +603,7 @@ namespace netgen
|
|||||||
&& sol->s2->op == Solid::DUMMY)
|
&& sol->s2->op == Solid::DUMMY)
|
||||||
sol->s2 = sol->s2->s1;
|
sol->s2 = sol->s2->s1;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -181,6 +181,9 @@ namespace netgen
|
|||||||
s1->IterateSolid (it, only_once);
|
s1->IterateSolid (it, only_once);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case TERM:
|
||||||
|
case TERM_REF:
|
||||||
|
break; // do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ class Solid
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef enum optyp1 { TERM, TERM_REF, SECTION, UNION, SUB, ROOT, DUMMY } optyp;
|
typedef enum optyp1 { TERM, TERM_REF, SECTION, UNION, SUB, ROOT /*, DUMMY */ } optyp;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
char * name;
|
char * name;
|
||||||
|
@ -1086,6 +1086,9 @@ void Element :: SetType (ELEMENT_TYPE atyp)
|
|||||||
case HEX: np = 8; break;
|
case HEX: np = 8; break;
|
||||||
case TET10: np = 10; break;
|
case TET10: np = 10; break;
|
||||||
case PRISM12: np = 12; break;
|
case PRISM12: np = 12; break;
|
||||||
|
|
||||||
|
default: break;
|
||||||
|
cerr << "Element::SetType unknown type " << int(typ) << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1751,6 +1754,8 @@ GetTransformation (int ip, class DenseMatrix & pmat,
|
|||||||
{
|
{
|
||||||
case TET: dshapep = &ipdtet.Get(ip)->dshape; break;
|
case TET: dshapep = &ipdtet.Get(ip)->dshape; break;
|
||||||
case TET10: dshapep = &ipdtet10.Get(ip)->dshape; break;
|
case TET10: dshapep = &ipdtet10.Get(ip)->dshape; break;
|
||||||
|
default:
|
||||||
|
PrintSysError ("Element::GetTransformation, illegal type ", int(typ));
|
||||||
}
|
}
|
||||||
|
|
||||||
CalcABt (pmat, *dshapep, trans);
|
CalcABt (pmat, *dshapep, trans);
|
||||||
@ -2248,6 +2253,8 @@ void Element :: ComputeIntegrationPointData () const
|
|||||||
{
|
{
|
||||||
case TET: ipdtet.SetSize(GetNIP()); break;
|
case TET: ipdtet.SetSize(GetNIP()); break;
|
||||||
case TET10: ipdtet10.SetSize(GetNIP()); break;
|
case TET10: ipdtet10.SetSize(GetNIP()); break;
|
||||||
|
default:
|
||||||
|
PrintSysError ("Element::ComputeIntegrationPoint, illegal type2 ", int(typ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user