Changeset 557


Ignore:
Timestamp:
02/22/12 10:43:38 (12 years ago)
Author:
mafoipsl
Message:

on vargas : simplification of executable name detection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_MPI_OpenMP/libIGCM_sys/libIGCM_sys_vargas.ksh

    r556 r557  
    11421142    fi 
    11431143 
    1144     if [ -f run_file ] ; then 
    1145         IGCM_sys_Rm -f run_file 
    1146     fi 
    1147     touch run_file 
    1148  
    11491144    if ( ${OK_PARA_MPMD} ) ; then 
     1145 
     1146        if [ -f run_file ] ; then 
     1147            IGCM_sys_Rm -f run_file 
     1148        fi 
     1149        touch run_file 
    11501150 
    11511151        if ( ${OK_PARA_OMP} ) ; then 
     
    11951195        eval ExeNameOut=\${config_Executable_${comp}[1]} 
    11961196             
    1197         # Only if we really have an executable for the component : 
     1197        # for CPL component only 
    11981198        if [ "X${comp}" = "XCPL" ] ; then 
    11991199 
     
    12301230             
    12311231        # Only if we really have an executable for the component and not the coupler ie oasis: 
    1232         if ( [ "X${ExeNameOut}" != X ] && [ "X${comp}" != "XCPL" ] ) ; then 
     1232        if ( [ "X${ExeNameOut}" != X\"\" ] && [ "X${comp}" != "XCPL" ] ) ; then 
    12331233 
    12341234            eval comp_proc_mpi_loc=\${${comp}_PROC_MPI} 
     
    12591259    EXECUTION="${HOST_MPIRUN_COMMAND} -pgmmodel mpmd -cmdfile ./run_file" 
    12601260 
     1261    IGCM_sys_Chmod u+x run_file 
     1262    if ( $DEBUG_sys ) ; then 
     1263      echo "run_file contains : " 
     1264      cat run_file 
     1265    fi 
     1266 
    12611267else # Only one executable. launch it. 
    12621268 
     
    12651271        eval ExeNameIn=\${config_Executable_${comp}[0]} 
    12661272        eval ExeNameOut=\${config_Executable_${comp}[1]} 
    1267         # to suppress "" coming from config.card 
    1268         eval ExeNameToLaunch=${ExeNameOut} 
    1269  
    1270         [ "X${ExeNameToLaunch}" != X ] &&  EXECUTION="time ./${ExeNameToLaunch}" 
     1273 
     1274        [ "X${ExeNameOut}" != X\"\" ] &&  EXECUTION="time ./${ExeNameOut}" 
    12711275 
    12721276    done 
    12731277 
    12741278fi 
    1275  
    1276     IGCM_sys_Chmod u+x run_file 
    1277     if ( $DEBUG_sys ) ; then 
    1278       echo "run_file contains : " 
    1279       cat run_file 
    1280     fi 
    12811279 
    12821280    IGCM_debug_Print 1 "sys vargas : execution command is " 
Note: See TracChangeset for help on using the changeset viewer.