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 5927 for branches/2015/dev_r5847_MERCATOR9_solveur_simplification/NEMOGCM/NEMO/OPA_SRC/BDY/bdydta.F90 – NEMO

Ignore:
Timestamp:
2015-11-26T12:23:11+01:00 (8 years ago)
Author:
jchanut
Message:

FS simplification: Insert changes related to #1638, #1625 + C1D compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5847_MERCATOR9_solveur_simplification/NEMOGCM/NEMO/OPA_SRC/BDY/bdydta.F90

    r5917 r5927  
    439439      CHARACTER(len=100)                     ::   cn_dir        ! Root directory for location of data files 
    440440      CHARACTER(len=100), DIMENSION(nb_bdy)  ::   cn_dir_array  ! Root directory for location of data files 
     441      CHARACTER(len = 256)::   clname                           ! temporary file name 
    441442      LOGICAL                                ::   ln_full_vel   ! =T => full velocities in 3D boundary data 
    442443                                                                ! =F => baroclinic velocities in 3D boundary data 
     
    678679            ! sea ice 
    679680            IF( nn_ice_lim_dta(ib_bdy) .eq. 1 ) THEN 
    680  
    681681               ! Test for types of ice input (lim2 or lim3)  
    682                CALL iom_open ( bn_a_i%clname, inum ) 
    683                id1 = iom_varid ( inum, bn_a_i%clvar, kdimsz=zdimsz, kndims=zndims, ldstop = .FALSE. ) 
     682               ! Build file name to find dimensions  
     683               clname=TRIM(bn_a_i%clname) 
     684               IF( .NOT. bn_a_i%ln_clim ) THEN    
     685                                                  WRITE(clname, '(a,"_y",i4.4)' ) TRIM( bn_a_i%clname ), nyear    ! add year 
     686                  IF( bn_a_i%cltype /= 'yearly' ) WRITE(clname, '(a,"m" ,i2.2)' ) TRIM( clname        ), nmonth   ! add month 
     687               ELSE 
     688                  IF( bn_a_i%cltype /= 'yearly' ) WRITE(clname, '(a,"_m",i2.2)' ) TRIM( bn_a_i%clname ), nmonth   ! add month 
     689               ENDIF 
     690               IF( bn_a_i%cltype == 'daily' .OR. bn_a_i%cltype(1:4) == 'week' ) & 
     691               &                                  WRITE(clname, '(a,"d" ,i2.2)' ) TRIM( clname        ), nday     ! add day 
     692               ! 
     693               CALL iom_open  ( clname, inum ) 
     694               id1 = iom_varid( inum, bn_a_i%clvar, kdimsz=zdimsz, kndims=zndims, ldstop = .FALSE. ) 
    684695               CALL iom_close ( inum ) 
    685                !CALL fld_clopn ( bn_a_i, nyear, nmonth, nday, ldstop=.TRUE. ) 
    686                !CALL iom_open ( bn_a_i%clname, inum ) 
    687                !id1 = iom_varid ( bn_a_i%num, bn_a_i%clvar, kdimsz=zdimsz, kndims=zndims, ldstop = .FALSE. ) 
     696 
    688697                IF ( zndims == 4 ) THEN 
    689698                 ll_bdylim3 = .TRUE.   ! lim3 input 
Note: See TracChangeset for help on using the changeset viewer.