-
Notifications
You must be signed in to change notification settings - Fork 43
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
Bug fixes from Brian Eaton at NCAR #5
Conversation
Hello Robert, I've skimmed through the changes, and I couldn't find the indexing bug . Please can you point me to the lines of the relevant changes in cosp.F90? Thanks, |
Alejandro -
It’s on line 889 of cosp.f90. Sorry, I know that my editor’s reformatting buries the important change in a mountain of changed white space.
Dustin can comment but I don’t expect the tests to have changed. I will take the point that I should mention this in all pull requests.
- Robert
On Feb 1, 2018, at 10:24 AM, alejandrobodas <notifications@github.com<mailto:notifications@github.com>> wrote:
Hello Robert,
I've skimmed through the changes, and I couldn't find the indexing bug . Please can you point me to the lines of the relevant changes in cosp.F90?
Also, is it possible to add the outputs of the tests to this discussion? It would be good to have them saved here.
Thanks,
Alejandro
|
I see it now, thanks. The changes are trivial, but I expect the change in the default working precision to change the outputs. If that's the case, then the reference outputs should be updated with this change. Alejandro |
Hi Robert and Alejandro, The change in working-precision does make an impact on the output. Results from the testing script are attached. I've gone ahead and updated the reference files (fe4be9f) Dustin |
Dustin,
You should investigate whether the changes are reasonable. While many relative changes are tiny, there are some which are of order 1 which is worrisome.
Steve
From: dustinswales <notifications@github.com>
Reply-To: "CFMIP/COSPv2.0" <reply@reply.github.com>
Date: Friday, February 2, 2018 at 10:03 AM
To: "CFMIP/COSPv2.0" <COSPv2.0@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: Re: [CFMIP/COSPv2.0] Bug fixes from Brian Eaton at NCAR (#5)
Hi Robert and Alejandro,
The change in working-precision does make an impact on the output. Results from the testing script are attached. I've gone ahead and updated the reference files
Dustin
cosp2.spVdp.deltas.txt<https://github.com/CFMIP/COSPv2.0/files/1690205/cosp2.spVdp.deltas.txt>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#5 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AfO_cNuumdVOxYJFf5x-BAFemDCNNhWBks5tQ0UYgaJpZM4R1rFH>.
|
The change in working-precision does make an impact on the output. Results from the testing script are attached. I've gone ahead and updated the reference files
Alejandro -
It would terrific if you could ensure offline that the changes are suitable and then let us know if you agree with our merging the changes onto master.
I would not expect to tag this release.
- Robert
|
All, Attached you will find plots detailing the differences I reported earlier. I only included plots for fields with differences greater than 1e-3. "green" points are where relative differences are insignificant, whereas "red" points indicate differences. |
Dustin, thanks for these plots, they are very useful. They suggest that the test cases that are flagged as red contain one extra cloudy subcolumn. You can see that because the Y values of the red points in cltmodis coincide with the next X values of the green points (whose distribution is quantized because the number of columns is discrete). In principle, this could point to a different behaviour of the random generator, but the fact that the same errors are not seen in the ISCCP diagnostics suggests that the differences are caused by something internal to the MODIS simulator. Cheers, |
Hi Alejandro, |
Alejandro, As per your suggestion, I reverted the change in default precision from double back to single. Dustin |
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.
Robert, Dustin, thanks for this. I have no more comments on this, so please go ahead with the merge.
I propose three changes suggested by Brian Eaton at NCAR based on experience with COSP 2 in CESM 2.
Unfortunately my text editor also removed many trailing spaces so the default diffs look far more substantial.