- Timestamp:
- 05/11/12 15:07:05 (13 years ago)
- Location:
- TOOLS/PACK_IPSL
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/find_directory_simul.sh
r1715 r1717 64 64 awk '{if (x[$0] != "") next ; print $0 ; x[$0]=$0}' <${IGCM_TMP}/${$}.path_simul.txt >> liste_simul_${LISTE_SIMUL_NAME} 65 65 awk '{if (x[$0] != "") next ; print $0 ; x[$0]=$0}' <liste_simul_${LISTE_SIMUL_NAME} >> liste_simul_${LISTE_SIMUL_NAME}.tmp${$} 66 mv liste_simul_${LISTE_SIMUL_NAME}.tmp${$} liste_simul_${LISTE_SIMUL_NAME} 66 mv liste_simul_${LISTE_SIMUL_NAME}.tmp${$} ${IGCM_DEM}/liste_simul_${LISTE_SIMUL_NAME} 67 rm -f liste_simul_${LISTE_SIMUL_NAME} 67 68 68 69 DEM_log -1 "Fichier cree : liste_simul_${LISTE_SIMUL_NAME}" -
TOOLS/PACK_IPSL/launch_ipsl_pack.sh
r1714 r1717 62 62 # un fichier recapitulatif des fichiers config.card (config_card.liste) crees sera stocke dans ${IGCM_DEM} 63 63 64 ${EXE_DIR}/create_config_card.sh liste_simul_${LISTE_SIMUL_NAME} ${LISTE_DMNFS}64 ${EXE_DIR}/create_config_card.sh ${IGCM_DEM}/liste_simul_${LISTE_SIMUL_NAME} ${LISTE_DMNFS} 65 65 66 66 #3- recherche de la taille ideale de pack pour chacune des simulations - puis creation des listes -
TOOLS/PACK_IPSL/write_liste_pack.sh
r1711 r1717 51 51 DEM_write_state ${IGCM_DEM}/config_card.liste ${config_card} WriteListPackRunning 52 52 53 # creation des repertoires with_tar et with_ncrcat 54 55 mkdir -p ${IGCM_DEM_SIMU}/with_ncrcat ${IGCM_DEM_SIMU}/with_tar 56 53 57 # lecture de periodpack dans ${IGCM_DEM_SIMU}/period_pack.txt 54 58 period_pack=$( awk '{print $0} ' ${IGCM_DEM_SIMU}/period_pack.txt ) … … 113 117 if [ ${date_fin} -ge ${date_begin_pack} ] 114 118 then 115 echo ${file} >> ${IGCM_DEM_SIMU}/ ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list119 echo ${file} >> ${IGCM_DEM_SIMU}/with_ncrcat/ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list 116 120 echo ${date_debut} | cut -c 1-6 >> ${IGCM_TMP}/${$}.date_${type_file}.txt 117 121 grep -v ${file} ${IGCM_TMP}/${$}.info_${type_file}.txt > ${IGCM_TMP}/${$}.info_${type_file}.txt.tmp … … 132 136 133 137 #On renomme le fichier ncrcat avec la date reelle de fin et non pas la premiere date suivant la fin 134 sort ${IGCM_DEM_SIMU}/ ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list > ${IGCM_TMP}/${$}.ncrcat.tmp138 sort ${IGCM_DEM_SIMU}/with_ncrcat/ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list > ${IGCM_TMP}/${$}.ncrcat.tmp 135 139 last_file=$(tail -n 1 ${IGCM_TMP}/${$}.ncrcat.tmp ) 136 140 extract_date_file=$( echo ${last_file} | sed -e "s/.*${JobName}_//" ) 137 141 date_fin=$(echo ${extract_date_file}| sed 's%.*_\([0-9]\{8\}\)_.*$%\1%g' ) 138 mv ${IGCM_DEM_SIMU}/ ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list ${IGCM_DEM_SIMU}/ncrcat_${type_file}_${date_begin_pack}_${date_fin}.list142 mv ${IGCM_DEM_SIMU}/with_ncrcat/ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list ${IGCM_DEM_SIMU}/with_ncrcat/ncrcat_${type_file}_${date_begin_pack}_${date_fin}.list 139 143 done 140 144 … … 216 220 if [[ -f ${IGCM_DEM_SIMU}/${type_file}_manquant.list && -s ${IGCM_DEM_SIMU}/${type_file}_manquant.list ]]; then 217 221 for date in `awk '{print $0}' ${IGCM_DEM_SIMU}/${type_file}_manquant.list` ; do 218 ls -l ${IGCM_DEM_SIMU}/ ncrcat_${type_file}* > ${IGCM_TMP}/${$}.liste_ncrcat222 ls -l ${IGCM_DEM_SIMU}/with_ncrcat/ncrcat_${type_file}* > ${IGCM_TMP}/${$}.liste_ncrcat 219 223 for pack in $( awk '{print $9}' ${IGCM_TMP}/${$}.liste_ncrcat ) ; do 220 224 extract_date_file=$( echo ${pack} | sed -e "s%.*${type_file}_%%" ) … … 222 226 date_fin=$( echo ${extract_date_file} | sed 's%.*_\([0-9]\{8\}\).list%\1%g' | cut -c 1-6 ) 223 227 if [[ ${date} -ge ${date_debut} && ${date} -lt ${date_fin} ]]; then 224 mv ${pack} ${IGCM_DEM_SIMU}/ tar_${type_file}_${date_debut}_${date_fin}.list228 mv ${pack} ${IGCM_DEM_SIMU}/with_tar/tar_${type_file}_${date_debut}_${date_fin}.list 225 229 break 226 230 else
Note: See TracChangeset
for help on using the changeset viewer.