Skip to content

Fix constants that were missing . in _r8 declarations - #1661

Open
cacraigucar wants to merge 2 commits into
ESCOMP:cam_developmentfrom
cacraigucar:cam_fix_r8_ints
Open

Fix constants that were missing . in _r8 declarations #1661
cacraigucar wants to merge 2 commits into
ESCOMP:cam_developmentfrom
cacraigucar:cam_fix_r8_ints

Conversation

@cacraigucar

Copy link
Copy Markdown
Collaborator

Any constant that is declared without a . or e is defined as an integer even when it it has _r8 as its kind type. This can lead to integer arithmetic if other variables are integers as well.

@cacraigucar cacraigucar self-assigned this Aug 25, 2026

@jimmielin jimmielin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cacraigucar! The CAM .F90 changes look good to me, but I had some suggestions on the script's robustness.

Comment thread test/system/TR8_enhanced.sh Outdated
Comment thread test/system/TR8_enhanced.sh Outdated
Comment thread test/system/TR8_enhanced.sh Outdated
Comment thread test/system/TR8_enhanced.sh Outdated
echo "${sepstr}" | tee -a ${logfile}
ark_file="/fs/cgd/csm/tools/addrealkind/addrealkind"
tr8_script="${CAM_ROOT}/test/system/TR8.sh"
tr8_script="${CAM_ROOT}/test/system/TR8_enhanced.sh"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should remove TR8.sh now that it is unused or replace it entirely with the "enhanced" version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants