Changeset 2186


Ignore:
Timestamp:
09/10/09 14:11:31 (16 years ago)
Author:
Mathieu Morlighem
Message:

some fixing

Location:
issm/trunk/cron
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/nightlyrun.sh

    r2185 r2186  
    107107                        cd $ep
    108108                        cp configs/$OS/* .
    109                         ./install.sh $NUMCPUS
     109                        ./install.sh $NUMCPUS_INSTALL
    110110                        cd ..
    111111                done
     
    135135        then
    136136                cd $ISSM_DIR/src/c
    137                 ./intel-compile.sh >> ../../c-compilation.log 2>&1
     137                ./intel-compile.sh
    138138                cd $ISSM_DIR/src/mex
    139                 make install >> ../../mex-compilation.log 2>&1
     139                make install
    140140                cd $ISSM_DIR
    141141        else
    142                 make -j $NUMCPUS >> ../../cmex-compilation.log 2>&1
    143                 make -j $NUMCPUS install >> ../../cmex-compilation.log 2>&1
     142                make -j $NUMCPUS_INSTALL
     143                make -j $NUMCPUS_INSTALL install
    144144        fi
    145145fi
     
    162162#Launch matlab and the nightly run script
    163163cd $ISSM_DIR/cron/
    164 ./run.sh $NROPTIONS
     164./run.sh $1
    165165ELAPSED_RUN=$(timer $INSTALL_TIME)
    166166ELAPSED_TOTAL=$(timer $START_TIME)
     
    176176exit
    177177               
    178 #send mail
    179 source cron/mailinglist
    180 for i in `echo $MAILINGLIST`; do
    181 
    182         if [ "$OS" = "winxp32" ]
    183         then
    184                 email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE , operating system: $OS. " $i < report.html
    185         else
    186                 if [ "$OS" = "linux64" ]
     178#send mail if requested
     179if [ "$SKIPMAIL" != "yes" ]
     180then
     181        source cron/mailinglist
     182        for i in `echo $MAILINGLIST`; do
     183
     184                if [ "$OS" = "winxp32" ]
    187185                then
    188                         cat - report.html <<HERE | /usr/lib/sendmail  -oi -t
     186                        email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE , operating system: $OS. " $i < report.html
     187                else
     188                        if [ "$OS" = "linux64" ]
     189                        then
     190                                cat - report.html <<HERE | /usr/lib/sendmail  -oi -t
    189191From: "ISSM Nightly run" <$EMAIL_ADRESS>
    190192To: $i
     
    194196HERE
    195197                else
    196                         cat - report.html <<HERE | /usr/sbin/sendmail  -oi -t
     198cat - report.html <<HERE | /usr/sbin/sendmail  -oi -t
    197199From: "ISSM Nightly run" <$EMAIL_ADRESS>
    198200To: $i
     
    201203Content-Type: text/html
    202204HERE
     205                        fi
    203206                fi
    204         fi
    205 
    206 done
     207        done
     208fi
  • issm/trunk/cron/report.sh

    r2185 r2186  
    125125
    126126#report content
    127 if [ $IS_INSTALL -eq 1 ];
     127if [ $IS_RUN -eq 1 ];
    128128then
    129129        cat << END > content.html
  • issm/trunk/cron/run.sh

    r2185 r2186  
    11#!/bin/bash
    22
    3 numprocs=8;
     3#get configs
     4if [ $# -ne 1 ];
     5then
     6        #no config file specified: exit
     7        echo "no config file specified. Exiting..."
     8        exit 1
     9fi
     10source $1;
    411
    512#create softlink to startup
    6 rm startup.m
    713cd $ISSM_DIR/test/Verification/NightlyRun/
     14if [ -e startup.m ]
     15then
     16        rm startup.m
     17fi
    818ln -s $ISSM_DIR/startup.m .
    919
    1020#Launch all tests on different cpus
    11 for (( i=1;i<=$numprocs;i++ ))
     21for (( i=1;i<=$NUMCPUS_RUN;i++ ))
    1222do
    1323        #Launch matlab and the nightly run script
     
    1727        $(if [ "$1" = ""  ]
    1828        then
    19                 echo "nightlyrun('rank',$i,'numprocs',$numprocs);"
     29                echo "nightlyrun;"
    2030        else
    21                 echo "nightlyrun($1,'rank',$i,'numprocs',$numprocs);"
     31                echo "nightlyrun($NROPTIONS,'rank',$i,'numproc',$NUMCPUS_RUN);"
    2232        fi
    2333                )
     
    2636                directory=strsplit(pwd,'/');
    2737                message=getReport(me)
    28                 fid=fopen([ISSM_DIR '/test/Verification/NightlyRun/matlaberror.log'], 'wt');
     38                fid=fopen([ISSM_DIR '/test/Verification/NightlyRun/matlaberror.log'], 'at');
    2939                fprintf(fid,'\nMatlab error occured in: %s\n\n',directory{end});
    3040                fprintf(fid,'%s',message);
     
    4353#concatenate all reports
    4454mv matlab_log1.log  matlab_log.log
    45 for (( i=2;i<=$numprocs;i++ ))
     55for (( i=2;i<=$NUMCPUS_RUN;i++ ))
    4656do
    4757        cat matlab_log.log matlab_log$i.log > matlab_log.log.bak
Note: See TracChangeset for help on using the changeset viewer.