Ignore:
Timestamp:
01/28/13 16:30:59 (11 years ago)
Author:
sdipsl
Message:

Bugfix building execution file run_file
OpenMP not yet in. Only MPI.
time command not available from ksh batch environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh

    r774 r777  
    9595if [ X${TaskType} = Xcomputing ] ; then 
    9696  echo 
     97  #source /smplocal/pub/Modules/default/init/ksh 
    9798  #. /smphome/rech/psl/rpsl035/.atlas_env_ada_bash 
    98   #export PATH=${PATH}://smphome/rech/psl/rpsl035/AddNoise/src_X64/bin 
     99  #export PATH=${PATH}:/smphome/rech/psl/rpsl035/AddNoise/src_X64/bin 
    99100else 
    100101  source /smplocal/pub/Modules/default/init/ksh 
     
    161162#==================================================== 
    162163#- HOST_MPIRUN_COMMAND 
    163 typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="time poe"} 
     164typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="poe"} 
    164165 
    165166#==================================================== 
     
    17121713  fi 
    17131714 
    1714     # Verification with MSUB parameter 
    17151715  EXECUTION=${HOST_MPIRUN_COMMAND} 
    17161716 
     
    17371737        eval comp_proc_mpi_loc=\${${comp}_PROC_MPI} 
    17381738        eval comp_proc_omp_loc=\${${comp}_PROC_OMP} 
    1739         echo "${comp_proc_mpi_loc} ./${ExeNameOut}" >> run_file 
     1739 
     1740        if ( ${OK_PARA_MPI} ) ; then 
     1741          (( mpi_count = 1 )) 
     1742          until [ ${mpi_count} -gt ${comp_proc_mpi_loc} ] ; do 
     1743            echo "./${ExeNameOut}" >> run_file 
     1744            (( mpi_count = mpi_count + 1 )) 
     1745          done 
     1746        else 
     1747          echo "./${ExeNameOut} " >> run_file 
     1748        fi 
    17401749      fi 
    17411750    done 
     
    17531762        eval comp_proc_mpi_loc=\${${comp}_PROC_MPI} 
    17541763        eval comp_proc_omp_loc=\${${comp}_PROC_OMP} 
    1755         echo "${comp_proc_mpi_loc} ./${ExeNameOut}" >> run_file 
     1764 
     1765        if ( ${OK_PARA_MPI} ) ; then 
     1766          (( mpi_count = 1 )) 
     1767          until [ ${mpi_count} -gt ${comp_proc_mpi_loc} ] ; do 
     1768            echo "./${ExeNameOut}" >> run_file 
     1769            (( mpi_count = mpi_count + 1 )) 
     1770          done 
     1771        else 
     1772            echo "./${ExeNameOut} " >> run_file 
     1773        fi 
    17561774      fi 
    17571775    done 
     
    17731791      eval ExeNameOut=\${config_Executable_${comp}[1]} 
    17741792      if ( [ "X${ExeNameOut}" != X\"\" ] && [ "X${ExeNameOut}" != "Xinca.dat" ] ) ; then 
    1775         EXECUTION="time ./${ExeNameOut}" 
     1793        EXECUTION="./${ExeNameOut}" 
    17761794      fi 
    17771795 
Note: See TracChangeset for help on using the changeset viewer.