mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
store refinement
This commit is contained in:
parent
fa3ae333ce
commit
c309c9846f
@ -126,12 +126,6 @@ namespace netgen
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Refinement & NetgenGeometry :: GetRefinement () const
|
|
||||||
{
|
|
||||||
return *new Refinement(*this);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void NetgenGeometry :: Save (string filename) const
|
void NetgenGeometry :: Save (string filename) const
|
||||||
{
|
{
|
||||||
throw NgException("Cannot save geometry - no geometry available");
|
throw NgException("Cannot save geometry - no geometry available");
|
||||||
|
@ -15,12 +15,20 @@ namespace netgen
|
|||||||
|
|
||||||
class DLL_HEADER NetgenGeometry
|
class DLL_HEADER NetgenGeometry
|
||||||
{
|
{
|
||||||
|
unique_ptr<Refinement> ref;
|
||||||
public:
|
public:
|
||||||
|
NetgenGeometry()
|
||||||
|
{
|
||||||
|
ref = make_unique<Refinement>(*this);
|
||||||
|
}
|
||||||
virtual ~NetgenGeometry () { ; }
|
virtual ~NetgenGeometry () { ; }
|
||||||
|
|
||||||
virtual int GenerateMesh (shared_ptr<Mesh> & mesh, MeshingParameters & mparam);
|
virtual int GenerateMesh (shared_ptr<Mesh> & mesh, MeshingParameters & mparam);
|
||||||
|
|
||||||
virtual const Refinement & GetRefinement () const;
|
virtual const Refinement & GetRefinement () const
|
||||||
|
{
|
||||||
|
return *ref;
|
||||||
|
}
|
||||||
|
|
||||||
virtual void DoArchive(Archive&)
|
virtual void DoArchive(Archive&)
|
||||||
{ throw NgException("DoArchive not implemented for " + Demangle(typeid(*this).name())); }
|
{ throw NgException("DoArchive not implemented for " + Demangle(typeid(*this).name())); }
|
||||||
|
Loading…
Reference in New Issue
Block a user