-
Notifications
You must be signed in to change notification settings - Fork 141
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
Mixed precision axis_utils2 #1081
Conversation
Conflicts: axis_utils/include/axis_utils2.inc
write (unit,*) '=> Error: "nearest_index" array must be monotonically increasing & | ||
&when searching for nearest value to ',value | ||
write (unit,*) '=> Error: "nearest_index" array must be monotonically increasing' & | ||
& // 'when searching for nearest value to ', value |
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 this change necessary?
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.
I believe the \\
are for the gcc compiler to understand the string concatanation
axis_utils/include/axis_utils2.inc
Outdated
keep_going = .true. | ||
do while (i <= ia .and. keep_going) | ||
i = i+1 | ||
if (value <= array(i)) then | ||
frac_index = float(i-1) + (value-array(i-1))/(array(i)-array(i-1)) | ||
keep_going = .false. | ||
FRAC_INDEX_ = float(i-1) + (value-array(i-1))/(array(i)-array(i-1)) |
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.
instead of float, real(i-1,FMS_AI_KIND_)
@@ -26,7 +26,7 @@ program test_axis_utils | |||
use axis_utils2_mod, only : axis_edges | |||
use fms2_io_mod, only : open_file, close_file, write_data, register_axis, register_field, & | |||
FmsNetcdfFile_t, register_variable_attribute | |||
use platform_mod, only : r8_kind | |||
use platform_mod, only : r4_kind, r8_kind |
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.
You do not need the test_axis_utils.F90 file and should be deleted?
BREAKING CHANGE: The following namelist flags are deprecated and will now result in a fatal error if used: grid_center_bug, read_data_bug, retain_cm3_bug, and reproduce_siena
@mcallic2 I think you pulled from |
I messed up pulling in main on this PR. I created a new PR to hide my shame, please refer to that. |
Description
Adds all changes needed for axis_utils2 to add mixed mode precision
Fixes # (issue)
How Has This Been Tested?
Autotools using oneapi and gcc compiler, and cmake
Checklist:
make distcheck
passes