Changeset 9287 for trunk/anuga_core/validation_tests/reports
- Timestamp:
- Aug 6, 2014, 9:14:12 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/validation_tests/reports/all_tests_report.tex
r9241 r9287 122 122 %%====================== 123 123 \inputresults{../experimental_data/dam_break_yeh_petroff} 124 \inputresults{../experimental_data/okushiri} 125 124 126 \inputresults{../behaviour_only/lid_driven_cavity} 125 127 \inputresults{../behaviour_only/weir_1} 128 \inputresults{../behaviour_only/bridge_hecras} 129 \inputresults{../behaviour_only/lateral_weir_hecras} 130 \inputresults{../behaviour_only/tides_hecras} 126 131 127 132 \inputresults{../other_references/radial_dam_break_dry} 128 133 \inputresults{../other_references/radial_dam_break_wet} 129 130 \inputresults{../case_studies/okushiri}131 134 132 135 … … 139 142 140 143 141 To setup a new validation test, create a test directory under the142 \textsc{Tests} directory. In that directory there should be the test code, a144 To setup a new validation test, create a test directory under one of 145 the validation directories. In that directory there should be the test code, a 143 146 \TeX{} file \texttt{results.tex} and a python script 144 147 \texttt{produce\_results.py}, which runs the simulation and produces the 145 outputs. Copy the format from the other test directory.148 outputs. Copy the format from one of the other test directories. 146 149 147 150 In this \TeX{} file, \texttt{report.tex}, add a line 148 151 \begin{verbatim} 149 \inputresults{ Tests/Directory/Name}152 \inputresults{../Directory/Name} 150 153 \end{verbatim} 151 154 … … 175 178 176 179 \begin{verbatim} 177 from anuga.validation_utilities.fabricate import * 178 from anuga.validation_utilities import run_validation_script180 import anuga 181 from anuga.validation_utilities import produce_report 179 182 180 # Setup the python scripts which produce the output for this 181 # validation test 182 def build(): 183 run_validation_script('run_problem.py') 184 run_validation_script('plot_problem.py') 185 run('python','typeset_report.py') 186 pass 183 args = anuga.get_args() 187 184 188 def clean(): 189 autoclean() 190 191 main() 185 produce_report('run_simulation.py', args=args) 192 186 \end{verbatim} 193 This script uses \texttt{fabricate} which automatically determines dependences194 and only runs the command if the parameters alg and cfl have changed,195 or input/output or source files have changed. (\texttt{fabricate} is a replacement for196 standard \texttt{make})197 187 198 188
Note: See TracChangeset
for help on using the changeset viewer.