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 1244 for trunk/NEMO/OPA_SRC/SBC/sbcssm.F90 – NEMO

Ignore:
Timestamp:
2009-01-06T12:13:44+01:00 (15 years ago)
Author:
ctlod
Message:

improve the LIM 3.0 stability in using sea surface height, see ticket: #286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/sbcssm.F90

    r1214 r1244  
    6464         sst_m(:,:) = tn(:,:,1) 
    6565         sss_m(:,:) = sn(:,:,1) 
     66         ssh_m(:,:) = sshn(:,:) 
    6667         ! 
    6768      ELSE 
     
    7879               CALL iom_get( numror, jpdom_autoglo, 'sst_m'  , sst_m  )   !   "         "    temperature (T-point) 
    7980               CALL iom_get( numror, jpdom_autoglo, 'sss_m'  , sss_m  )   !   "         "    salinity    (T-point) 
     81               CALL iom_get( numror, jpdom_autoglo, 'ssh_m'  , ssh_m  )   !   "         "    height      (T-point) 
    8082               ! 
    8183               IF( zf_sbc /= REAL( nn_fsbc, wp ) ) THEN      ! nn_fsbc has changed between 2 runs 
     
    8789                  sst_m(:,:) = zcoef * sst_m(:,:) 
    8890                  sss_m(:,:) = zcoef * sss_m(:,:) 
     91                  ssh_m(:,:) = zcoef * ssh_m(:,:) 
    8992               ELSE 
    9093                  IF(lwp) WRITE(numout,*) '~~~~~~~   mean fields read in the ocean restart file' 
     
    97100               sst_m(:,:) = zcoef * tn(:,:,1) 
    98101               sss_m(:,:) = zcoef * sn(:,:,1) 
     102               ssh_m(:,:) = zcoef * sshn(:,:) 
    99103            ENDIF 
    100104            !                                             ! ---------------------------------------- ! 
     
    105109            sst_m(:,:) = 0.e0 
    106110            sss_m(:,:) = 0.e0 
     111            ssh_m(:,:) = 0.e0 
    107112         ENDIF 
    108113         !                                                ! ---------------------------------------- ! 
     
    113118         sst_m(:,:) = sst_m(:,:) + tn(:,:,1) 
    114119         sss_m(:,:) = sss_m(:,:) + sn(:,:,1) 
     120         ssh_m(:,:) = ssh_m(:,:) + sshn(:,:) 
    115121 
    116122         !                                                ! ---------------------------------------- ! 
     
    122128            ssu_m(:,:) = ssu_m(:,:) * zcoef           ! mean suface current  [m/s] 
    123129            ssv_m(:,:) = ssv_m(:,:) * zcoef           ! 
     130            ssh_m(:,:) = ssh_m(:,:) * zcoef           ! mean SSH             [m] 
    124131            ! 
    125132         ENDIF 
     
    137144            CALL iom_rstput( kt, nitrst, numrow, 'sst_m'  , sst_m  ) 
    138145            CALL iom_rstput( kt, nitrst, numrow, 'sss_m'  , sss_m  ) 
     146            CALL iom_rstput( kt, nitrst, numrow, 'ssh_m'  , ssh_m  ) 
    139147            ! 
    140148         ENDIF 
Note: See TracChangeset for help on using the changeset viewer.