Skip to content

Remove goto statements from source code #30

@SnowHydrology

Description

@SnowHydrology

Work on the current NWM identified Fortran goto statements as a potential issue. Modern Fortran has moved away from goto statements for myriad reasons, some of which are discussed here.

There is one module from which the gotos should be removed (https://github.com/NOAA-OWP/snow17/search?q=goto):

Alternative solutions include do loops, if statements, cycle, exit, and case.

This issue also needs fixing in Sac-SMA and Noah-OWP-Modular.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions