Changeset 740 for trunk


Ignore:
Timestamp:
10/31/12 16:01:56 (12 years ago)
Author:
sdipsl
Message:
  • when restarting from a simulation having run on different number of cores that the current one we have to rebuild restarts
File:
1 edited

Legend:

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

    r694 r740  
    725725            if [ ${nb_restart_file} -gt 1 ] ; then 
    726726              j=0 
    727               until [ $j -ge $nb_restart_file ]; do 
     727              until [ $j -ge ${nb_restart_file} ]; do 
    728728                j4=${j} 
    729729                if [ X${Buffered} = Xtrue ] ; then 
     
    736736                (( j=j+1 )) 
    737737              done 
     738 
     739              if [ X${NUM_PROC_OCE} != X ] ; then 
     740                if [ ${NUM_PROC_OCE} -ne ${nb_restart_file} ] ; then 
     741                  IGCM_sys_rebuild ${generic_restart_file_name_out}.${extension_out} ${generic_restart_file_name_out}_????.${extension_out} 
     742                  IGCM_sys_Rm ${generic_restart_file_name_out}_????.${extension_out} 
     743                fi 
     744              fi 
    738745            else 
    739746              if [ X${Buffered} = Xtrue ] ; then 
     
    816823          if [ ${nb_restart_file} -gt 1 ] ; then 
    817824            j=0 
    818             until [ $j -ge $nb_restart_file ]; do 
     825            until [ $j -ge ${nb_restart_file} ]; do 
    819826              j4=${j} 
    820827              if [ X${Buffered} = Xtrue ] ; then 
     
    10011008        if [ ${nb_restart_file} -gt 1 ] ; then 
    10021009          j=0 
    1003           until [ $j -ge $nb_restart_file ]; do 
     1010          until [ $j -ge ${nb_restart_file} ]; do 
    10041011            j4=${j} 
    10051012            if [ X${Pack} = Xtrue ] ; then 
Note: See TracChangeset for help on using the changeset viewer.