Changeset 1717


Ignore:
Timestamp:
05/11/12 15:07:05 (12 years ago)
Author:
aclsce
Message:
  • Added scripts "launch_ipsl_enlarge.sh" and "enlarge_my_files.sh".
  • Added creation and use of directories "with_ncrcat" and "with_tar" to store list of files to treat.
  • Added mv of "liste_simul_*" file into IGCM_DEM directory.
Location:
TOOLS/PACK_IPSL
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/find_directory_simul.sh

    r1715 r1717  
    6464awk '{if (x[$0] != "") next ; print $0 ; x[$0]=$0}' <${IGCM_TMP}/${$}.path_simul.txt  >> liste_simul_${LISTE_SIMUL_NAME} 
    6565awk '{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} 
     66mv liste_simul_${LISTE_SIMUL_NAME}.tmp${$} ${IGCM_DEM}/liste_simul_${LISTE_SIMUL_NAME} 
     67rm -f liste_simul_${LISTE_SIMUL_NAME} 
    6768 
    6869DEM_log -1 "Fichier cree : liste_simul_${LISTE_SIMUL_NAME}" 
  • TOOLS/PACK_IPSL/launch_ipsl_pack.sh

    r1714 r1717  
    6262# un fichier recapitulatif des fichiers config.card (config_card.liste) crees sera stocke dans ${IGCM_DEM} 
    6363 
    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} 
    6565 
    6666#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  
    5151DEM_write_state ${IGCM_DEM}/config_card.liste ${config_card} WriteListPackRunning 
    5252 
     53# creation des repertoires with_tar et with_ncrcat 
     54 
     55mkdir -p ${IGCM_DEM_SIMU}/with_ncrcat ${IGCM_DEM_SIMU}/with_tar 
     56 
    5357# lecture de periodpack dans ${IGCM_DEM_SIMU}/period_pack.txt 
    5458period_pack=$( awk '{print $0} ' ${IGCM_DEM_SIMU}/period_pack.txt ) 
     
    113117               if [ ${date_fin} -ge ${date_begin_pack} ] 
    114118               then  
    115                    echo ${file} >> ${IGCM_DEM_SIMU}/ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list 
     119                   echo ${file} >> ${IGCM_DEM_SIMU}/with_ncrcat/ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list 
    116120                   echo ${date_debut} | cut -c 1-6 >>  ${IGCM_TMP}/${$}.date_${type_file}.txt 
    117121                   grep -v ${file} ${IGCM_TMP}/${$}.info_${type_file}.txt > ${IGCM_TMP}/${$}.info_${type_file}.txt.tmp 
     
    132136 
    133137#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.tmp 
     138       sort ${IGCM_DEM_SIMU}/with_ncrcat/ncrcat_${type_file}_${date_begin_pack}_${date_end_pack}.list > ${IGCM_TMP}/${$}.ncrcat.tmp 
    135139       last_file=$(tail -n 1 ${IGCM_TMP}/${$}.ncrcat.tmp ) 
    136140       extract_date_file=$( echo ${last_file}  | sed -e "s/.*${JobName}_//" ) 
    137141       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}.list 
     142       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 
    139143   done 
    140144    
     
    216220        if [[ -f ${IGCM_DEM_SIMU}/${type_file}_manquant.list && -s ${IGCM_DEM_SIMU}/${type_file}_manquant.list ]]; then  
    217221            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_ncrcat 
     222                ls -l ${IGCM_DEM_SIMU}/with_ncrcat/ncrcat_${type_file}* > ${IGCM_TMP}/${$}.liste_ncrcat 
    219223                for pack in $( awk '{print $9}' ${IGCM_TMP}/${$}.liste_ncrcat ) ; do  
    220224                    extract_date_file=$( echo ${pack}       | sed -e "s%.*${type_file}_%%" ) 
     
    222226                    date_fin=$(   echo ${extract_date_file} | sed 's%.*_\([0-9]\{8\}\).list%\1%g' | cut -c 1-6  ) 
    223227                    if [[ ${date} -ge ${date_debut} && ${date} -lt ${date_fin} ]]; then 
    224                         mv ${pack} ${IGCM_DEM_SIMU}/tar_${type_file}_${date_debut}_${date_fin}.list 
     228                        mv ${pack} ${IGCM_DEM_SIMU}/with_tar/tar_${type_file}_${date_debut}_${date_fin}.list 
    225229                        break  
    226230                    else 
Note: See TracChangeset for help on using the changeset viewer.