- Timestamp:
- 06/17/19 11:01:17 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
r1459 r1484 116 116 #==================================================== 117 117 #- IN 118 typeset -r R_IN=${R_IN:=/home /${LOGIN}/IGCM}118 typeset -r R_IN=${R_IN:=/home_local/${LOGIN}/IGCM} 119 119 120 120 #==================================================== 121 121 #- RUN_DIR_PATH : Temporary working directory (=> TMP) 122 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/home /${LOGIN}/RUN_DIR/tmp$$}122 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/home_local/${LOGIN}/RUN_DIR/tmp$$} 123 123 124 124 #==================================================== … … 167 167 #==================================================== 168 168 #- ARCHIVE (dedicated to large files) 169 ARCHIVE=${ARCHIVE:=/home /${LOGIN}}169 ARCHIVE=${ARCHIVE:=/home_local/${LOGIN}} 170 170 fi 171 171 … … 1017 1017 echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 1018 1018 fi 1019 if ( ${OK_PARA_MPI} ) ; then 1019 1020 if [ ${mpiTasks} -eq 1 ] && [ ${openMPthreads} -eq 1 ] ; then 1021 # Case with only one proc 1022 # mpirun should not be used at obelix for only one proc 1023 # Output text per process 1024 echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 1025 IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 1026 EXECUTION="time ./script_${ExeNameOut}.ksh" 1027 elif ( ${OK_PARA_MPI} ) ; then 1020 1028 # Default : mpirun used if nb_proc gt 1 1021 # pour sortie out/err par process1029 # Output text per process 1022 1030 echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}" >> script_${ExeNameOut}.ksh 1023 #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh1024 1031 IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 1025 1032 EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 1026 else 1027 # Default : mpirun is NOT used if nb_proc eq 1 1028 # pour sortie out/err par process 1033 elif [ ${executionType} -eq 6 ] ; then 1034 # Sequentiel case: this is the same as the first case. 1029 1035 echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 1030 #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh1031 1036 IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 1032 1037 EXECUTION="time ./script_${ExeNameOut}.ksh" 1038 else 1039 # Strange case. 1040 IGCM_debug_Exit "ERROR with OK_PARA_MPI" 1041 IGCM_debug_Print 2 "sys Obelix : OK_PARA_MPI=False and mpiTask/openMPthreds different from 1" 1042 IGCM_debug_Verif_Exit 1033 1043 fi 1044 1034 1045 1035 1046 IGCM_debug_Print 1 "sys $( hostname ) : script_${ExeNameOut}.ksh contains"
Note: See TracChangeset
for help on using the changeset viewer.