-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update kind conversions in ice_dyn_evp_1d.F90
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c202239
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 Tony,
I am not confident, that you it is safe to change the "non-capital" dbl_kind to capital ones.
The capital "DBL_KIND" is a "poor-mans" way to easily obtain an equal code, but using internally SINGLE precession instead of the default DOUBLE precession. This can be done using a simple sed-command to the file. This version only require approx half memory usage, and it is also faster. But the code is not BFB equal anymore wrt. the original code.
However, you can not change ALL variables to singles without loosing too much presission - defined as the "noise level" that stems from a change of compiler (intel->gnu->cray->nag) and/or computer using the SAME code in DOUBLE precession allover. Some variables have to stay DOUBLE, which are the input/output ones within the stress/stepu iterations. Which are the str1..8 + uvel+vvel as I recall...
Jacob Weismann and I tested it, but did not have time for implement it to the CICE code without just almost duplicating the code, which makes future maintenance much more demanding.
--o--
The changes in the floor precession/kind argument seems to be fine.
rgs
Mads