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 1859 for branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/OPA_SRC/SBC/sbcana.F90 – NEMO

Ignore:
Timestamp:
2010-05-06T10:40:07+02:00 (14 years ago)
Author:
gm
Message:

ticket:#665 step 2 & 3: heat content in qns & new forcing terms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/OPA_SRC/SBC/sbcana.F90

    r1732 r1859  
    66   !! History :  3.0   ! 2006-06  (G. Madec)  Original code 
    77   !!            3.2   ! 2009-07  (G. Madec)  Style only 
     8   !!            3.3  !  2010-07  (Y. Aksenov G. Madec) salt flux + heat associated with emp 
    89   !!---------------------------------------------------------------------- 
    910 
     
    3940#  include "vectopt_loop_substitute.h90" 
    4041   !!---------------------------------------------------------------------- 
    41    !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)  
     42   !! NEMO/OPA 3.3 , LOCEAN-IPSL (2010)  
    4243   !! $Id$ 
    4344   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     
    6061      !! 
    6162      !! ** Action  : - set the ocean surface boundary condition, i.e.   
    62       !!                   utau, vtau, taum, wndm, qns, qsr, emp, emps 
     63      !!                   utau, vtau, taum, wndm, qns, qsr, emp 
    6364      !!---------------------------------------------------------------------- 
    6465      INTEGER, INTENT(in) ::   kt       ! ocean time step 
     
    8889         ! 
    8990         nn_tau000 = MAX( nn_tau000, 1 )   ! must be >= 1 
    90          qns   (:,:) = rn_qns0 
    91          qsr   (:,:) = rn_qsr0 
    92          emp   (:,:) = rn_emp0 
    93          emps  (:,:) = rn_emp0 
     91         emp(:,:) = rn_emp0 
     92         qns(:,:) = rn_qns0 - emp(:,:) * sst_m(:,:) * rcp      ! including heat content associated with mass flux at SST 
     93         qsr(:,:) = rn_qsr0 
    9494         ! 
    9595      ENDIF 
     
    123123      !! 
    124124      !! ** Action  : - set the ocean surface boundary condition, i.e.    
    125       !!                   utau, vtau, taum, wndm, qns, qsr, emp, emps 
     125      !!                   utau, vtau, taum, wndm, qns, qsr, emp 
    126126      !! 
    127127      !! Reference : Hazeleger, W., and S. Drijfhout, JPO, 30, 677-695, 2000. 
     
    204204         END DO 
    205205      END DO 
    206       emps(:,:) = emp(:,:) 
    207206 
    208207      ! Compute the emp flux such as its integration on the whole domain at each time is zero 
     
    226225      ENDIF 
    227226 
    228       !salinity terms 
    229       emp (:,:) = emp(:,:) - zsumemp * tmask(:,:,1) 
    230       emps(:,:) = emp(:,:) 
     227       
     228      ! freshwater (mass flux) and update of qns with heat content of emp 
     229      emp (:,:) = emp(:,:) - zsumemp * tmask(:,:,1)        ! freshwater flux (=0 in domain average) 
     230      qns (:,:) = qns(:,:) - emp(:,:) * sst_m(:,:) * rcp   ! evap and precip are at SST 
    231231 
    232232 
Note: See TracChangeset for help on using the changeset viewer.