Changeset 431


Ignore:
Timestamp:
03/18/11 15:13:30 (13 years ago)
Author:
mmaipsl
Message:

Sort the list of output text files before concatain them.
Add a print with this list.

File:
1 edited

Legend:

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

    r429 r431  
    10501050 
    10511051                unset list_file 
    1052                 set +A list_file -- $( ls ${file_in}* 2>/dev/null ) 
     1052                set +A list_file -- $( ls ${file_in}* | sort 2>/dev/null ) 
    10531053                nlist_file=${#list_file[@]} 
    10541054                if [ ${nlist_file} -gt 1 ] ; then 
     
    10621062                        eval file_out=${PREFIX}_${file_in} 
    10631063 
     1064                        IGCM_debug_Print 2 "Parallelism of Text Output with ${nlist_file} files." 
     1065                        IGCM_debug_Print 2 "Compact files in ${file_out} : " ${list_file[*]} 
    10641066                        echo ${list_file[*]} > ${file_out} 
    10651067                        echo " 
    10661068" >> ${file_out} 
    1067  
     1069                         
    10681070                        (( i_ = 0 )) 
    10691071                        for file in ${list_file[@]} 
Note: See TracChangeset for help on using the changeset viewer.