mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-11 21:03:07 +05:00
avoid shared ptr copy
This commit is contained in:
parent
3b3491a597
commit
643898c5e2
@ -507,7 +507,7 @@ namespace netgen
|
|||||||
///
|
///
|
||||||
LocalH & LocalHFunction (int layer=1) { return * lochfunc[layer-1]; }
|
LocalH & LocalHFunction (int layer=1) { return * lochfunc[layer-1]; }
|
||||||
|
|
||||||
shared_ptr<LocalH> GetLocalH(int layer=1) const
|
shared_ptr<LocalH> & GetLocalH(int layer=1) const
|
||||||
{
|
{
|
||||||
if(lochfunc.Size() == 1)
|
if(lochfunc.Size() == 1)
|
||||||
return lochfunc[0];
|
return lochfunc[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user