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/create_coord.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/create_coord.f90

    r7025 r7153  
    4444!>       - cn_varcfg : variable configuration file  
    4545!> (see ./SIREN/cfg/variable.cfg) 
     46!>       - cn_dimcfg : dimension configuration file. define dimension allowed to 
     47!> be used (see ./SIREN/cfg/dimension.cfg). 
    4648!>       - cn_dumcfg : useless (dummy) configuration file, for useless  
    4749!> dimension or variable (see ./SIREN/cfg/dummy.cfg). 
     
    110112!> @date September, 2016 
    111113!> - allow to use coordinate to define subdomain 
     114!> @date October, 2016 
     115!> - dimension to be used select from configuration file 
    112116!> 
    113117!> @note Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     
    181185   ! namcfg 
    182186   CHARACTER(LEN=lc) :: cn_varcfg = './cfg/variable.cfg'  
     187   CHARACTER(LEN=lc) :: cn_dimcfg = './cfg/dimension.cfg'  
    183188   CHARACTER(LEN=lc) :: cn_dumcfg = './cfg/dummy.cfg' 
    184189 
     
    213218   NAMELIST /namcfg/ &  !  config namelist 
    214219   &  cn_varcfg, &       !< variable configuration file 
     220   &  cn_dimcfg, &       !< dimension configuration file 
    215221   &  cn_dumcfg          !< dummy configuration file 
    216222 
     
    277283      CALL var_def_extra(TRIM(cn_varcfg)) 
    278284 
     285      ! get dimension allowed 
     286      CALL dim_def_extra(TRIM(cn_dimcfg)) 
     287 
    279288      ! get dummy variable 
    280289      CALL var_get_dummy(TRIM(cn_dumcfg)) 
     
    340349   IF( rn_lonmax0 >= -180. .AND. rn_lonmax0 <= 360 .AND. & 
    341350     & rn_latmax0 >= -90.  .AND. rn_latmax0 <= 90. )THEN 
     351 
    342352      il_index(:)=grid_get_closest(tl_coord0, & 
    343353         &                         REAL(rn_lonmax0,dp), REAL(rn_latmax0,dp), & 
     
    481491   IF( il_attid == 0 )THEN 
    482492      il_ind=var_get_index(tl_fileout%t_var(:),'longitude') 
     493      IF( il_ind == 0 )THEN 
     494         il_ind=var_get_index(tl_fileout%t_var(:),'longitude_T') 
     495      ENDIF 
    483496      il_ew=grid_get_ew_overlap(tl_fileout%t_var(il_ind)) 
    484497      IF( il_ew >= 0 )THEN 
     
    503516 
    504517   CALL file_clean(tl_fileout) 
     518   CALL var_clean_extra() 
    505519 
    506520   ! close log file 
Note: See TracChangeset for help on using the changeset viewer.