Changeset 2091


Ignore:
Timestamp:
06/17/13 07:59:07 (11 years ago)
Author:
mafoipsl
Message:

On curie, add default project initialisation in TimeSeries_Checker. Tests consolidation. Tested on curie and ada.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modipsl/trunk/util/ins_job

    r2036 r2091  
    114114#- 
    115115if ( ! ${x_p} ) ; then 
    116   if [ "X${x_t}" == "Xcurie" ] ; then 
     116  if [ X"${x_t}" == "Xcurie" ] ; then 
    117117    ProjectID=$( ccc_myproject | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | head -n 1 ) 
    118118    ProjectID=${ProjectID:="gen2211"} 
    119119    answer="" 
    120     print - "Hit Enter or give project ID (default is ${ProjectID}):" 
     120    print - "Hit Enter or give project ID (default is ${ProjectID}), possible projects are $( echo $( ccc_myproject | gawk '{ if ( $3 ~ /^project$/ && $4 !~ /^tgcc/ ) { print $4 } }' | sort -u ) ) :" 
    121121    read answer 
    122122 
     
    126126  fi 
    127127else 
    128   if ( "X${x_t}" != "Xcurie" ) ; then 
     128  if [ X"${x_t}" != "Xcurie" ] ; then 
    129129    print - "\nOption -p invalid with this host (${x_t}): it will be ignored" 1>&2; 
    130130  fi 
     
    259259  chmod u+x ${j}'/'${n_f} 
    260260done 
     261#- 
     262# set default_project in libIGCM_sys_curie.ksh too.  
     263#- 
     264if [ X"${x_t}" == "Xcurie" ] ; then 
     265  i=${libIGCM}/libIGCM_sys/libIGCM_sys_curie.ksh 
     266  sed -i -e "s/::default_project::/${ProjectID}/" ${i}  
     267fi 
    261268#- 
    262269# Limited to hindcast/forecast Ensemble for the time being 
Note: See TracChangeset for help on using the changeset viewer.