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.
Changeset 2037 for branches – NEMO

Changeset 2037 for branches


Ignore:
Timestamp:
2010-08-02T12:01:37+02:00 (14 years ago)
Author:
rfurner
Message:

bug fix to sbcrnf, jpkm1 changed to mbathy-1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_R1821_Rivers/NEMO/OPA_SRC/SBC/sbcrnf.F90

    r1998 r2037  
    230230                IF ( rnf_dep(ji,jj) > 0.e0 ) THEN   
    231231                  jk=2   
    232                   DO WHILE ( jk/=jpkm1 .AND. fsdept(ji,jj,jk) < rnf_dep(ji,jj) );  jk=jk+1;   ENDDO   
     232                  DO WHILE ( jk/=(mbathy(ji,jj)-1) .AND. fsdept(ji,jj,jk) < rnf_dep(ji,jj) );  jk=jk+1;   ENDDO   
    233233                  rnf_mod_dep(ji,jj)=jk   
    234234                ELSE IF ( rnf_dep(ji,jj) .eq. -1 ) THEN   
    235235                  rnf_mod_dep(ji,jj)=1   
    236236                ELSE IF ( rnf_dep(ji,jj) .eq. -999 ) THEN   
    237                   rnf_mod_dep(ji,jj)=jpkm1   
     237                  rnf_mod_dep(ji,jj)=mbathy(ji,jj)-1 
    238238                ELSE IF ( rnf_dep(ji,jj) /= 0 ) THEN   
    239239                  CALL ctl_stop( 'runoff depth not positive, and not -999 or -1, rnf value in file fort.999'  )   
Note: See TracChangeset for help on using the changeset viewer.