-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 2D position computation #1047
base: dev
Are you sure you want to change the base?
Conversation
thanks a lot @eve-le-guillou ! |
You might also need to modify the The |
Hi, I added the recommended changes and also changed the corresponding methods in the periodic triangulation (that also showed some It should be good now. |
Hi all,
This PR fixes an incoherence in
triangleToPosition2D
.Originally, it would output the position in terms of triangles (and not VTK squares).
The problem is that its 3D counterpart
tetrahedronToPosition
, outputs the number of VTK cubes. This creates an incoherence when both methods are used within the same code.Dividing
p[0]
intriangleToPosition2D
makes the method output squares. However, this means changing as wellgetCellVertex
, so that it does not divide by two for the 2D case.This was detected due to the use of both functions in MPI features.
To test that these changes don't impact more of the code, I computed the
DiscreteGradient
on thecells.vti
dataset. No differences have been detected when comparing the results with and without the changes.Thanks for any feedback,