New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Ticket Diff – NEMO

Changes between Initial Version and Version 2 of Ticket #1954


Ignore:
Timestamp:
2017-10-10T12:26:12+02:00 (6 years ago)
Author:
nemo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1954 – Description

    initial v2  
    11== Context 
    2 \\ 
     2 
    33We have been having a floating invalid error in zdftmx.f90: 
    44 
     5{{{#!console 
    56forrtl: error (65): floating invalid 
    67Image              PC                Routine            Line        Source              
     
    1516libc-2.22.so       00002B6FC2E4C6E5  __libc_start_main     Unknown  Unknown 
    1617nemo.exe           0000000000438C29  Unknown               Unknown  Unknown 
    17 \\ 
     18}}} 
     19 
    1820== Analysis 
    19 \\ 
     21 
    2022I debugged it and I've seen that in that line zdn2dz values are traversed from 0 to jk 
    2123 
     24{{{#!f 
    2225zcoef = 0.5 - SIGN( 0.5, zdn2dz(ji,jj,jk) )       ! =0 if dN2/dz > 0, =1 otherwise 
     26}}} 
    2327 
    2428However, the 3rd dimension of that array is only set from 0 to jk-1 (jkm1) 
    2529 
     30{{{#!f 
    2631zdn2dz     (:,:,jk) = rn2(:,:,jk) - rn2(:,:,jk+1)           ! Vertical profile of dN2/dz 
     32}}} 
    2733 
    2834I 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 
    3036== Fix 
    31 \\ 
     37 
    3238The last jk value should be set to a proper value.