From 1d9281f41222a07fcdaf18c8f640908bcb46135b Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 5 Feb 2021 12:10:22 +0100 Subject: [PATCH] localh as shared_ptr in mesh --- libsrc/meshing/meshclass.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }