-
Notifications
You must be signed in to change notification settings - Fork 137
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
Support monotonically increasing/decreasing array in data_override #1388
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d8beaf1
update nearest_index to support motonically increasing/decreasing arrays
uramirez8707 aa814a6
Fix the flip of arr
uramirez8707 7ea4bef
Fix axis_edges for decreasing grids
296f269
Add tests to test axis_eges for decreasing array
uramirez8707 4ed20f9
Merge branch 'main' of github.com:NOAA-GFDL/FMS into nearest_index_add
uramirez8707 b732e6e
minor documentation, clean up unused variables
uramirez8707 0800d27
Implement axis_utils 'nearest_index' in horiz_interp_bilinear, remove…
uramirez8707 6b035b1
add a test for decreasing grids in horiz_interp
uramirez8707 87f9e22
rename loop index
uramirez8707 2e592e0
fix data_override for decreasing grid + tests (this is mostly broken)
uramirez8707 0f2129a
attempt to add a data_override unit test to test increasing and decre…
uramirez8707 cc1cce8
Merge branch 'main' of github.com:NOAA-GFDL/FMS into test
uramirez8707 fd63642
Fix white space and line count limit
uramirez8707 a15c4f0
Clean up the INPUT after done with it
uramirez8707 d7345dd
Move the ongrid test to its own script
uramirez8707 60bab6b
Clean up after running each test
uramirez8707 4f6c6c7
replace a dot with a star
uramirez8707 3ab69fa
Add yaml r4/r8 tests
uramirez8707 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1031,14 +1031,14 @@ subroutine DATA_OVERRIDE_3D_(gridname,fieldname_code,return_data,time,override,d | |
ie_src = axis_sizes(1) | ||
js_src = 1 | ||
je_src = axis_sizes(2) | ||
do j = 1, axis_sizes(2)+1 | ||
if( override_array(curr_position)%lat_in(j) > lat_min ) exit | ||
js_src = j | ||
enddo | ||
do j = 1, axis_sizes(2)+1 | ||
je_src = j | ||
if( override_array(curr_position)%lat_in(j) > lat_max ) exit | ||
enddo | ||
! do j = 1, axis_sizes(2)+1 | ||
! if( override_array(curr_position)%lat_in(j) > lat_min ) exit | ||
! js_src = j | ||
! enddo | ||
! do j = 1, axis_sizes(2)+1 | ||
! je_src = j | ||
! if( override_array(curr_position)%lat_in(j) > lat_max ) exit | ||
! enddo | ||
Comment on lines
+1034
to
+1041
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: remove |
||
|
||
!--- bicubic interpolation need one extra point in each direction. Also add | ||
!--- one more point for because lat_in is in the corner but the interpolation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is an incomplete sentence. Can you fix for the beta tag?