Ignore:
Timestamp:
04/13/16 22:37:09 (8 years ago)
Author:
sdipsl
Message:
  • Manage standard and error outputs from several cores and several components. See #166
File:
1 edited

Legend:

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

    r1300 r1317  
    973973            echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 
    974974          fi 
    975           #echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
    976           #echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
    977           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     975          echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
     976          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
     977          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    978978          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    979979 
     
    10351035          # Default : mpirun used if nb_proc gt 1 
    10361036          # pour sortie out/err par process 
    1037           # echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
    1038           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1037          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
     1038          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10391039          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10401040          EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 
     
    10421042          # Default : mpirun is NOT used if nb_proc eq 1 
    10431043          # pour sortie out/err par process 
    1044           # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
    1045           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1044          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     1045          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10461046          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10471047          EXECUTION="time ./script_${ExeNameOut}.ksh" 
Note: See TracChangeset for help on using the changeset viewer.