timestamps via interface V2

This commit is contained in:
Joachim Schöberl 2018-05-18 21:13:09 +02:00
parent d6b7439788
commit 6df972be05
4 changed files with 7 additions and 0 deletions

View File

@ -300,6 +300,7 @@ namespace netgen
shared_ptr<Mesh> GetMesh () const { return mesh; }
shared_ptr<Mesh> SelectMesh () const;
inline auto GetTimeStamp() const;
};

View File

@ -296,3 +296,6 @@ template <> NGX_INLINE DLL_HEADER const Ng_Node<2> Ngx_Mesh :: GetNode<2> (int n
return node;
}
inline auto Ngx_Mesh :: GetTimeStamp() const { return mesh->GetTimeStamp(); }

View File

@ -708,6 +708,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
self.GetGeometry()->GetRefinement().Refine(self);
else
Refinement().Refine(self);
self.UpdateTopology();
}),py::call_guard<py::gil_scoped_release>())
.def ("SecondOrder", FunctionPointer

View File

@ -15,6 +15,8 @@ namespace netgen
{
PrintMessage (3, "Refine mesh");
mesh.SetNextMajorTimeStamp();
if (ntasks > 1 && id == 0)
return;