smaller int-type for GetNV

This commit is contained in:
Joachim Schöberl 2017-05-31 07:54:12 +02:00
parent a22e36f182
commit 9324121953

View File

@ -680,7 +680,7 @@ namespace netgen
/// ///
int GetNP () const { return np; } int GetNP () const { return np; }
/// ///
short int GetNV() const uint8_t GetNV() const
{ {
__assume(typ >= TET && typ <= HEX); __assume(typ >= TET && typ <= HEX);
switch (typ) switch (typ)
@ -699,6 +699,7 @@ namespace netgen
#ifdef DEBUG #ifdef DEBUG
PrintSysError ("Element3d::GetNV not implemented for typ ", typ); PrintSysError ("Element3d::GetNV not implemented for typ ", typ);
#endif #endif
__assume(false);
return -1; return -1;
} }
} }