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

Ignore:
Timestamp:
2010-12-27T18:33:53+01:00 (13 years ago)
Author:
rblod
Message:

Update NEMOGCM from branch nemo_v3_3_beta

File:
1 edited

Legend:

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

    r1715 r2528  
    55   !!====================================================================== 
    66   !! History :  9.0   !  06-07  (G. Madec)  Original code 
     7   !!            3.3  ! 2010-10  (C. Bricaud, G. Madec)  add the Patm forcing for sea-ice 
    78   !!---------------------------------------------------------------------- 
    89 
     
    1415   USE dom_oce         ! ocean space and time domain 
    1516   USE sbc_oce         ! Surface boundary condition: ocean fields 
     17   USE sbc_oce         ! surface boundary condition: ocean fields 
     18   USE sbcapr          ! surface boundary condition: atmospheric pressure 
    1619   USE prtctl          ! Print control                    (prt_ctl routine) 
    1720   USE restart         ! ocean restart 
     
    2730#  include "domzgr_substitute.h90" 
    2831   !!---------------------------------------------------------------------- 
    29    !!   OPA 9.0 , LOCEAN-IPSL (2006)  
     32   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    3033   !! $Id$ 
    31    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     34   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    3235   !!---------------------------------------------------------------------- 
    3336 
     
    4447      !!      V-points) [m/s], temperature [Celcius] and salinity [psu] over 
    4548      !!      the periode (kt - nn_fsbc) to kt 
     49      !!         Note that the inverse barometer ssh (i.e. ssh associated with Patm) 
     50      !!      is add to ssh_m when ln_apr_dyn = T. Required for sea-ice dynamics. 
    4651      !!--------------------------------------------------------------------- 
    4752      INTEGER, INTENT(in) ::   kt        ! ocean time step 
     
    6368         sst_m(:,:) = tn(:,:,1) 
    6469         sss_m(:,:) = sn(:,:,1) 
    65          ssh_m(:,:) = sshn(:,:) 
     70         !                          ! removed inverse barometer ssh when Patm forcing is used (for sea-ice dynamics) 
     71         IF( ln_apr_dyn ) THEN   ;   ssh_m(:,:) = sshn(:,:) - 0.5 * ( ssh_ib(:,:) + ssh_ibb(:,:) ) 
     72         ELSE                    ;   ssh_m(:,:) = sshn(:,:) 
     73         ENDIF 
     74 
    6675         ! 
    6776      ELSE 
     
    99108               sst_m(:,:) = zcoef * tn(:,:,1) 
    100109               sss_m(:,:) = zcoef * sn(:,:,1) 
    101                ssh_m(:,:) = zcoef * sshn(:,:) 
     110               !                          ! removed inverse barometer ssh when Patm forcing is used  
     111               IF( ln_apr_dyn ) THEN   ;   ssh_m(:,:) = zcoef * ( sshn(:,:) - 0.5 * ( ssh_ib(:,:) + ssh_ibb(:,:) ) ) 
     112               ELSE                    ;   ssh_m(:,:) = zcoef *   sshn(:,:) 
     113               ENDIF 
     114 
    102115            ENDIF 
    103116            !                                             ! ---------------------------------------- ! 
     
    117130         sst_m(:,:) = sst_m(:,:) + tn(:,:,1) 
    118131         sss_m(:,:) = sss_m(:,:) + sn(:,:,1) 
    119          ssh_m(:,:) = ssh_m(:,:) + sshn(:,:) 
     132         !                          ! removed inverse barometer ssh when Patm forcing is used (for sea-ice dynamics) 
     133         IF( ln_apr_dyn ) THEN   ;   ssh_m(:,:) = ssh_m(:,:) + sshn(:,:) - 0.5 *  ( ssh_ib(:,:) + ssh_ibb(:,:) ) 
     134         ELSE                    ;   ssh_m(:,:) = ssh_m(:,:) + sshn(:,:) 
     135         ENDIF 
    120136 
    121137         !                                                ! ---------------------------------------- ! 
Note: See TracChangeset for help on using the changeset viewer.