From 9df9eeca0b9f486b73f93a565719c1c1533af2aa Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Mon, 24 Nov 2014 16:23:34 +0000 Subject: [PATCH] fix error in debug mode --- libsrc/meshing/meshtype.hpp | 2 +- libsrc/meshing/python_mesh.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index c1813849..6105cc70 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -360,7 +360,7 @@ namespace netgen { #ifdef DEBUG if (typ != QUAD && typ != QUAD6 && typ != QUAD8) - PrintSysError ("element2d::GetNV not implemented for typ", typ) + PrintSysError ("element2d::GetNV not implemented for typ", typ); #endif return 4; } diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 7abb91f1..739f0e65 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -58,10 +58,10 @@ void ExportNetgenMeshing() .add_property("p", FunctionPointer([](const MeshPoint & self) { bp::list l; - l.append ( (self)[0] ); - l.append ( (self)[1] ); - l.append ( (self)[2] ); - return l; + l.append ( self[0] ); + l.append ( self[1] ); + l.append ( self[2] ); + return bp::tuple(l); })) ;