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 149 for trunk/NEMO – NEMO

Changeset 149 for trunk/NEMO


Ignore:
Timestamp:
2004-10-19T15:32:08+02:00 (20 years ago)
Author:
opalod
Message:

CL + CT: BUGFIX094: Add "USE flx_oce" module, the computation of fr1_i0 and fr2_i0 (which was missing in couple mode) and syntax correction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/flx_coupled_ice.h90

    r3 r149  
    3333      !!---------------------------------------------------------------------- 
    3434      !! * Modules used 
    35       USE ioipsl 
     35      USE ioipsl               ! NetCDF IPSL library  
    3636      USE ice_oce 
    37       USE cpl_oce 
     37      USE cpl_oce              ! coupled ocean-atmosphere variables 
     38      USE flx_oce              ! sea-ice/ocean forcings variables  
    3839 
    3940      !! * arguments 
     
    4243      !! * Local declarations 
    4344      INTEGER :: ji, jj, jf 
    44       INTEGER :: itm1,isize,iflag,icpliter 
     45      INTEGER :: itm1,isize,iflag 
     46!      INTEGER :: icpliter 
    4547      INTEGER :: info, inuread, index 
    4648      REAL(wp) ::   zfacflx,zfacwat 
    47       REAL(wp) ::   ztgel,zice 
    4849      REAL(wp) ::   znsolc (jpiglo,jpjglo),zqsrc (jpiglo,jpjglo) 
    4950      REAL(wp) ::   zrunoff(jpiglo,jpjglo),zec   (jpiglo,jpjglo) 
     
    5556      REAL(wp) ::   zrunriv (jpiglo,jpjglo),zcalving(jpiglo,jpjglo) 
    5657      REAL(wp) ::   zevap (jpiglo,jpjglo) 
     58      REAL(wp) ::   zcatm1 (jpiglo,jpjglo)            ! cloud fraction  
    5759      CHARACTER (len=80) ::   clcplfnam 
    5860      REAL(wp) ::   zjulian 
     
    6062      ! Addition for SIPC CASE 
    6163      CHARACTER (len=3) ::   clmodinf       ! Header or not 
    62       CHARACTER (len=3) ::   cljobnam_r    ! Experiment name in the field brick, if any  
    63       INTEGER ::   infos(3)          ! infos in the field brick, if any 
     64!      CHARACTER (len=3) ::   cljobnam_r    ! Experiment name in the field brick, if any  
     65!      INTEGER ::   infos(3)          ! infos in the field brick, if any 
    6466      !!--------------------------------------------------------------------- 
    6567 
     
    205207            END DO 
    206208         END DO 
     209 
     210! Since cloud cover catm not transmitted from atmosphere, init =0.  
     211  
     212         catm(:, :) =0. 
     213         DO jj = 1, jpj 
     214            DO ji = 1, jpi 
     215            zcatm1(ji,jj) = 1.0    - catm  (ji,jj)  !  fractional cloud cover 
     216            END DO 
     217         END DO 
     218 
     219         !  fraction of net shortwave radiation which is not absorbed in the  
     220         !  thin surface layer and penetrates inside the ice cover  
     221         !  ( Maykut and Untersteiner, 1971 ; Elbert anbd Curry, 1993 ) 
     222         !------------------------------------------------------------------ 
     223         DO jj = 1, nlcj 
     224            DO ji = 1, nlci 
     225            fr1_i0(ji,jj) = 0.18  * zcatm1(ji,jj) + 0.35 * catm(ji,jj)  
     226            fr2_i0(ji,jj) = 0.82  * zcatm1(ji,jj) + 0.65 * catm(ji,jj) 
     227            END DO 
     228         END DO 
     229 
    207230         ! copy in the subdomain 
    208231      
     
    224247               sprecip(ji,jj) =  zpsol    ( mig(ji), mjg(jj)) * tmask(ji,jj,1) * zfacwat 
    225248               !  7: runoff      (positive upward) 
    226                srunoff(ji,jj) = ( zruncot ( mig(ji), mjg(jj))   & 
     249               rrunoff(ji,jj) = ( zruncot ( mig(ji), mjg(jj))   & 
    227250                  &              +  zrunriv ( mig(ji), mjg(jj)) ) * tmask(ji,jj,1) * zfacwat 
    228251               !  8: Derivative of non solar heat flux on sea ice 
     
    230253               !  13: Iceberg calving (positive upward) 
    231254               calving(ji,jj) =  zcalving ( mig(ji), mjg(jj)) * tmask(ji,jj,1) * zfacwat 
     255               !  1st part of the fraction of sol. rad.  which penetrate inside 
     256               !  the ice cover 
     257               fr1_i0(ji,jj)  = fr1_i0(mig(ji), mjg(jj)) * tmask(ji,jj,1) 
     258               ! 2nd part of the fraction of sol. rad.  which penetrate inside 
     259               ! the ice cover 
     260               fr2_i0(ji,jj)  = fr2_i0(mig(ji), mjg(jj)) * tmask(ji,jj,1) 
    232261              END DO 
    233262           END DO 
     
    240269         CALL lbc_lnk( tprecip , 'T', 1. ) 
    241270         CALL lbc_lnk( sprecip , 'T', 1. ) 
    242          CALL lbc_lnk( srunoff , 'T', 1. ) 
     271         CALL lbc_lnk( rrunoff , 'T', 1. ) 
    243272         CALL lbc_lnk( dqns_ice, 'T', 1. ) 
    244273         CALL lbc_lnk( calving , 'T', 1. ) 
     274         CALL lbc_lnk( fr1_i0  , 'T', 1. ) 
     275         CALL lbc_lnk( fr2_i0  , 'T', 1. ) 
    245276 
    246277      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.