Changes between Initial Version and Version 1 of Ticket #68
- Timestamp:
- 07/30/07 16:34:38 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #68
- Property Resolution → Done
- Property Status new → closed
-
Ticket #68 – Description
initial v1 1 1 In function ROMS/Utility/nf_fread2d, lines 223:237 2 2 *************************** 3 4 {{{ 3 5 status=nf90_noerr 4 6 IF (InpThread) THEN 5 7 status=nf90_get_var(ncid, ncvarid, wrk, start, total) 6 8 IF (status.eq.nf90_noerr) THEN 7 ...........9 ... 8 10 END IF 9 11 END IF 10 ...... 12 13 ... 14 11 15 IF (status.ne.nf90_noerr) RETURN 12 *************************** 16 }}} 17 18 13 19 If the file is not read correctly, then "status" will not equal nf90_noerr, and the code will return. But we need to have the value of "nf_fread" set to = the value of status before the return happens. 14 20 IF the file is read correctly, then at the bottom of nf_fread2d we have: 21 22 {{{ 15 23 nf_fread2d=status 24 }}} 16 25 so that is ok. 17 26 18 27 Suggest that we add a line 28 {{{ 19 29 nf_fread2d=status 30 }}} 20 31 before the return statement. 21 32 This also needs to be addressed in read 3d, 4d.