-
Notifications
You must be signed in to change notification settings - Fork 145
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
Update filter_mod.rst #605
Conversation
Corrected documentation for output_forward_op_errors output
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.
Hi Ann, your documentation looks good.
I think there is a bug in the actual code (see the comment)
so we'll take a look a this before merging your updated documentation.
@kdraeder local obs num or key, what do you think is best for debugging?
| | | values listed: the observation number, | | ||
| | | the ensemble member number, and the | | ||
| | | values listed: the ensemble member number,| | ||
| | | the (local) observation number, and the | |
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.
thanks for this Ann,
Just looking at the issue #530 with the note on (local) observation number
vs observation number
I think the code is incorrect too:
DART/assimilation_code/modules/assimilation/filter_mod.f90
Lines 2024 to 2029 in 6eeb453
! qc_ens_handle is a real representing an integer; values /= 0 get written out | |
do i = 1, ens_size | |
do j = 1, qc_ens_handle%my_num_vars | |
if(nint(qc_ens_handle%copies(i, j)) /= 0) write(forward_unit, *) i, keys(j), nint(qc_ens_handle%copies(i, j)) | |
end do | |
end do |
keys(j) is going print
keys(1)
keys(2)
keys(3)
...
for every process.
rather than the key for the local observation
keys(qc_ens_handle%my_vars(1))
keys(qc_ens_handle%my_vars(2))
keys(qc_ens_handle%my_vars(3))
I think the code should print:
j
local observation number or
keys(qc_ens_handle%my_vars(j))
for the key
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.
Thanks Helen, missed that. Changed it so it prints keys(qc_ens_handle%my_vars(j))
https://github.com/NCAR/DART/pull/605/commits/1b7043eaaaf2ab62c7bd73f8af1ab48422ddd9f4
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.
need to decide whether to print local obs number or key.
The documentation and code need to match, which ever one we pick.
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.
A better solution from JLA:
print out both the local obs number and the key.
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.
A better solution from JLA:
print out both the local obs number and the key.
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.
Thanks for the changes Ann,
Couple of small fixes still needed
Cheers,
Helen
do j = 1, qc_ens_handle%my_num_vars | ||
if(nint(qc_ens_handle%copies(i, j)) /= 0) write(forward_unit, *) i, keys(j), nint(qc_ens_handle%copies(i, j)) | ||
end do | ||
do i = 1, ens_size |
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.
dart style guide: 3 spaces for indenting code, so remove the extra spaces from the indenting.
remove the added whitespace a the ends of the lines also.
| | | this file. Each line will list the | | ||
| | | following values: the ensemble member | | ||
| | | number, local observation number, the key | | ||
| | | for the local observation, and then the | |
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.
local key is a misleading here. There is only a global key, so remove 'local'
| | | for the local observation, and then the | | |
| | | for the observation, and then the | |
Thanks Helen, made these changes. |
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.
Looks good!
Prints out info, docs match the code, table all lined up nicely in .rst.
@hkershaw-brown bundle with next release
Description:
Corrected documentation for output_forward_op_errors output
Fixes issue
fixes #530
Types of changes
Documentation changes needed?
Tests
subroutine verbose_forward_op_output:
do i = 1, ens_size
do j = 1, qc_ens_handle%my_num_vars
if(nint(qc_ens_handle%copies(i, j)) /= 0) write(forward_unit, *) i, keys(j), nint(qc_ens_handle%copies(i, j))
end do
end do
Checklist for merging
Checklist for release
Testing Datasets