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 9433 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/icevar.F90 – NEMO

Ignore:
Timestamp:
2018-03-26T17:38:31+02:00 (6 years ago)
Author:
clem
Message:

add two outputs: mean snow temperature and ice surface temperature per category

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/icevar.F90

    r9271 r9433  
    2424   !!                        - vt_s(jpi,jpj) 
    2525   !!                        - at_i(jpi,jpj) 
    26    !!                        - et_s(jpi,jpj)  !total snow heat content 
    27    !!                        - et_i(jpi,jpj)  !total ice thermal content  
    28    !!                        - sm_i(jpi,jpj) !mean ice salinity 
    29    !!                        - tm_i (jpi,jpj) !mean ice temperature 
     26   !!                        - et_s(jpi,jpj)  total snow heat content 
     27   !!                        - et_i(jpi,jpj)  total ice thermal content  
     28   !!                        - sm_i(jpi,jpj)  mean ice salinity 
     29   !!                        - tm_i(jpi,jpj)  mean ice temperature 
     30   !!                        - tm_s(jpi,jpj)  mean snw temperature 
    3031   !!====================================================================== 
    3132   !! History :   -   ! 2006-01 (M. Vancoppenolle) Original code 
     
    9192      ! 
    9293      INTEGER ::   ji, jj, jk, jl   ! dummy loop indices 
    93       REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   z1_at_i, z1_vt_i 
     94      REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   z1_at_i, z1_vt_i, z1_vt_s 
    9495      !!------------------------------------------------------------------- 
    9596      ! 
     
    108109      IF( kn > 1 ) THEN 
    109110         ! 
    110          ALLOCATE( z1_at_i(jpi,jpj) , z1_vt_i(jpi,jpj) ) 
     111         ALLOCATE( z1_at_i(jpi,jpj) , z1_vt_i(jpi,jpj) , z1_vt_s(jpi,jpj) ) 
    111112         WHERE( at_i(:,:) > epsi20 )   ;   z1_at_i(:,:) = 1._wp / at_i(:,:) 
    112113         ELSEWHERE                     ;   z1_at_i(:,:) = 0._wp 
     
    114115         WHERE( vt_i(:,:) > epsi20 )   ;   z1_vt_i(:,:) = 1._wp / vt_i(:,:) 
    115116         ELSEWHERE                     ;   z1_vt_i(:,:) = 0._wp 
     117         END WHERE 
     118         WHERE( vt_s(:,:) > epsi20 )   ;   z1_vt_s(:,:) = 1._wp / vt_s(:,:) 
     119         ELSEWHERE                     ;   z1_vt_s(:,:) = 0._wp 
    116120         END WHERE 
    117121         ! 
     
    127131         ! 
    128132         tm_i(:,:) = 0._wp 
     133         tm_s(:,:) = 0._wp 
    129134         DO jl = 1, jpl 
    130135            DO jk = 1, nlay_i 
    131136               tm_i(:,:) = tm_i(:,:) + r1_nlay_i * t_i (:,:,jk,jl) * v_i(:,:,jl) * z1_vt_i(:,:) 
     137            END DO 
     138            DO jk = 1, nlay_s 
     139               tm_s(:,:) = tm_s(:,:) + r1_nlay_s * t_s (:,:,jk,jl) * v_s(:,:,jl) * z1_vt_s(:,:) 
    132140            END DO 
    133141         END DO 
     
    138146            tm_si(:,:) = rt0 
    139147            tm_i (:,:) = rt0 
    140          END WHERE 
    141  
    142          DEALLOCATE( z1_at_i , z1_vt_i ) 
     148            tm_s (:,:) = rt0 
     149         END WHERE 
     150 
     151         DEALLOCATE( z1_at_i , z1_vt_i , z1_vt_s ) 
    143152      ENDIF 
    144153      ! 
Note: See TracChangeset for help on using the changeset viewer.