reduce warnings

This commit is contained in:
Joachim Schoeberl 2009-04-27 17:44:28 +00:00
parent b3506658df
commit 777f9c65f2
4 changed files with 15 additions and 2 deletions

View File

@ -581,7 +581,7 @@ namespace netgen
/*
class RemoveDummyIterator : public SolidIterator
{
public:
@ -593,6 +593,8 @@ namespace netgen
void RemoveDummyIterator :: Do(Solid * sol)
{
cerr << "remove dummy iterator is obsolete" << endl;
if ( (sol->op == Solid::SUB || sol->op == Solid::SECTION ||
sol->op == Solid::UNION)
&& sol->s1->op == Solid::DUMMY)
@ -601,6 +603,7 @@ namespace netgen
&& sol->s2->op == Solid::DUMMY)
sol->s2 = sol->s2->s1;
}
*/

View File

@ -181,6 +181,9 @@ namespace netgen
s1->IterateSolid (it, only_once);
break;
}
case TERM:
case TERM_REF:
break; // do nothing
}
}

View File

@ -32,7 +32,7 @@ class Solid
{
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:
char * name;

View File

@ -1086,6 +1086,9 @@ void Element :: SetType (ELEMENT_TYPE atyp)
case HEX: np = 8; break;
case TET10: np = 10; 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 TET10: dshapep = &ipdtet10.Get(ip)->dshape; break;
default:
PrintSysError ("Element::GetTransformation, illegal type ", int(typ));
}
CalcABt (pmat, *dshapep, trans);
@ -2248,6 +2253,8 @@ void Element :: ComputeIntegrationPointData () const
{
case TET: ipdtet.SetSize(GetNIP()); break;
case TET10: ipdtet10.SetSize(GetNIP()); break;
default:
PrintSysError ("Element::ComputeIntegrationPoint, illegal type2 ", int(typ));
}