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 5653 for branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/SBC/sbcisf.F90 – NEMO

Ignore:
Timestamp:
2015-07-30T18:15:19+02:00 (9 years ago)
Author:
timgraham
Message:

Merge head of trunk (r5643) into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/SBC/sbcisf.F90

    r5594 r5653  
    8585    REAL(wp)                     ::   rmin 
    8686    REAL(wp)                     ::   zhk 
    87     CHARACTER(len=256)           ::   cfisf, cvarzisf, cvarhisf   ! name for isf file 
     87    REAL(wp)                     ::   zt_frz, zpress 
     88    CHARACTER(len=256)           ::   cfisf , cvarzisf, cvarhisf   ! name for isf file 
    8889    CHARACTER(LEN=256)           :: cnameis                     ! name of iceshelf file 
    8990    CHARACTER (LEN=32)           :: cvarLeff                    ! variable name for efficient Length scale 
     
    263264         END IF 
    264265         ! compute tsc due to isf 
    265          ! WARNING water add at temp = 0C, correction term is added in trasbc, maybe better here but need a 3D variable). 
    266          risf_tsc(:,:,jp_tem) = qisf(:,:) * r1_rau0_rcp ! 
     266         ! WARNING water add at temp = 0C, correction term is added, maybe better here but need a 3D variable). 
     267!         zpress = grav*rau0*fsdept(ji,jj,jk)*1.e-04 
     268         zt_frz = -1.9 !eos_fzp( tsn(ji,jj,jk,jp_sal), zpress ) 
     269         risf_tsc(:,:,jp_tem) = qisf(:,:) * r1_rau0_rcp - rdivisf * fwfisf(:,:) * zt_frz * r1_rau0 ! 
    267270          
    268271         ! salt effect already take into account in vertical advection 
    269272         risf_tsc(:,:,jp_sal) = (1.0_wp-rdivisf) * fwfisf(:,:) * stbl(:,:) * r1_rau0 
    270            
     273 
     274         ! output 
     275         IF( iom_use('qisf'  ) )   CALL iom_put('qisf'  , qisf) 
     276         IF( iom_use('fwfisf') )   CALL iom_put('fwfisf', fwfisf * stbl(:,:) / soce ) 
     277 
     278         ! if apply only on the trend and not as a volume flux (rdivisf = 0), fwfisf have to be set to 0 now 
     279         fwfisf(:,:) = rdivisf * fwfisf(:,:)          
     280  
    271281         ! lbclnk 
    272282         CALL lbc_lnk(risf_tsc(:,:,jp_tem),'T',1.) 
     
    288298         ENDIF 
    289299         !  
    290          ! output 
    291          CALL iom_put('qisf'  , qisf) 
    292          IF( iom_use('fwfisf') )   CALL iom_put('fwfisf', fwfisf * stbl(:,:) / soce ) 
    293300      END IF 
    294301   
Note: See TracChangeset for help on using the changeset viewer.