diff --git a/libsrc/meshing/meshclass.hpp b/libsrc/meshing/meshclass.hpp index 3bdaf219..6faae381 100644 --- a/libsrc/meshing/meshclass.hpp +++ b/libsrc/meshing/meshclass.hpp @@ -69,7 +69,7 @@ namespace netgen /** Representation of local mesh-size h */ - unique_ptr lochfunc; + shared_ptr lochfunc; /// double hglob; /// @@ -465,6 +465,10 @@ namespace netgen bool HasLocalHFunction () { return lochfunc != nullptr; } /// LocalH & LocalHFunction () { return * lochfunc; } + + shared_ptr GetLocalH() const { return lochfunc; } + void SetLocalH(shared_ptr loch) { lochfunc = loch; } + /// bool LocalHFunctionGenerated(void) const { return (lochfunc != NULL); }