-
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
Fix send_data race condition(?) + add send_data tests #1130
Fix send_data race condition(?) + add send_data tests #1130
Conversation
@@ -1647,6 +1647,7 @@ LOGICAL FUNCTION send_data_3d(diag_field_id, field, time, is_in, js_in, ks_in, & | |||
IF ( fms_error_handler('diag_manager_mod::send_data_3d', err_msg_local, err_msg) ) RETURN | |||
END IF | |||
if (use_modern_diag) then !> Set up array lengths for remapping | |||
field_modern => null() |
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 should use nullify
here I think...
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 think they do the same thing
if (id_y3 .ne. 4) call mpp_error(FATAL, "The y3 axis does not have the expected id") | ||
if (id_ug .ne. 5) call mpp_error(FATAL, "The ug axis does not have the expected id") | ||
if (id_z .ne. 6) call mpp_error(FATAL, "The z axis does not have the expected id") | ||
if (.not. debug) then |
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.
What is debug
supposed to do? Why are these checks in here if they are just being skipped? Are the test specific?
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.
debug
is a namelist flag. when .true.
it ignored the ids checks.
FMS/test_fms/diag_manager/test_modern_diag.F90
Lines 81 to 84 in 488dfa1
logical :: debug = .false. !< Flag used to ignore the axis/field_ids checks in the test. | |
!! Useful when using a portion or a different diag_table.yaml | |
namelist / test_modern_diag_nml / debug |
This is going to be useful when debugging because I will be able to modify the diag_table.yaml to just include whatever feature I am debugging (like static fields, or diurnal fields, etc)
used = send_data(id_var6, var_data%var6, Time) | ||
used = send_data(id_var7, var_data%var6, Time) | ||
|
||
!TODO I don't know about this (scalar field) or how this is suppose to work #WUT |
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.
We'll find out...
Description
Fixes # (issue)
How Has This Been Tested?
CI
Checklist:
make distcheck
passes