Changeset 8811


Ignore:
Timestamp:
07/06/11 08:43:47 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added Petsc Error paragraph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/scripts/report.sh

    r8810 r8811  
    1919#Process matlab_log.log
    2020cat matlab_log.log        | egrep 'ERROR|SUCCESS|FAILURE' | grep -v "PETSC" | sed -e "s/>/\&gt;/g" | sed -e "s/</\&lt;/g" > matlab.log
     21cat matlab_log.log        | grep "PETSC" | sed -e "s/>/\&gt;/g" | sed -e "s/</\&lt;/g" > petscerror.log
    2122NUM_TOT=`wc -l matlab.log | awk '{print $1}'`
    2223NUM_ERR=`cat matlab.log | grep 'ERROR'   | grep -v "PETSC" | wc -l`
     
    172173then
    173174        cat << END > matlaberror.html
    174 <table $H2_STYLE><tr><td $H2_FONT>Matlab error</td></tr></table>
     175<table $H2_STYLE><tr><td $H2_FONT>Matlab errors</td></tr></table>
    175176<table $MATLAB_STYLE><tr><td $MATLAB_FONT>
    176177<pre>$(cat matlaberror.log)</pre>
     
    179180else
    180181        mktemp matlaberror.html
     182fi
     183
     184#Matlab error report
     185if test -s petscerror.log
     186then
     187        cat << END > petscerror.html
     188<table $H2_STYLE><tr><td $H2_FONT>PETSc errors</td></tr></table>
     189<table $MATLAB_STYLE><tr><td $MATLAB_FONT>
     190<pre>$(cat petscerror.log)</pre>
     191</td></tr></table>
     192END
     193else
     194        mktemp petscerror.html
    181195fi
    182196
     
    189203
    190204#concatenate files
    191 cat summary.html content.html matlaberror.html footer.html > report.html
    192 rm  summary.html content.html footer.html matlaberror.html matlab.log
     205cat summary.html content.html matlaberror.html petscerror.html footer.html > report.html
     206rm  summary.html content.html footer.html matlaberror.html petscerror.html matlab.log
Note: See TracChangeset for help on using the changeset viewer.