Changeset 9147


Ignore:
Timestamp:
Jun 12, 2014, 7:53:59 AM (10 years ago)
Author:
steve
Message:

Making sure all_tests_report works

Location:
trunk/anuga_core/validation_tests/reports
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/validation_tests/reports/all_tests_produce_results.py

    r9145 r9147  
    135135from anuga.validation_utilities.fabricate import *
    136136
    137 os.system('python typeset_report.py')
     137os.system('python all_test_typeset_report.py')
    138138
    139139#cmd = 'pdflatex -shell-escape -interaction=batchmode report.tex'
     
    143143
    144144import subprocess
    145 cmd = 'mv report.pdf report_cfl_%s_alg_%s.pdf' % (str(cfl), str(alg))
     145cmd = 'mv all_tests_report.pdf all_tests_report_cfl_%s_alg_%s.pdf' % (str(cfl), str(alg))
    146146print cmd
    147147subprocess.call([cmd], shell=True)
  • trunk/anuga_core/validation_tests/reports/all_tests_report.tex

    r9145 r9147  
    1818%=========================================
    1919
    20 \title{Automated Report on the Performance of \anuga{} on Various Test Problems}
     20\title{Automated Report on the Performance of \anuga{} on (all) Validation Test Problems}
    2121\author{Sudi Mungkasi, Stephen Roberts, Gareth Davies, Rudy vanDrie}    %Type your name(s) here!
    2222\maketitle
     
    5454
    5555To do the complete test, we can just run the python module \\
    56 \verb produce_results.py \\
     56\verb all_tests_produce_results.py \\
    5757available in the directory \\
    58 \verb anuga_validation_tests \\
     58\verb validation_tests/reports \\
    5959Similar to the module for an individual test, this python module will do the numerical simulations of all the given problems, plot results in png files and save them in its corresponding directory, and finally type-set the complete report. The complete automated report is saved in this directory.
    6060
    61 The simulation results can be analysed qualitatively and quantitatively. Qualitative analysis can be done by investigating the plots of the results whether they are physical or not, and whether the behaviour is the same as we expected. Quantitative analysis can be conducted by checking the numerical error. We have provided python module with the name begun by the word ``validate'' in each of individual tests. We can also run validate$\_$all.py to measure the numerical errors from the directory \verb anuga_validation_tests . This validate$\_$all.py will run a subset of the available tests having sensible ``correct'' results to test against.
     61The simulation results can be analysed qualitatively and quantitatively. Qualitative analysis can be done by investigating the plots of the results whether they are physical or not, and whether the behaviour is the same as we expected. Quantitative analysis can be conducted by checking the numerical error. We have provided python module with the name begun by the word ``validate'' in each of individual tests. We can also run validate$\_$all.py to measure the numerical errors from the directory \verb run_auto_validation_tests . This validate$\_$all.py will run a subset of the available tests having sensible ``correct'' results to test against.
    6262
    6363The main parameters in the validations are the Courant--Friedrichs-Lewy (CFL) number and the flow algorithm. They are spelled ``cfl'' and ``alg'' respectively in the python module \\
    64 \verb parameters.py \\
     64\verb parameters \\
    6565which is available in the \\
    66 \verb anuga_validation_tests \\
    67 directory. In the default setting, we set the CFL to be $1.0$ and the flow algorithm to be 1$\_$5 (second order in space and first order in time). The complete available flow algorithms are as follow:
    68 '1$\_$0', '1$\_$5', '1$\_$75', '2$\_$0', '2$\_$0$\_$limited', '2$\_$5', 'tsunami', 'yusuke'.
     66\verb anuga.validation_tests \\
     67module. In the default setting, we set the CFL to be $1.0$ and the flow algorithm to be DE0 (second order in space and first order in time). The complete available flow algorithms are as follow:
     68'1$\_$0', '1$\_$5', '1$\_$75', '2$\_$0', '2$\_$0$\_$limited', '2$\_$5', 'tsunami', 'yusuke', 'DE0', 'DE1'.
    6969%\begin{enumerate}
    7070%\item '1$\_$0',
  • trunk/anuga_core/validation_tests/reports/all_tests_typeset_report.py

    r9146 r9147  
    1111import os
    1212
    13 os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')
    14 os.system('bibtex report')
    15 os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')
    16 os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')
     13os.system('pdflatex -shell-escape  -interaction=batchmode all_tests_report.tex')
     14os.system('bibtex all_tests_report')
     15os.system('pdflatex -shell-escape  -interaction=batchmode all_tests_report.tex')
     16os.system('pdflatex -shell-escape  -interaction=batchmode all_tests_report.tex')
    1717
Note: See TracChangeset for help on using the changeset viewer.