-
Notifications
You must be signed in to change notification settings - Fork 42
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
Improve robustness of conservative spherical polygon interpolation for high resolution meshes #130
Improve robustness of conservative spherical polygon interpolation for high resolution meshes #130
Conversation
Private downstream CI failed. |
Hi, sorry I did not enter the details of these changes (and honesty I probably wouldn't understand them), but I take the opportunity to share with you what we are dealing with in OASIS and that has already been fixed in ESMF and YAC interpolators (not sure about XIOS). Some finite volumes models (e.g the FESOM2 ocean model https://fesom.de/models/fesom20/) define the control volumes with an enhanced dual mesh also passing by the midpoints of the primal mesh edges (cf the C_i cell in Fig 2. from https://fesom2.readthedocs.io/en/latest/geometry.html). |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #130 +/- ##
===========================================
+ Coverage 77.36% 78.02% +0.66%
===========================================
Files 810 810
Lines 58708 58896 +188
===========================================
+ Hits 45420 45956 +536
+ Misses 13288 12940 -348
☔ View full report in Codecov by Sentry. |
Hi Andrea. Thanks for your good remarks! We do aim for a generic conservative interpolation, MPI-parallel & 1st/2nd order. Data on mesh can be either in the cell centres or on the vertices of a mesh. We intersect only convex polygons and polygon edges being great arcs, so we have to split non-convex polygon around a vertex into convex quads. This has worked well for us so far. I would be grateful if you can provide us with the one example causing problems in the "pre-Sutherland-Hodgman" SCRIP library. Thanks again! |
Done! |
a31bd02
to
dd1503c
Compare
Private downstream CI succeeded. |
…CTOR env var New default 1e8*eps instead of 1e4*eps. For previous behaviour: ATLAS_COMPAREPOINTXYZ_EPS_FACTOR=1e4 For high resolution we want to have it to 1e4, for low resolution 1e8 The detection mechanism of source points needs to be replaced with something deterministic that does not rely on comparing points.
dd1503c
to
5233ae5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @sbrdar !!!
Private downstream CI succeeded. |
Fixing #129
Remaining issue from Development of efficient conservative spherical polygon interpolation #129