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 2450 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/DTA/dtasal.F90 – NEMO

Ignore:
Timestamp:
2010-12-04T16:20:50+01:00 (14 years ago)
Author:
gm
Message:

v3.3beta: #766 share the deepest ocean level indices continuaton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/DTA/dtasal.F90

    r2436 r2450  
    190190            DO jj = 1, jpj               ! interpolation of salinity at the last ocean level (i.e. the partial step) 
    191191               DO ji = 1, jpi 
    192                   ik = mbathy(ji,jj) - 1 
    193                   IF( ik > 2 ) THEN 
     192                  ik = mbkt(ji,jj) 
     193                  IF( ik > 1 ) THEN 
    194194                     zl = ( gdept_0(ik) - fsdept_0(ji,jj,ik) ) / ( gdept_0(ik) - gdept_0(ik-1) ) 
    195195                     s_dta(ji,jj,ik) = (1.-zl) * s_dta(ji,jj,ik) + zl * s_dta(ji,jj,ik-1) 
Note: See TracChangeset for help on using the changeset viewer.