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 6958 – NEMO

Changeset 6958


Ignore:
Timestamp:
2016-09-26T15:21:36+02:00 (8 years ago)
Author:
timgraham
Message:

Added vertical integral of density * T and density * S

Location:
branches/UKMO/v3_6_extra_CMIP6_diagnostics/NEMOGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/v3_6_extra_CMIP6_diagnostics/NEMOGCM/CONFIG/SHARED/field_def.xml

    r6871 r6958  
    3737         <field id="sstgrad2"     long_name="square of module of sst gradient"                                                        unit="degree_C2/m2" /> 
    3838         <field id="sbt"          long_name="sea bottom temperature"                                                                  unit="degree_C"     /> 
     39         <field id="tosmint"      long_name="vertical integral of temperature times density"   standard_name="integral_wrt_depth_of_product_of_density_and_potential_temperature"  unit="(kg m2) degree_C" /> 
    3940     
    4041         <field id="sss"          long_name="Sea Surface Salinity"             standard_name="sea_surface_salinity"   unit="0.001" /> 
     
    4344         <field id="sssmin"       long_name="min of sea surface salinity"   field_ref="sss"   operation="minimum"                 /> 
    4445         <field id="sbs"          long_name="sea bottom salinity"                                                     unit="0.001" /> 
     46         <field id="somint"       long_name="vertical integral of salinity times density"   standard_name="integral_wrt_depth_of_product_of_density_and_salinity"  unit="(kg m2) x (1e-3)" />  
    4547 
    4648         <field id="taubot"       long_name="bottom stress module"                                                    unit="N/m2" />  
  • branches/UKMO/v3_6_extra_CMIP6_diagnostics/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90

    r6535 r6958  
    388388         CALL lbc_lnk( z2d, 'V', -1. ) 
    389389         CALL iom_put( "v_salttr", 0.5 * z2d )            !  heat transport in j-direction 
     390      ENDIF 
     391 
     392      ! Vertical integral of temperature 
     393      IF( iom_use("tosmint") ) THEN 
     394         z2d(:,:)=0._wp 
     395         DO jk = 1, jpkm1 
     396            DO jj = 2, jpjm1 
     397               DO ji = fs_2, fs_jpim1   ! vector opt. 
     398                  z2d(ji,jj) = z2d(ji,jj) + rau0 * fse3t(ji,jj,jk) *  tsn(ji,jj,jk,jp_tem) 
     399               END DO 
     400            END DO 
     401         END DO 
     402         CALL lbc_lnk( z2d, 'T', -1. ) 
     403         CALL iom_put( "tosmint", z2d )  
     404      ENDIF 
     405 
     406      ! Vertical integral of salinity 
     407      IF( iom_use("somint") ) THEN 
     408         z2d(:,:)=0._wp 
     409         DO jk = 1, jpkm1 
     410            DO jj = 2, jpjm1 
     411               DO ji = fs_2, fs_jpim1   ! vector opt. 
     412                  z2d(ji,jj) = z2d(ji,jj) + rau0 * fse3t(ji,jj,jk) * tsn(ji,jj,jk,jp_sal) 
     413               END DO 
     414            END DO 
     415         END DO 
     416         CALL lbc_lnk( z2d, 'T', -1. ) 
     417         CALL iom_put( "somint", z2d )  
    390418      ENDIF 
    391419 
Note: See TracChangeset for help on using the changeset viewer.