Changeset 8442
- Timestamp:
- May 23, 2012, 9:18:43 PM (13 years ago)
- Location:
- trunk/anuga_core/validation_tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/validation_tests/produce_results.py
r8440 r8442 4 4 5 5 import os 6 6 import anuga.utilities.system_tools as anugast 7 import anuga 8 import time 7 9 8 10 #-------------------------------- … … 21 23 alg = args.alg 22 24 25 #--------------------------------- 26 # Get the current svn revision 27 #--------------------------------- 28 29 timestamp = time.asctime() 30 major_revision = anuga.config.major_revision 31 minor_revision = anuga.utilities.system_tools.get_revision_number() 23 32 24 33 25 # Create a latex macro file with cfl and flow_algorithm 26 f = open('method.tex','w') 27 f.write('\\newcommand{\\cfl}{%s}\n' % str(cfl)) 28 f.write('\\newcommand{\\alg}{%s}\n' % str(alg)) 29 f.close() 30 31 exit() 32 33 34 35 34 #--------------------------------- 35 # Run the tests 36 #--------------------------------- 36 37 buildroot = os.getcwd() 37 38 … … 72 73 #print 'Changing to', os.getcwd() 73 74 75 #---------------------------------- 76 # Now it is ok to create the latex 77 # macro file with run parameters 78 #---------------------------------- 79 80 f = open('saved_parameters.tex','w') 81 f.write('\\newcommand{\\cfl}{\\UScore{%s}}\n' % str(cfl)) 82 f.write('\\newcommand{\\alg}{\\UScore{%s}}\n' % str(alg)) 83 f.write('\\newcommand{\\majorR}{\\UScore{%s}}\n' % str(major_revision)) 84 f.write('\\newcommand{\\minorR}{\\UScore{%s}}\n' % str(minor_revision)) 85 f.write('\\newcommand{\\timeR}{{%s}}\n' % str(timestamp)) 86 87 f.close() 74 88 75 89 90 91 92 -
trunk/anuga_core/validation_tests/report.tex
r8440 r8442 1 1 \documentclass[11pt,a4paper]{report} 2 3 4 2 5 3 \usepackage{graphicx} … … 7 5 \usepackage[section]{placeins} % 'one-shot' command to nicely place figures 8 6 \usepackage{datatool} 9 \usepackage{underscore} 7 \usepackage{url} 8 \DeclareUrlCommand\UScore{\urlstyle{rm}} 9 10 10 11 11 \input{local-defs} 12 \input{ method}12 \input{saved_parameters} 13 13 14 14 %========================================= 15 15 \begin{document} 16 16 %========================================= 17 17 18 \title{Automated Report on the Performance of \anuga ~on Various Test Problems} 18 19 \maketitle 19 20 \tableofcontents 21 20 22 %====================== 21 23 \chapter{Introduction} 22 24 %====================== 23 25 24 Here we collect the results of running our validation tests. 25 26 The flow algorithm is \alg. 27 The cfl condition was \cfl. 28 29 26 The results in this report were produced by \anuga{} version \majorR{} 27 from svn repository revision \minorR{} at time \timeR. 28 The flow algorithm was \alg{} and cfl condition \cfl. 30 29 31 30 %======================
Note: See TracChangeset
for help on using the changeset viewer.