mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
localh as shared_ptr in mesh
This commit is contained in:
parent
22aee3b3a5
commit
1d9281f412
@ -69,7 +69,7 @@ namespace netgen
|
|||||||
/**
|
/**
|
||||||
Representation of local mesh-size h
|
Representation of local mesh-size h
|
||||||
*/
|
*/
|
||||||
unique_ptr<LocalH> lochfunc;
|
shared_ptr<LocalH> lochfunc;
|
||||||
///
|
///
|
||||||
double hglob;
|
double hglob;
|
||||||
///
|
///
|
||||||
@ -465,6 +465,10 @@ namespace netgen
|
|||||||
bool HasLocalHFunction () { return lochfunc != nullptr; }
|
bool HasLocalHFunction () { return lochfunc != nullptr; }
|
||||||
///
|
///
|
||||||
LocalH & LocalHFunction () { return * lochfunc; }
|
LocalH & LocalHFunction () { return * lochfunc; }
|
||||||
|
|
||||||
|
shared_ptr<LocalH> GetLocalH() const { return lochfunc; }
|
||||||
|
void SetLocalH(shared_ptr<LocalH> loch) { lochfunc = loch; }
|
||||||
|
|
||||||
///
|
///
|
||||||
bool LocalHFunctionGenerated(void) const { return (lochfunc != NULL); }
|
bool LocalHFunctionGenerated(void) const { return (lochfunc != NULL); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user