diff --git a/libsrc/meshing/meshclass.hpp b/libsrc/meshing/meshclass.hpp index f89dddc1..4e05dbf2 100644 --- a/libsrc/meshing/meshclass.hpp +++ b/libsrc/meshing/meshclass.hpp @@ -507,7 +507,7 @@ namespace netgen /// LocalH & LocalHFunction (int layer=1) { return * lochfunc[layer-1]; } - shared_ptr GetLocalH(int layer=1) const + shared_ptr & GetLocalH(int layer=1) const { if(lochfunc.Size() == 1) return lochfunc[0];