Ignore:
Timestamp:
May 23, 2012, 5:38:56 PM (12 years ago)
Author:
steve
Message:

Commiting validation files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/validation_tests/produce_results.py

    r8439 r8440  
    44
    55import os
     6
     7
     8#--------------------------------
     9# Setup Default values for basis
     10# algorithm parameters.
     11#--------------------------------
     12import argparse
     13parser = argparse.ArgumentParser(description='produce results')
     14parser.add_argument('-cfl', type=float, default=1.0,
     15                   help='cfl condition')
     16parser.add_argument('-alg', type=str, default = "1_5",
     17                   help='flow algorithm')
     18args = parser.parse_args()
     19
     20cfl = args.cfl
     21alg = args.alg
     22
     23
     24
     25# Create a latex macro file with cfl and flow_algorithm
     26f = open('method.tex','w')
     27f.write('\\newcommand{\\cfl}{%s}\n' % str(cfl))
     28f.write('\\newcommand{\\alg}{%s}\n' % str(alg))
     29f.close()
     30
     31exit()
     32
     33
     34
    635
    736buildroot = os.getcwd()
     
    3059        print 'Changing to', os.getcwd()
    3160        try:
    32             os.system('python produce_results.py')
     61            cmd = 'python produce_results.py -alg %s -cfl %s '% (alg,cfl)
     62            print 'Running: '+cmd
     63            os.system( cmd )
    3364        except:
    3465            print 'Failed running produce_results in '+os.getcwd()
Note: See TracChangeset for help on using the changeset viewer.