source: TOOLS/PACK_IPSL/launch_ipsl_enlarge.sh @ 1717

Last change on this file since 1717 was 1717, checked in by aclsce, 12 years ago
  • 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.
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2######################
3## TITANE   CEA ##
4######################
5#MSUB -r ipsl_pack      # Nom du job               
6#MSUB -eo
7#MSUB -n 1              # Reservation du processus
8#MSUB -T 86400          # Limite de temps elapsed du job
9#MSUB -p gen2211
10#MSUB -q mono
11
12# ex : ./launch_ipsl_enlarge.sh
13
14export JOB_DIR=${LS_SUBCWD:-${PWD}}
15export EXE_DIR=${JOB_DIR}
16
17INPUT_DMF_DATA=${SCRATCHDIR}/PSEUDO_DMNFS
18OUTPUT_STORE=${SCRATCHDIR}/PSEUDO_DMNFS_STORE
19
20SCRIPT_NAME=$(basename ${0} )
21
22export IGCM_DEM=${SCRATCHDIR}/IGCM_DEM_WORK_WORK
23export IGCM_TMP=${SCRATCHDIR}/IGCM_DEM_WORK_WORK/tmp
24export clean_tmp=${clean_tmp:-yes}
25export DEM_LOG=${JOB_DIR}/dem_${LSB_JOBID:-${$}}.log
26export LOG_LEV=2
27
28export config_card=${IGCM_DEM}/config_card.liste
29
30source ${EXE_DIR}/DEM_utilities.sh
31
32DEM_log -0 "Demarrage de ${SCRIPT_NAME}"
33
34for CONFIG in $( awk '{print $1}' ${IGCM_DEM}/config_card.liste ) ; do
35
36    DEM_state=$( DEM_read_state ${IGCM_DEM}/config_card.liste ${CONFIG} )
37
38    DEM_write_state ${IGCM_DEM}/config_card.liste ${CONFIG} PackRunning
39    export PATH_SIMU=$( dirname $CONFIG )
40    ${EXE_DIR}/enlarge_my_files.sh ${INPUT_DMF_DATA} ${OUTPUT_STORE} 
41   
42    DEM_write_state ${IGCM_DEM}/config_card.liste ${CONFIG} PackDone
43
44done
45
46DEM_log -0 "Fin de ${SCRIPT_NAME}"
Note: See TracBrowser for help on using the repository browser.