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_default.ksh

    r1300 r1317  
    953953            echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 
    954954          fi 
    955           #echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
    956           #echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
    957           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     955          echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >>  script_${ExeNameOut}.ksh 
     956          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}"  >> script_${ExeNameOut}.ksh 
     957          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    958958          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    959959 
     
    10151015          # Default : mpirun used if nb_proc gt 1 
    10161016          # pour sortie out/err par process 
    1017           # echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
    1018           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1017          echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}"  >> script_${ExeNameOut}.ksh 
     1018          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10191019          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10201020          EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 
     
    10221022          # Default : mpirun is NOT used if nb_proc eq 1 
    10231023          # pour sortie out/err par process 
    1024           # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
    1025           echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     1024          echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     1025          #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
    10261026          IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
    10271027          EXECUTION="time ./script_${ExeNameOut}.ksh" 
Note: See TracChangeset for help on using the changeset viewer.