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 12574 for NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/SAS/sbcssm.F90 – NEMO

Ignore:
Timestamp:
2020-03-19T15:52:52+01:00 (4 years ago)
Author:
cguiavarch
Message:

Add Equation of State tag to salinity and temperature outputs and cell_methods attribute for mean_nemo (mean_nemo_wrapper not needed anymore)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.1_GO8_package/src/SAS/sbcssm.F90

    r11715 r12574  
    7777      REAL(wp) ::   ztinta     ! ratio applied to after  records when doing time interpolation 
    7878      REAL(wp) ::   ztintb     ! ratio applied to before records when doing time interpolation 
    79       !!---------------------------------------------------------------------- 
     79      CHARACTER(len=4),SAVE :: stype 
     80      !!--------------------------------------------------------------------- 
     81      IF( kt == nit000 ) THEN 
     82         IF( ln_TEOS10 ) THEN 
     83            stype='abs'   ! teos-10: using absolute salinity (sst is converted to potential temperature for the surface module) 
     84         ELSE IF( ln_EOS80  ) THEN 
     85            stype='pra'   ! eos-80: using practical salinity 
     86         ELSE IF ( ln_SEOS) THEN 
     87            stype='seos' ! seos using Simplified Equation of state (sst is converted to potential temperature for the surface module) 
     88         ENDIF 
     89      ENDIF 
    8090      ! 
    8191      IF( ln_timing )   CALL timing_start( 'sbc_ssm') 
     
    144154         CALL iom_put( 'ssu_m', ssu_m ) 
    145155         CALL iom_put( 'ssv_m', ssv_m ) 
    146          CALL iom_put( 'sst_m', sst_m ) 
    147          CALL iom_put( 'sss_m', sss_m ) 
     156         CALL iom_put( 'sst_m_pot', sst_m ) 
     157         CALL iom_put( 'sss_m_'//stype, sss_m ) 
    148158         CALL iom_put( 'ssh_m', ssh_m ) 
    149159         IF( .NOT.ln_linssh )   CALL iom_put( 'e3t_m', e3t_m ) 
Note: See TracChangeset for help on using the changeset viewer.