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 2798 for branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_if.F90 – NEMO

Ignore:
Timestamp:
2011-07-11T16:18:18+02:00 (13 years ago)
Author:
vichi
Message:

Added initial coupling with BFM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_if.F90

    r2715 r2798  
    6565      !!--------------------------------------------------------------------- 
    6666      !                                         ! ====================== ! 
    67       IF( kt == nit000 ) THEN                   !  First call kt=nit000  ! 
    68          !                                      ! ====================== ! 
    69          ! set file information 
    70          cn_dir = './'        ! directory in which the model is executed 
    71          ! ... default values (NB: frequency positive => hours, negative => months) 
    72          !             !   file    ! frequency !  variable  ! time intep !  clim  ! 'yearly' or ! weights  ! rotation   ! 
    73          !             !   name    !  (hours)  !   name     !   (T/F)    !  (T/F) !  'monthly'  ! filename ! pairs      !  
    74          sn_ice = FLD_N('ice_cover',    -1    ,  'ice_cov' ,  .true.    , .true. ,   'yearly'  , ''       , ''         ) 
    75  
    76          REWIND ( numnam )               ! ... read in namlist namiif 
    77          READ   ( numnam, namsbc_iif ) 
    78  
    79          ALLOCATE( sf_ice(1), STAT=ierror ) 
    80          IF( ierror > 0 )   CALL ctl_stop( 'STOP', 'sbc_ice_if: unable to allocate sf_ice structure' ) 
    81          ALLOCATE( sf_ice(1)%fnow(jpi,jpj,1) ) 
    82          IF( sn_ice%ln_tint )   ALLOCATE( sf_ice(1)%fdta(jpi,jpj,1,2) ) 
    83  
    84          ! fill sf_ice with sn_ice and control print 
    85          CALL fld_fill( sf_ice, (/ sn_ice /), cn_dir, 'sbc_ice_if', 'ice-if sea-ice model', 'namsbc_iif' ) 
    86          ! 
    87       ENDIF 
    88  
    89       CALL fld_read( kt, nn_fsbc, sf_ice )           ! Read input fields and provides the 
    90       !                                              ! input fields at the current time-step 
    9167       
    9268      IF( MOD( kt-1, nn_fsbc) == 0 ) THEN 
     
    10480               ! 
    10581               zt_fzp  = fr_i(ji,jj)                        ! freezing point temperature 
    106                zfr_obs = sf_ice(1)%fnow(ji,jj,1)            ! observed ice cover 
    10782               !                                            ! ocean ice fraction (0/1) from the freezing point temperature 
    10883               IF( sst_m(ji,jj) <= zt_fzp ) THEN   ;   fr_i(ji,jj) = 1.e0 
     
    11085               ENDIF 
    11186 
     87          zfr_obs = fr_i(ji,jj)   
    11288               tn(ji,jj,1) = MAX( tn(ji,jj,1), zt_fzp )     ! avoid over-freezing point temperature 
    11389 
Note: See TracChangeset for help on using the changeset viewer.