changliao1025/pyflowline

Float data precision issue

Opened this issue · 1 comments

When the mesh was saved during the simulation, the precision was lost partially; this causes a vertex comparison function to fail in some steps:
image

The above pVertex_end is actually the point with the cell center. But during the transfer, a slight difference was introduced and the program will miss it.
In this case, we will use a distance to check whether they are the same or not.