Changes between Initial Version and Version 2 of Ticket #1954
- Timestamp:
- 2017-10-10T12:26:12+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1954 – Description
initial v2 1 1 == Context 2 \\ 2 3 3 We have been having a floating invalid error in zdftmx.f90: 4 4 5 {{{#!console 5 6 forrtl: error (65): floating invalid 6 7 Image PC Routine Line Source … … 15 16 libc-2.22.so 00002B6FC2E4C6E5 __libc_start_main Unknown Unknown 16 17 nemo.exe 0000000000438C29 Unknown Unknown Unknown 17 \\ 18 }}} 19 18 20 == Analysis 19 \\ 21 20 22 I debugged it and I've seen that in that line zdn2dz values are traversed from 0 to jk 21 23 24 {{{#!f 22 25 zcoef = 0.5 - SIGN( 0.5, zdn2dz(ji,jj,jk) ) ! =0 if dN2/dz > 0, =1 otherwise 26 }}} 23 27 24 28 However, the 3rd dimension of that array is only set from 0 to jk-1 (jkm1) 25 29 30 {{{#!f 26 31 zdn2dz (:,:,jk) = rn2(:,:,jk) - rn2(:,:,jk+1) ! Vertical profile of dN2/dz 32 }}} 27 33 28 34 I looked into zdn2dz values and the ones in (:,:,75) are totally random. The same thing could happen with other variables in that routine, that I saw are used in the same way. 29 \\ 35 30 36 == Fix 31 \\ 37 32 38 The last jk value should be set to a proper value.