Changeset 1641


Ignore:
Timestamp:
07/19/24 11:53:09 (4 months ago)
Author:
aclsce
Message:

Rebuild nemo restart files before copy either on buffer or archive space in order to speedup this step.

File:
1 edited

Legend:

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

    r1637 r1641  
    18471847        nb_restart_file=$( ls ${generic_restart_file_name_in}_????.nc 2>/dev/null | wc -l ) 
    18481848        if [ ${nb_restart_file} -gt 1 ] ; then 
    1849           j=0                                     # BASH LINE NOT NEEDED 
    1850           # BASH for j4 in in $( eval echo {0000..$(( nb_restart_file - 1 ))} ) ; do 
    1851           until [ $j -ge ${nb_restart_file} ]; do # BASH LINE NOT NEEDED 
    1852             j4=${j}                               # BASH LINE NOT NEEDED 
     1849            IGCM_sys_rebuild_nemo ${generic_restart_file_name_in} ${nb_restart_file} 
     1850            IGCM_sys_Rm ${generic_restart_file_name_in}_????.nc 
    18531851            if [ X${Pack} = Xtrue ] ; then 
    1854               eval IGCM_sys_PutBuffer_Rest ${generic_restart_file_name_in}_${j4}.nc \${R_BUF_${comp}_R}/${generic_restart_file_name_out}_${j4}.nc ${is_opt} 
     1852                eval IGCM_sys_PutBuffer_Rest ${file_in} \${R_BUF_${comp}_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_${file_out} ${is_opt} 
    18551853            else 
    1856               eval IGCM_sys_Put_Rest ${generic_restart_file_name_in}_${j4}.nc \${R_OUT_${comp}_R}/${generic_restart_file_name_out}_${j4}.nc ${is_opt} 
     1854                eval IGCM_sys_Put_Rest ${file_in} \${R_OUT_${comp}_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_${file_out} ${is_opt} 
    18571855            fi 
    1858  
    1859             if [ -f  ${generic_restart_file_name_in}_${j4}.nc ] ; then 
     1856            if [ -f ${file_in} ] ; then 
    18601857                if [ ! ${file_in} = ${file_outin} ] ; then 
    18611858                    if ( ${ExitFlag} ) ; then 
    1862                         echo "IGCM_sys_Mv ${generic_restart_file_name_in}_${j4}.nc ${generic_restart_file_name_outin}_${j4}.nc not executed." 
     1859                    echo "IGCM_sys_Mv ${file_in} ${file_outin} not executed." 
    18631860                    else 
    1864                         IGCM_sys_Mv ${generic_restart_file_name_in}_${j4}.nc ${generic_restart_file_name_outin}_${j4}.nc 
     1861                    IGCM_sys_Mv ${file_in} ${file_outin} 
    18651862                    fi 
    18661863                fi 
     
    18681865                # This is the case where the restart file no not exist. 
    18691866                # It has already been checked if the model should stop for this case. 
    1870                 IGCM_debug_Print 1 "Restart file does not exist, no move in RUN_DIR done :  ${generic_restart_file_name_in}_${j4}.nc" 
     1867                IGCM_debug_Print 1 "Restart file does not exist, no move in RUN_DIR done :  ${file_in}" 
    18711868            fi 
    1872             (( j=j+1 ))                           # BASH LINE NOT NEEDED 
    1873           done 
    18741869        else 
    18751870          if [ X${Pack} = Xtrue ] ; then 
Note: See TracChangeset for help on using the changeset viewer.