Index: /issm/trunk/scripts/report.sh
===================================================================
--- /issm/trunk/scripts/report.sh	(revision 8810)
+++ /issm/trunk/scripts/report.sh	(revision 8811)
@@ -19,4 +19,5 @@
 #Process matlab_log.log
 cat matlab_log.log        | egrep 'ERROR|SUCCESS|FAILURE' | grep -v "PETSC" | sed -e "s/>/\&gt;/g" | sed -e "s/</\&lt;/g" > matlab.log
+cat matlab_log.log        | grep "PETSC" | sed -e "s/>/\&gt;/g" | sed -e "s/</\&lt;/g" > petscerror.log
 NUM_TOT=`wc -l matlab.log | awk '{print $1}'`
 NUM_ERR=`cat matlab.log | grep 'ERROR'   | grep -v "PETSC" | wc -l`
@@ -172,5 +173,5 @@
 then
 	cat << END > matlaberror.html
-<table $H2_STYLE><tr><td $H2_FONT>Matlab error</td></tr></table>
+<table $H2_STYLE><tr><td $H2_FONT>Matlab errors</td></tr></table>
 <table $MATLAB_STYLE><tr><td $MATLAB_FONT>
 <pre>$(cat matlaberror.log)</pre>
@@ -179,4 +180,17 @@
 else
 	mktemp matlaberror.html
+fi
+
+#Matlab error report
+if test -s petscerror.log
+then
+	cat << END > petscerror.html
+<table $H2_STYLE><tr><td $H2_FONT>PETSc errors</td></tr></table>
+<table $MATLAB_STYLE><tr><td $MATLAB_FONT>
+<pre>$(cat petscerror.log)</pre>
+</td></tr></table>
+END
+else
+	mktemp petscerror.html
 fi
 
@@ -189,4 +203,4 @@
 
 #concatenate files
-cat summary.html content.html matlaberror.html footer.html > report.html
-rm  summary.html content.html footer.html matlaberror.html matlab.log
+cat summary.html content.html matlaberror.html petscerror.html footer.html > report.html
+rm  summary.html content.html footer.html matlaberror.html petscerror.html matlab.log
