Changeset 9317


Ignore:
Timestamp:
Sep 1, 2014, 11:14:12 PM (11 years ago)
Author:
steve
Message:

Getting all_tests_produce_results working with -np -alg and -v arguments

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  
    217217
    218218for t in domain.evolve(yieldstep=60.0, finaltime=dtQdata*(len(Qdata)-2)):
    219     if(myid==0 & verbose):
     219    if(myid==0 and verbose):
    220220        print domain.timestepping_statistics()
    221221        #xx=domain.quantities['ymomentum'].centroid_values
  • trunk/anuga_core/validation_tests/readme.md

    r9316 r9317  
    2525(6) reports
    2626
    27 Run all_tests_produce_report.py to produce a report on showing the results of
     27Run all_tests_produce_report.py to produce a report showing the results of
    2828the 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 
    3930
    4031You can run the validation tests using different parameters by making changes
  • trunk/anuga_core/validation_tests/reports/all_tests_produce_results.py

    r9308 r9317  
    99import anuga
    1010from 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
     15args = anuga.get_args()
     16alg = args.alg
     17np = args.np
     18verbose = args.verbose
    1319
    1420#---------------------------------
     
    3945
    4046f = 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))
    4248f.write('\\newcommand{\\alg}{\\UScore{%s}}\n' % str(alg))
    4349f.write('\\newcommand{\\majorR}{\\UScore{%s}}\n' % str(major_revision))
     
    109115        try:
    110116            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))
    112121            print 2 * indent + 'Running: ' + cmd
    113122            os.system(cmd)
  • trunk/anuga_core/validation_tests/reports/all_tests_report.tex

    r9287 r9317  
    4747The results in this report were produced by \anuga{} version \majorR{} from svn
    4848repository 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.
     49The 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.
    5050
    5151To do an individual test, we can run the python module \\
Note: See TracChangeset for help on using the changeset viewer.