Changeset 8915


Ignore:
Timestamp:
Jun 12, 2013, 10:50:35 PM (12 years ago)
Author:
steve
Message:

Changes to typesetting the validation_tests

Location:
trunk/anuga_core/source/anuga_validation_tests
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_validation_tests/analytical_exact/carrier_greenspan_transient/numerical_cg_transient.py

    r8773 r8915  
    1111import anuga
    1212from anuga import Domain as Domain
    13 from numpy import zeros, array, float
     13from numpy import zeros, array, float, hstack
    1414from time import localtime, strftime, gmtime
    1515from scipy.optimize import fsolve
     
    8787    pB = uB * hB                 # dimensional
    8888    #[    'stage', 'Xmomentum', 'Ymomentum']   
    89     return [wB,  pB, 0.0]        # dimensional
     89    return hstack( (wB,  pB, array([0.0])) )        # dimensional
    9090
    9191Br = anuga.Reflective_boundary(domain)      # Solid reflective wall
  • trunk/anuga_core/source/anuga_validation_tests/experimental_data/dam_break_yeh_petroff/produce_results.py

    r8804 r8915  
    33#--------------------------------
    44from anuga_validation_tests.utilities.fabricate import *
    5 from anuga_validation_tests.utilities.run_validation import run_validation_script
     5from anuga_validation_tests.utilities import run_validation_script
     6from anuga_validation_tests.utilities import typeset_report
    67
    78
     
    1112    run_validation_script('numerical_Yeh_Petroff.py')
    1213    run_validation_script('plot_results.py')
    13     run('python', 'produce_report.py') 
     14    typeset_report()
    1415
    1516def clean():
  • trunk/anuga_core/source/anuga_validation_tests/other_references/radial_dam_break_dry/produce_results.py

    r8890 r8915  
    33#--------------------------------
    44from anuga_validation_tests.utilities.fabricate import *
    5 from anuga_validation_tests.utilities.run_validation import run_validation_script
     5from anuga_validation_tests.utilities import run_validation_script
     6from anuga_validation_tests.utilities import typeset_report
    67
    78
     
    1112    run_validation_script('radial_dam_break.py')
    1213    run_validation_script('plot_results.py')
    13     run('python', 'produce_report.py')
     14    typeset_report()
    1415   
    1516def clean():
  • trunk/anuga_core/source/anuga_validation_tests/other_references/radial_dam_break_wet/produce_results.py

    r8891 r8915  
    33#--------------------------------
    44from anuga_validation_tests.utilities.fabricate import *
    5 from anuga_validation_tests.utilities.run_validation import run_validation_script
     5from anuga_validation_tests.utilities import run_validation_script
     6from anuga_validation_tests.utilities import typeset_report
    67
    78
     
    1112    run_validation_script('radial_dam_break.py')
    1213    run_validation_script('plot_results.py')
    13     run('python', 'produce_report.py')      
     14    typeset_report()     
    1415
    1516def clean():
  • trunk/anuga_core/source/anuga_validation_tests/produce_results.py

    r8899 r8915  
    119119import os
    120120
     121from aunga_validation_tests.utilities.fabricate import *
     122
    121123os.system('python typeset_report.py')
     124
    122125#cmd = 'pdflatex -shell-escape -interaction=batchmode report.tex'
    123126#print cmd
  • trunk/anuga_core/source/anuga_validation_tests/saved_parameters.tex

    r8914 r8915  
    33\newcommand{\majorR}{\UScore{1.3.0-beta}}
    44\newcommand{\minorR}{\UScore{8911}}
    5 \newcommand{\timeR}{{Wed Jun 12 20:52:38 2013}}
     5\newcommand{\timeR}{{Wed Jun 12 22:48:35 2013}}
  • trunk/anuga_core/source/anuga_validation_tests/utilities/typeset_report.py

    r8912 r8915  
    88
    99
     10from fabricate import *
     11
     12def typeset_report():
     13
     14    source =  __file__
     15    if source.endswith('.pyc'):
     16        source = source[:-1]
     17    #print source
     18
     19    run('python', source)
    1020
    1121
    1222
    13 def typeset_report():
     23if __name__ == "__main__":
    1424
    15     #import os
     25    import os
    1626
    17     #os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')
    18     #os.system('bibtex report')
    19     #os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')
    20     #os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')
    21 
    22     from fabricate import *
    23 
    24     run('pdflatex', '-shell-escape',  '-interaction=batchmode',  'report.tex')
    25     run('bibtex', 'report')
    26     run('pdflatex', '-shell-escape',  '-interaction=batchmode',  'report.tex')
    27     run('pdflatex', '-shell-escape',  '-interaction=batchmode',  'report.tex')
     27    os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')
     28    os.system('bibtex report')
     29    os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')
     30    os.system('pdflatex -shell-escape  -interaction=batchmode report.tex')   
Note: See TracChangeset for help on using the changeset viewer.