From f23d0debb1df8ca53047397e006f7b91685ff293 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 18 Jan 2016 12:02:29 +0100 Subject: [PATCH] cast ELEMENT_TYPE to int for error messages (VS2015 was complaining) --- libsrc/meshing/meshtype.cpp | 8 ++++---- libsrc/meshing/meshtype.hpp | 2 +- libsrc/meshing/secondorder.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index 73c38901..120efffc 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -428,7 +428,7 @@ namespace netgen case TRIG: pp = &eltriqp[0][0]; break; case QUAD: pp = &elquadqp[ip-1][0]; break; default: - PrintSysError ("Element2d::GetIntegrationPoint, illegal type ", typ); + PrintSysError ("Element2d::GetIntegrationPoint, illegal type ", int(typ)); } p.X() = pp[0]; @@ -483,7 +483,7 @@ namespace netgen case TRIG: dshapep = &ipdtrig.Get(ip)->dshape; break; case QUAD: dshapep = &ipdquad.Get(ip)->dshape; break; default: - PrintSysError ("Element2d::GetTransformation, illegal type ", typ); + PrintSysError ("Element2d::GetTransformation, illegal type ", int(typ)); } CalcABt (pmat, *dshapep, trans); @@ -512,7 +512,7 @@ namespace netgen shape(3) = (1-p.X()) * p.Y(); break; default: - PrintSysError ("Element2d::GetShape, illegal type ", typ); + PrintSysError ("Element2d::GetShape, illegal type ", int(typ)); } } @@ -582,7 +582,7 @@ namespace netgen break; default: - PrintSysError ("Element2d::GetDShape, illegal type ", typ); + PrintSysError ("Element2d::GetDShape, illegal type ", int(typ)); } } diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 56786569..d0072767 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -341,7 +341,7 @@ namespace netgen case QUAD6: np = 6; break; case QUAD8: np = 8; break; default: - PrintSysError ("Element2d::SetType, illegal type ", typ); + PrintSysError ("Element2d::SetType, illegal type ", int(typ)); } } /// diff --git a/libsrc/meshing/secondorder.cpp b/libsrc/meshing/secondorder.cpp index 8f419b01..5d3bd2f0 100644 --- a/libsrc/meshing/secondorder.cpp +++ b/libsrc/meshing/secondorder.cpp @@ -244,7 +244,7 @@ namespace netgen break; } default: - PrintSysError ("MakeSecondOrder, illegal vol type ", el.GetType()); + PrintSysError ("MakeSecondOrder, illegal vol type ", int(el.GetType())); }