Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jonbob/cice/fix-unitialized-variable' (PR #1274)
This PR fixes an uninitialized variable in function FirstFactor in ice_spacecurve.F90 and adds testing of its returned value in the calling routine. It resolves Issue #880 , though not exactly in the manner suggested by the reporter. The uninitialized variable, res, is initialized to 0, which would be an invalid return value for this variable, because it represents the index of a particular value in a derived type array. This function is only called by one subroutine, so in the calling routine a check is added to make sure the returned value is valid before using it. Fixes #880 Tested with SMS_D.f19_f19.FC5.edison_intel [BFB]
- Loading branch information