Changeset 9317
- Timestamp:
- Sep 1, 2014, 11:14:12 PM (11 years ago)
- Location:
- trunk/anuga_core/validation_tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/validation_tests/behaviour_only/lateral_weir_hecras/channel_floodplain1.py
r9308 r9317 217 217 218 218 for t in domain.evolve(yieldstep=60.0, finaltime=dtQdata*(len(Qdata)-2)): 219 if(myid==0 &verbose):219 if(myid==0 and verbose): 220 220 print domain.timestepping_statistics() 221 221 #xx=domain.quantities['ymomentum'].centroid_values -
trunk/anuga_core/validation_tests/readme.md
r9316 r9317 25 25 (6) reports 26 26 27 Run all_tests_produce_report.py to produce a report onshowing the results of27 Run all_tests_produce_report.py to produce a report showing the results of 28 28 the validation tests (excluding the large case_studies). 29 30 31 The report 32 A validation report can be generated as a .pdf with: 33 > pdflatex report.tex 34 or as a html using the program htlatex: 35 > htlatex report.tex 36 37 We have tried a few other latex2html converters (as of 18/05/2012), but they 38 didn't seem to work neatly. 29 39 30 40 31 You can run the validation tests using different parameters by making changes -
trunk/anuga_core/validation_tests/reports/all_tests_produce_results.py
r9308 r9317 9 9 import anuga 10 10 from anuga import indent 11 from anuga.validation_utilities.parameters import alg 12 from anuga.validation_utilities.parameters import cfl 11 #from anuga.validation_utilities.parameters import alg 12 #from anuga.validation_utilities.parameters import cfl 13 14 15 args = anuga.get_args() 16 alg = args.alg 17 np = args.np 18 verbose = args.verbose 13 19 14 20 #--------------------------------- … … 39 45 40 46 f = open('saved_parameters.tex', 'w') 41 f.write('\\newcommand{\\cfl}{\\UScore{%s}}\n' % str(cfl))47 #f.write('\\newcommand{\\cfl}{\\UScore{%s}}\n' % str(cfl)) 42 48 f.write('\\newcommand{\\alg}{\\UScore{%s}}\n' % str(alg)) 43 49 f.write('\\newcommand{\\majorR}{\\UScore{%s}}\n' % str(major_revision)) … … 109 115 try: 110 116 t0 = time.time() 111 cmd = 'python produce_results.py' 117 if verbose: 118 cmd = 'python produce_results.py -alg %s -np %s -v '% (str(alg),str(np)) 119 else: 120 cmd = 'python produce_results.py -alg %s -np %s '% (str(alg),str(np)) 112 121 print 2 * indent + 'Running: ' + cmd 113 122 os.system(cmd) -
trunk/anuga_core/validation_tests/reports/all_tests_report.tex
r9287 r9317 47 47 The results in this report were produced by \anuga{} version \majorR{} from svn 48 48 repository revision \minorR{} at time \timeR. 49 The flow algorithm was \alg{} and CFL condition \cfl, unless otherwise stated explicitly. Based on this version, 26 tests are available in the subversion. To get an automated report, we can run either an individual run of the available tests or the complete (whole) test.49 The flow algorithm was \alg{}, unless otherwise stated explicitly. Based on this version, 26 tests are available in the subversion. To get an automated report, we can run either an individual run of the available tests or the complete (whole) test. 50 50 51 51 To do an individual test, we can run the python module \\
Note: See TracChangeset
for help on using the changeset viewer.