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 5609 for trunk/NEMOGCM/TOOLS/SIREN/src/multi.f90 – NEMO

Ignore:
Timestamp:
2015-07-17T17:42:15+02:00 (9 years ago)
Author:
jpaul
Message:

commit changes/bugfix/... for SIREN; see ticket #1580

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/TOOLS/SIREN/src/multi.f90

    r5037 r5609  
    170170   !> @author J.Paul 
    171171   !> - November, 2013- Initial Version 
     172   !> @date July, 2015 - check if variable to be read is in file 
    172173   !> 
    173174   !> @param[in] cd_varfile   variable location information (from namelist)  
     
    190191 
    191192      INTEGER(i4)       :: il_nvar 
     193      INTEGER(i4)       :: il_varid 
    192194 
    193195      LOGICAL           :: ll_dim 
     
    242244                  ! define variable 
    243245                  IF( TRIM(fct_lower(cl_lower)) /= 'all' )THEN 
     246 
     247                     ! check if variable is in file 
     248                     il_varid=var_get_index(tl_mpp%t_proc(1)%t_var(:),cl_lower) 
     249                     IF( il_varid == 0 )THEN 
     250                        CALL logger_fatal("MULTI INIT: variable "//& 
     251                           & TRIM(cl_name)//" not in file "//& 
     252                           & TRIM(cl_file) ) 
     253                     ENDIF 
    244254 
    245255                     ! clean var 
Note: See TracChangeset for help on using the changeset viewer.