Update Bathymetry.jl#702
Conversation
Fix regrid_bathymetry for other types of grid
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #702 +/- ##
===========================================
+ Coverage 11.46% 32.03% +20.56%
===========================================
Files 59 59
Lines 3261 3318 +57
===========================================
+ Hits 374 1063 +689
+ Misses 2887 2255 -632 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
glwagner
left a comment
There was a problem hiding this comment.
We want to keep the error, and extend support to any OrthogonalSphericalShellGrid probably.
|
@glwagner Thanks for the review! |
|
hmm actually I think I misunderstood the code. This is purely getting the name of the grid... I take it back, this is ok to merge. However, I would move where we define |
glwagner
left a comment
There was a problem hiding this comment.
I suggest moving gridtype = string(nameof(typeof(target_grid))) to line 229.
|
@glwagner Thanks a lot for reviewing and approving! 🚀 |
Problem
regrid_bathymetryfails when used withRotatedLatitudeLongitudeGriddue to a strict grid type check ininterpolate_bathymetry_in_passes.Solution
Remove the unnecessary grid type validation as suggested in the discussion. The
interpolate!function only depends on the source grid type, not the destination grid type.Changes
string(nameof(typeof(target_grid)))to support any grid type while preserving logging functionality.Closes #666