mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
timestamps via interface V2
This commit is contained in:
parent
d6b7439788
commit
6df972be05
@ -300,6 +300,7 @@ namespace netgen
|
|||||||
|
|
||||||
shared_ptr<Mesh> GetMesh () const { return mesh; }
|
shared_ptr<Mesh> GetMesh () const { return mesh; }
|
||||||
shared_ptr<Mesh> SelectMesh () const;
|
shared_ptr<Mesh> SelectMesh () const;
|
||||||
|
inline auto GetTimeStamp() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -296,3 +296,6 @@ template <> NGX_INLINE DLL_HEADER const Ng_Node<2> Ngx_Mesh :: GetNode<2> (int n
|
|||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
inline auto Ngx_Mesh :: GetTimeStamp() const { return mesh->GetTimeStamp(); }
|
||||||
|
@ -708,6 +708,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
self.GetGeometry()->GetRefinement().Refine(self);
|
self.GetGeometry()->GetRefinement().Refine(self);
|
||||||
else
|
else
|
||||||
Refinement().Refine(self);
|
Refinement().Refine(self);
|
||||||
|
self.UpdateTopology();
|
||||||
}),py::call_guard<py::gil_scoped_release>())
|
}),py::call_guard<py::gil_scoped_release>())
|
||||||
|
|
||||||
.def ("SecondOrder", FunctionPointer
|
.def ("SecondOrder", FunctionPointer
|
||||||
|
@ -15,6 +15,8 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
PrintMessage (3, "Refine mesh");
|
PrintMessage (3, "Refine mesh");
|
||||||
|
|
||||||
|
mesh.SetNextMajorTimeStamp();
|
||||||
|
|
||||||
if (ntasks > 1 && id == 0)
|
if (ntasks > 1 && id == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user