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 1133 for trunk/NEMO/OPA_SRC/SBC/sbcblk_clio.F90 – NEMO

Ignore:
Timestamp:
2008-06-24T17:41:07+02:00 (16 years ago)
Author:
smasson
Message:

new sbc namelist format, see ticket:1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/sbcblk_clio.F90

    r1051 r1133  
    121121      INTEGER, INTENT( in  ) ::   kt   ! ocean time step 
    122122      !! 
    123       INTEGER  ::   jf, ifpr, jfpr     ! dummy indices 
     123      INTEGER  ::   ifpr, jfpr         ! dummy indices 
    124124      INTEGER  ::   ierror             ! return error code 
    125125      !! 
     
    140140 
    141141         ! (NB: frequency positive => hours, negative => months) 
    142          !            !    file     ! frequency !  variable  ! time intep !  clim  ! starting ! 
    143          !            !    name     !  (hours)  !   name     !   (T/F)    !  (0/1) !  record  ! 
    144          sn_utau = FLD_N( 'utau'    ,    24.    ,  'utau'    ,  .true.    ,    0   ,     0    )  
    145          sn_vtau = FLD_N( 'vtau'    ,    24.    ,  'vtau'    ,  .true.    ,    0   ,     0    )  
    146          sn_wndm = FLD_N( 'mwnd10m' ,    24.    ,  'm_10'    ,  .true.    ,    0   ,     0    )  
    147          sn_tair = FLD_N( 'tair10m' ,    24.    ,  't_10'    ,  .FALSE.   ,    0   ,     0    )  
    148          sn_humi = FLD_N( 'humi10m' ,    24.    ,  'q_10'    ,  .FALSE.   ,    0   ,     0    )  
    149          sn_ccov = FLD_N( 'ccover'  ,   -12.    ,  'cloud'   ,  .TRUE.    ,    0   ,     0    )  
    150          sn_prec = FLD_N( 'precip'  ,   -12.    ,  'precip'  ,  .TRUE.    ,    0   ,     0    )  
     142         !            !    file     ! frequency !  variable  ! time intep !  clim   ! 'yearly' or ! 
     143         !            !    name     !  (hours)  !   name     !   (T/F)    !  (T/F)  !  'monthly'  ! 
     144         sn_utau = FLD_N( 'utau'    ,    24.    ,  'utau'    ,  .true.    , .false. ,   'yearly'  )  
     145         sn_vtau = FLD_N( 'vtau'    ,    24.    ,  'vtau'    ,  .true.    , .false. ,   'yearly'  )  
     146         sn_wndm = FLD_N( 'mwnd10m' ,    24.    ,  'm_10'    ,  .true.    , .false. ,   'yearly'  )  
     147         sn_tair = FLD_N( 'tair10m' ,    24.    ,  't_10'    ,  .false.   , .false. ,   'yearly'  )  
     148         sn_humi = FLD_N( 'humi10m' ,    24.    ,  'q_10'    ,  .false.   , .false. ,   'yearly'  )  
     149         sn_ccov = FLD_N( 'ccover'  ,    -1.    ,  'cloud'   ,  .true.    , .false. ,   'yearly'  )  
     150         sn_prec = FLD_N( 'precip'  ,    -1.    ,  'precip'  ,  .true.    , .false. ,  ' yearly'  )  
    151151 
    152152         REWIND( numnam )                    ! ... read in namlist namsbc_clio 
     
    163163            CALL ctl_stop( 'sbc_blk_clio: unable to allocate sf structure' )   ;   RETURN 
    164164         ENDIF 
    165          ! 
    166          DO jf = 1, jpfld 
    167             WRITE(sf(jf)%clrootname,'(a,a)' )   TRIM( cn_dir ), TRIM( slf_i(jf)%clname ) 
    168             sf(jf)%freqh   = slf_i(jf)%freqh 
    169             sf(jf)%clvar   = slf_i(jf)%clvar 
    170             sf(jf)%ln_tint = slf_i(jf)%ln_tint 
    171             sf(jf)%nclim   = slf_i(jf)%nclim 
    172             sf(jf)%nstrec  = slf_i(jf)%nstrec 
    173          END DO 
    174  
    175          IF(lwp) THEN      ! control print 
    176             WRITE(numout,*)             
    177             WRITE(numout,*) 'sbc_blk_clio : flux formulattion for ocean surface boundary condition' 
    178             WRITE(numout,*) '~~~~~~~~~~~~ ' 
    179             WRITE(numout,*) '          namsbc_clio Namelist' 
    180             WRITE(numout,*) '          list of files and frequency (>0: in hours ; <0 in months)' 
    181             DO jf = 1, jpfld 
    182                 WRITE(numout,*) '               file root name: ' , TRIM( sf(jf)%clrootname ),   & 
    183                    &                          ' variable name: '  , TRIM( sf(jf)%clvar      ) 
    184                 WRITE(numout,*) '               frequency: '      ,       sf(jf)%freqh       ,   & 
    185                    &                          ' time interp: '    ,       sf(jf)%ln_tint     ,   & 
    186                    &                          ' climatology: '    ,       sf(jf)%nclim       ,   & 
    187                    &                          ' starting record: ',       sf(jf)%nstrec 
    188             END DO 
    189          ENDIF 
     165 
     166         ! fill sf with slf_i and control print 
     167         CALL fld_fill( sf, slf_i, cn_dir, 'sbc_blk_clio', 'flux formulation for ocean surface boundary condition', 'namsbc_clio' ) 
    190168         ! 
    191169      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.