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 7153 for branches/2016/dev_r6999_CONFIGMAN_1/NEMOGCM/TOOLS/SIREN/src/merge_bathy.f90 – NEMO

Ignore:
Timestamp:
2016-10-28T11:13:57+02:00 (8 years ago)
Author:
jpaul
Message:

see ticket #1781

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6999_CONFIGMAN_1/NEMOGCM/TOOLS/SIREN/src/merge_bathy.f90

    r7026 r7153  
    5151!>       - cn_varcfg : variable configuration file  
    5252!> (see ./SIREN/cfg/variable.cfg) 
     53!>       - cn_dimcfg : dimension configuration file. define dimension allowed to 
     54!> be used (see ./SIREN/cfg/dimension.cfg). 
    5355!>       - cn_dumcfg : useless (dummy) configuration file, for useless  
    5456!> dimension or variable (see ./SIREN/cfg/dummy.cfg). 
     
    133135!> @date October, 2016 
    134136!> - allow to choose the number of boundary point with coarse grid value. 
     137!> - dimension to be used select from configuration file 
    135138!> 
    136139!> @note Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     
    211214 
    212215   ! namcfg 
    213    CHARACTER(LEN=lc)                       :: cn_varcfg = 'variable.cfg'  
    214    CHARACTER(LEN=lc)                       :: cn_dumcfg = 'dummy.cfg' 
     216   CHARACTER(LEN=lc)                       :: cn_varcfg = './cfg/variable.cfg'  
     217   CHARACTER(LEN=lc)                       :: cn_dimcfg = './cfg/dimension.cfg' 
     218   CHARACTER(LEN=lc)                       :: cn_dumcfg = './cfg/dummy.cfg' 
    215219 
    216220   ! namcrs 
     
    252256   NAMELIST /namcfg/ &  !< config namelist 
    253257   &  cn_varcfg, &       !< variable configuration file 
     258   &  cn_dimcfg, &       !< dimension configuration file 
    254259   &  cn_dumcfg          !< dummy configuration file 
    255260 
     
    324329      CALL var_def_extra(TRIM(cn_varcfg)) 
    325330 
     331      ! get dimension allowed 
     332      CALL dim_def_extra(TRIM(cn_dimcfg)) 
     333 
    326334      ! get dummy variable 
    327335      CALL var_get_dummy(TRIM(cn_dumcfg)) 
     
    626634   DEALLOCATE(dl_weight) 
    627635   CALL boundary_clean(tl_bdy(:)) 
     636   CALL var_clean_extra() 
    628637 
    629638   ! close log file 
     
    850859               il_width=td_bdy%t_seg(jl)%i_width-id_ncrs 
    851860               ! compute "distance" 
    852                dl_tmp1d(:)=(/(ji,ji=il_width-1,1,-1),(0,ji=1,id_ncrs)/) 
     861               dl_tmp1d(:)=(/(ji,ji=il_width,1,-1),(0,ji=1,id_ncrs)/) 
    853862 
    854863               ! compute weight on segment 
     
    869878               il_width=td_bdy%t_seg(jl)%i_width-id_ncrs 
    870879               ! compute "distance" 
    871                dl_tmp1d(:)=(/(0,ji=1,id_ncrs),(ji,ji=1,il_width-1)/) 
     880               dl_tmp1d(:)=(/(0,ji=1,id_ncrs),(ji,ji=1,il_width)/) 
    872881 
    873882               ! compute weight on segment 
     
    888897               il_width=td_bdy%t_seg(jl)%i_width-id_ncrs 
    889898               ! compute "distance" 
    890                dl_tmp1d(:)=(/(ji,ji=il_width-1,1,-1),(0,ji=1,id_ncrs)/) 
     899               dl_tmp1d(:)=(/(ji,ji=il_width,1,-1),(0,ji=1,id_ncrs)/) 
    891900 
    892901               ! compute weight on segment 
     
    907916               il_width=td_bdy%t_seg(jl)%i_width-id_ncrs 
    908917               ! compute "distance" 
    909                dl_tmp1d(:)=(/(0,ji=1,id_ncrs),(ji,ji=1,il_width-1)/) 
     918               dl_tmp1d(:)=(/(0,ji=1,id_ncrs),(ji,ji=1,il_width)/) 
    910919 
    911920               ! compute weight on segment 
Note: See TracChangeset for help on using the changeset viewer.