cast ELEMENT_TYPE to int for error messages (VS2015 was complaining)

This commit is contained in:
Matthias 2016-01-18 12:02:29 +01:00
parent 5f83a4b2cc
commit f23d0debb1
3 changed files with 6 additions and 6 deletions

View File

@ -428,7 +428,7 @@ namespace netgen
case TRIG: pp = &eltriqp[0][0]; break; case TRIG: pp = &eltriqp[0][0]; break;
case QUAD: pp = &elquadqp[ip-1][0]; break; case QUAD: pp = &elquadqp[ip-1][0]; break;
default: default:
PrintSysError ("Element2d::GetIntegrationPoint, illegal type ", typ); PrintSysError ("Element2d::GetIntegrationPoint, illegal type ", int(typ));
} }
p.X() = pp[0]; p.X() = pp[0];
@ -483,7 +483,7 @@ namespace netgen
case TRIG: dshapep = &ipdtrig.Get(ip)->dshape; break; case TRIG: dshapep = &ipdtrig.Get(ip)->dshape; break;
case QUAD: dshapep = &ipdquad.Get(ip)->dshape; break; case QUAD: dshapep = &ipdquad.Get(ip)->dshape; break;
default: default:
PrintSysError ("Element2d::GetTransformation, illegal type ", typ); PrintSysError ("Element2d::GetTransformation, illegal type ", int(typ));
} }
CalcABt (pmat, *dshapep, trans); CalcABt (pmat, *dshapep, trans);
@ -512,7 +512,7 @@ namespace netgen
shape(3) = (1-p.X()) * p.Y(); shape(3) = (1-p.X()) * p.Y();
break; break;
default: default:
PrintSysError ("Element2d::GetShape, illegal type ", typ); PrintSysError ("Element2d::GetShape, illegal type ", int(typ));
} }
} }
@ -582,7 +582,7 @@ namespace netgen
break; break;
default: default:
PrintSysError ("Element2d::GetDShape, illegal type ", typ); PrintSysError ("Element2d::GetDShape, illegal type ", int(typ));
} }
} }

View File

@ -341,7 +341,7 @@ namespace netgen
case QUAD6: np = 6; break; case QUAD6: np = 6; break;
case QUAD8: np = 8; break; case QUAD8: np = 8; break;
default: default:
PrintSysError ("Element2d::SetType, illegal type ", typ); PrintSysError ("Element2d::SetType, illegal type ", int(typ));
} }
} }
/// ///

View File

@ -244,7 +244,7 @@ namespace netgen
break; break;
} }
default: default:
PrintSysError ("MakeSecondOrder, illegal vol type ", el.GetType()); PrintSysError ("MakeSecondOrder, illegal vol type ", int(el.GetType()));
} }