mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +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> 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
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);
|
||||
else
|
||||
Refinement().Refine(self);
|
||||
self.UpdateTopology();
|
||||
}),py::call_guard<py::gil_scoped_release>())
|
||||
|
||||
.def ("SecondOrder", FunctionPointer
|
||||
|
@ -15,6 +15,8 @@ namespace netgen
|
||||
{
|
||||
PrintMessage (3, "Refine mesh");
|
||||
|
||||
mesh.SetNextMajorTimeStamp();
|
||||
|
||||
if (ntasks > 1 && id == 0)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user