source: issm/oecreview/Archive/11569-11580/ISSM-11571-11572.diff@ 11991

Last change on this file since 11991 was 11991, checked in by Eric.Larour, 13 years ago

oecreview from 11518 to present

File size: 2.3 KB
  • proj/ice/larour/issm-uci-clean/trunk-jpl/cron/nightlyrun.sh

     
    4646done
    4747}
    4848#}}}
     49
    4950#Get configuration
    5051#Source config file{{{1
    5152if [ $# -ne 1 ];
     
    109110#create simpler  cluster.rc file, with only the cluster we are interested in.
    110111cd $ISSM_TIER/test/NightlyRun/
    111112if [ "$MACHINE" = "win7" ]; then
    112 cat << END > $HOST_NAME"_settings.m"
     113        cat << END > $HOST_NAME"_settings.m"
    113114cluster.login='$USER';
    114115cluster.codepath='`cygpath -m $ISSM_TIER/bin`';
    115116cluster.executionpath='`cygpath -m $EXECUTION_PATH`';
    116117END
    117118else
    118 cat << END > $HOST_NAME"_settings.m"
     119        cat << END > $HOST_NAME"_settings.m"
    119120cluster.login='$USER';
    120121cluster.codepath='$ISSM_TIER/bin';
    121122cluster.executionpath='$EXECUTION_PATH';
     
    138139        do
    139140                package=`echo $EXTERNALPACKAGES | cut -d " " -f $i-$i`
    140141                package_config=`echo $EXTERNALPACKAGES_CONFIGS | cut -d " " -f $i-$i`
    141                 package_numcpus=`echo $EXTERNALPACKAGES_NUMCPUS | cut -d " " -f $i-$i`
    142142
    143143                cd $package
    144                 $package_config $package_numcpus
     144                $package_config
    145145                cd ..
    146146        done
    147147
    148 
    149148elif [ "$ISSM_EXTERNALPACKAGES" == "copy" ]
    150149then
    151150
     
    177176        make distclean
    178177        ./scripts/automakererun.sh
    179178        source ./configs/$COMPILE_CONFIG_FILE
     179        make install
    180180
    181         make -j $NUMCPUS_INSTALL
    182         make -j $NUMCPUS_INSTALL install
    183 
    184181elif [ "$ISSM_COMPILATION" == "no" ]
    185182then
    186183        echo "Skipping ISSM compilation"
     
    193190#Prepare run
    194191#create softlink to startup {{{1
    195192cd $ISSM_TIER/test/NightlyRun/
    196 if [ "$MACHINE" = "win7" ]; then
    197         cp $ISSM_TIER/startup.m .
    198 else
    199         ln -s $ISSM_TIER/startup.m .
    200 fi
     193rm startup.m #in case it alreade exists
     194cp $ISSM_TIER/startup.m .
    201195#}}}
    202196#Create nightlylog directory and info.log {{{1
    203197#put installation elapsed time in info.log
     
    230224else
    231225        MATLAB_TIER=$ISSM_TIER
    232226fi
    233 
    234227#}}}
    235228#Launch all tests on different cpus {{{1
    236229for (( i=1;i<=$NUMCPUS_RUN;i++ ))
     
    280273#}}}
    281274#concatenate all reports {{{1
    282275cd $ISSM_TIER/nightlylog/
    283 mv matlab_log1.log  matlab_log.log
     276cp matlab_log1.log  matlab_log.log
    284277for (( i=2;i<=$NUMCPUS_RUN;i++ ))
    285278do
    286279        cat matlab_log.log matlab_log$i.log > matlab_log.log.bak
Note: See TracBrowser for help on using the repository browser.