Repository navigation
Fix non-standard BOZ-literal integer constant in module_ra_cam_support - #736
Merged
mgduda merged 1 commit intoNov 19, 2020
Merged
Conversation
The GNU 10.1.0 compiler identified a non-standard BOZ-literal constant in
module_ra_cam_support.F, failing to compile this file with the following error:
module_ra_cam_support.F:11:35:
11 | integer, parameter:: bigint = O'17777777777' ! largest possible 32-bit integer
| 1
Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see ‘-fno-allow-invalid-boz’]
As per the Fortran 2003 standard, this constant should be typed with the INT
intrinsic (or be used in a data statement):
4.4.1 Integer type
C410 (R411) A boz-literal-constant shall appear only as a data-stmt-constant in
a DATA statement, as the actual argument associated with the dummy argument A of
the numeric intrinsic functions DBLE, REAL or INT, or as the actual argument
associated with the X or Y dummy argument of the intrinsic function CMPLX.
This commit uses the INT intrinsic with an argument of O'17777777777' to
initialize the bigint parameter.
MiCurry
reviewed
Nov 2, 2020
Contributor
|
Hi Michael and Miles: |
MiCurry
approved these changes
Nov 2, 2020
Contributor
Author
|
@ldfowler58 Since this change modifies code in a physics scheme, I had added you as a reviewer. The code change does not alter the results, but simply expresses a constant in a way that is standards-conformant. If you have no objections, that would be good enough to count as an approval, I think. But, please don't hesitate to let me know if you have any questions or concerns about the code change. |
sael9740
pushed a commit
to sael9740/MPAS-Model
that referenced
this pull request
Oct 9, 2026
…PAS-Dev#736) This merge corrects a non-standard BOZ-literal constant in module_ra_cam_support. The GNU 10.1.0 compiler identified a non-standard BOZ-literal constant in module_ra_cam_support.F, failing to compile this file with the following error: module_ra_cam_support.F:11:35: 11 | integer, parameter:: bigint = O'17777777777' ! largest possible 32-bit integer | 1 Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see ‘-fno-allow-invalid-boz’] As per the Fortran 2003 standard, this constant should be typed with the INT intrinsic (or be used in a data statement): 4.4.1 Integer type C410 (R411) A boz-literal-constant shall appear only as a data-stmt-constant in a DATA statement, as the actual argument associated with the dummy argument A of the numeric intrinsic functions DBLE, REAL or INT, or as the actual argument associated with the X or Y dummy argument of the intrinsic function CMPLX. This merge uses the INT intrinsic with an argument of O'17777777777' to initialize the bigint parameter. * atmosphere/ra_cam_support_BOZ_Fix: Fix non-standard BOZ-literal integer constant in module_ra_cam_support
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This merge corrects a non-standard BOZ-literal constant in module_ra_cam_support.
The GNU 10.1.0 compiler identified a non-standard BOZ-literal constant in
module_ra_cam_support.F, failing to compile this file with the following error:
As per the Fortran 2003 standard, this constant should be typed with the INT
intrinsic (or be used in a data statement):
This commit uses the INT intrinsic with an argument of O'17777777777' to
initialize the bigint parameter.