Changeset 1714
- Timestamp:
- 05/11/12 10:08:39 (12 years ago)
- Location:
- TOOLS/PACK_IPSL
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/calcul_size_simul.sh
r1709 r1714 14 14 mkdir -p ${IGCM_TMP} 15 15 16 EXE_DIR=$(dirname ${0}) 17 SCRIPT_NAME=$(basename ${0} ) 18 source ${EXE_DIR}/DEM_utilities.sh 19 DEM_log -0 "Demarrage de ${SCRIPT_NAME}" 20 16 21 eval $(grep JobName ${config_card}) 17 22 eval $(grep PATH_SIMUL_FULL ${config_card}) … … 26 31 27 32 #cree la liste de l'ensemble des fichiers de la simulation 28 grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep 'R ' > ${IGCM_TMP}/$$.info_tmp.txt 29 awk '{print $(NF-2) " " $(NF-1)}' ${IGCM_TMP}/$$.info_tmp.txt > ${IGCM_DEM_SIMU}/All_files_simul.txt 33 #echo ${PATH_SIMUL_FULL} ${LISTE_DMNFS} 34 grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep 'f ' > ${IGCM_TMP}/$$.info_tmp.txt 35 awk '{print $(NF-1) " " $(NF)}' ${IGCM_TMP}/$$.info_tmp.txt > ${IGCM_DEM_SIMU}/All_files_simul.txt 30 36 31 37 size=`awk 'BEGIN {y = 0} {x = $1 ; y = y + x } END{print y}' ${IGCM_DEM_SIMU}/All_files_simul.txt` 32 echo $size 38 DEM_log -3 "la taille de la simulation est $size" 33 39 if [ ${size} -lt ${limitmin} ] 34 40 then 35 41 36 echo "trop petit on archive cette simulation avec tar" 37 PATH_SIMUL_SHORT=$(echo ${PATH_SIMUL_FULL} | sed 's%/[^/]*/[^/]*/[^/]*/%%' ) 38 echo ${PATH_SIMUL_FULL} > ${IGCM_DEM_SIMU}/tar_full_simul.txt 39 42 DEM_log -0 "Simulation < 1Go - on l'archive avec tar" 43 ./write_liste_tar.sh ${config_card} 40 44 41 45 fi 46 DEM_log -0 "Fin de ${SCRIPT_NAME}" -
TOOLS/PACK_IPSL/launch_ipsl_pack.sh
r1713 r1714 68 68 for CONFIG in $( awk '{print $1}' ${IGCM_DEM}/config_card.liste ) ; do 69 69 70 DEM_log ${CONFIG}70 DEM_log -2 ${CONFIG} 71 71 72 72 eval $(grep IGCM_DEM_SIMU ${CONFIG}) 73 73 ${EXE_DIR}/calcul_size_simul.sh ${CONFIG} ${LISTE_DMNFS} 74 74 75 if [ ! -f ${IGCM_DEM_SIMU}/tar_full_simul.txt ] 76 then 77 echo "la simulation est superieur a 1Go alors on pack" 75 DEM_state=$( DEM_read_state ${IGCM_DEM}/config_card.liste ${CONFIG} ) 76 if [[ "${DEM_state}" != "WriteListTarDone" ]] ; then 77 78 DEM_log -3 "la simulation est superieur a 1Go alors on pack" 78 79 ${EXE_DIR}/find_size_pack.sh ${CONFIG} ${LISTE_DMNFS} 79 80 ${EXE_DIR}/write_liste_pack.sh ${CONFIG} ${LISTE_DMNFS} 80 81 # ${EXE_DIR}/archive_restart.sh ${CONFIG} ${LISTE_DMNFS} 82 81 83 fi 82 84 done
Note: See TracChangeset
for help on using the changeset viewer.