-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix warnings in copygb, tocgrib2, and tocgrib2super utilities #824
base: develop
Are you sure you want to change the base?
Conversation
@@ -110,7 +110,7 @@ end subroutine getgb2p2 | |||
call baopenw(lugo, fileo, iret1) | |||
if (iret1 .ne. 0) then | |||
write(6, fmt='(" Error opening output transmission file: ", & | |||
A200)') fileo | |||
&A200)') fileo |
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.
What is happening here? Why is there a line continuation character on the second line?
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.
The warnings for this one and tocgrib2super was for the lack of ampersand. I believe it's standard to have the ampersand there and at the end of the first line if the continued line is a string constant.
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.
Instead, just put it all on one line.
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.
There's a few other WRITE expressions using the same leading ampersand to address the -Wampersand warning which would result in pretty long lines, such as:
WRITE (6, FMT='(//, '' ******** RECAP OF THIS EXECUTION '', &
&''********'', /, 5X, ''READ '', I6, '' INDIVIDUAL IDS'', &
&/, 5X, ''WROTE '', I6, '' BULLETINS OUT FOR TRANSMISSION'', &
&//)') nrec, NBUL
Do we want to just put the shorter ones on one line, or address all of the other warnings this way?
Fixes #813
Fixes #814
Fixes #815