-
Notifications
You must be signed in to change notification settings - Fork 136
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
set is_allocated in all horiz_interp_type_new routines #1538
Conversation
!! for bicubic set up | ||
real(HI_TEST_KIND_), allocatable :: lon_src_1d(:), lat_src_1d(:) | ||
real(HI_TEST_KIND_), allocatable :: lon_dst_1d(:), lat_dst_1d(:) |
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.
These should have doxygen documentation instead of just a comment above
@@ -36,7 +36,7 @@ module horiz_interp_spherical_mod | |||
use fms_mod, only : write_version_number | |||
use fms_mod, only : check_nml_error | |||
use constants_mod, only : pi | |||
use horiz_interp_type_mod, only : horiz_interp_type, stats | |||
use horiz_interp_type_mod, only : horiz_interp_type, stats, SPHERICA |
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.
Is there a reason we do not include the trailing L
other than to limit the variable name to 8 characters?
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.
No as far as I can tell that's the only reason it's cut off. I checked if there was anything else used in FMS named spherical
but there's not.
Should we update it to add the L?
…d parameters from libFMS.F90
@thomas-robinson @bensonr This should be ready now, I updated the SPHERICA to SPHERICAL. I noticed that the interpolation method values were made public in the libFMS.F90 file so I also removed them from there as well since they should only be internal. |
Description
Sets the
is_allocated
field as well as themethod_type
within horiz_interp_types when called from any of the method specific horiz_interp_new routines. This should prevent reallocation errors as described in the issue below.Also adds some calls to the unit test to test this functionality and renames one of the CPP macros to make more sense.
Fixes #1533
How Has This Been Tested?
make distcheck with oneapi 2024.01 on amd box
Checklist:
make distcheck
passes