Skip to content

[NCO Bug] Fix compilation error with "-check all" for gfs_bufrsnd #1245

Closed
@KateFriedman-NOAA

Description

Bugzilla: #1208

NCO requested that -check all option be corrected to work with gfs_bufrsnd code. Details from bugzilla below:

We tested the gfs.v16.0.7 source code to compile with "-check all" option,  the gfs_bufrsnd failed during the compilation. 

Here is the error:

"meteorg.f(1108): error #5560: Subscript #1 of the array ZP2 has value 11 which is greater than the upper bound of 2
       print*,'finish computing zp2(11-12) ', zp2(11),zp2(12)
----------------------------------------------^
meteorg.f(1108): error #5560: Subscript #1 of the array ZP2 has value 12 which is greater than the upper bound of 2
       print*,'finish computing zp2(11-12) ', zp2(11),zp2(12)
------------------------------------------------------^
compilation aborted for meteorg.f (code 1)
make: *** [meteorg.o] Error 1
"

Please check your code with "-check all" option and fix the problem by next upgrade. 

Notes that the "-check all" is not used to compile in production running code. Just for code stability test.

Please change line 1108 from
 print*,'finish computing zp2(11-12) ', zp2(11),zp2(12)
to 
 print*,'finish computing zp2(1-2) ', zp2(1),zp2(2)

Metadata

Assignees

Labels

nco-bugSomething isn't working in Ops.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions