Changeset 1429


Ignore:
Timestamp:
03/16/18 12:27:26 (6 years ago)
Author:
jgipsl
Message:

Set extension of files to rebuild to _????.nc This is done to allow the case when a another file exists with the same name followed by an extension. For example sechiba_history.nc and sechiba_history_4dim.nc: When rebuilding sechiba_history.nc, previous command using _[0-9]*.nc also included the file sechiba_history_4dim which made errors.

Note this modification is not compatible with extension _00.nc, _01.nc, etc..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r1428 r1429  
    18361836              IGCM_sys_rebuild_nemo ${generic_file_name} ${nb_rebuild_file} "nc" ${generic_file_name}_[0-9]*.nc 
    18371837            else 
    1838               IGCM_sys_rebuild ${file_in} ${generic_file_name}_[0-9]*.nc 
     1838              IGCM_sys_rebuild ${file_in} ${generic_file_name}_????.nc 
    18391839            fi 
    18401840          else 
    18411841            IGCM_debug_Print 2 "Preparing offline rebuild for ${file_in}" 
    1842             IGCM_sys_Mv ${generic_file_name}_[0-9]*.nc ${RUN_DIR}/REBUILD_${PeriodDateBegin} 
     1842            IGCM_sys_Mv ${generic_file_name}_????.nc ${RUN_DIR}/REBUILD_${PeriodDateBegin} 
    18431843 
    18441844            # Prepare the shell dedicated to offline rebuild 
Note: See TracChangeset for help on using the changeset viewer.