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