Changeset 1160 for trunk/libIGCM


Ignore:
Timestamp:
01/27/15 17:54:25 (9 years ago)
Author:
sdipsl
Message:
  • better this way ...
Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_metrics_LMDZ

    r1159 r1160  
    8080#set -vx 
    8181 
    82 function METRICS_sed 
    83 { 
    84 # Usage : METRICS_sed metrics_template var_name myvalue 
    85 #         In file metrics_template modify the line containing var_name=xxx into var_name=myvalue 
    86     IGCM_debug_PushStack "METRICS_sed" 
    87      
    88     # Test if the fichier exist 
    89     if [ ! -f ${1} ] ; then 
    90         echo "WARNING : ${1} file does not exist. Following will not be done : METRICS_sed : ${1} ${2} ${3}" 
    91         IGCM_debug_PopStack "METRICS_sed" 
    92         return 
    93     fi 
    94  
    95     sed -e "s/^${2}\ *=.*/${2} = ${3}/" ${1} > ${1}.tmp 
    96     RET=$? 
    97     echo "METRICS_sed : ${1} ${2} ${3}" 
    98     \mv ${1}.tmp ${1} 
    99  
    100     IGCM_debug_PopStack "METRICS_sed" 
    101     return $RET 
    102 } 
    103  
    10482IGCM_sys_MkdirWork ${RUN_DIR_PATH} 
    10583IGCM_sys_Cd ${RUN_DIR_PATH} 
     
    141119IGCM_sys_MkdirWork ${RUN_DIR} 
    142120IGCM_sys_Cd ${RUN_DIR} 
     121IGCM_sys_MkdirWork METRICS 
    143122 
    144123#================================== 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r1158 r1160  
    104104else 
    105105  . /ccc/cont003/home/dsm/p86ipsl/.atlas_env_netcdf4_curie_ksh > /dev/null 2>&1 
    106   METRICS_MP=/ccc/work/cont003/dsm/p86ipsl/PCMDI-MP/ 
     106  PCMDI_MP=/ccc/work/cont003/dsm/p86ipsl/PCMDI-MP/ 
    107107fi 
    108108 
Note: See TracChangeset for help on using the changeset viewer.