Changeset 8442


Ignore:
Timestamp:
May 23, 2012, 9:18:43 PM (12 years ago)
Author:
steve
Message:

Adding parameters to report

Location:
trunk/anuga_core/validation_tests
Files:
2 edited

Legend:

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

    r8440 r8442  
    44
    55import os
    6 
     6import anuga.utilities.system_tools as anugast
     7import anuga
     8import time
    79
    810#--------------------------------
     
    2123alg = args.alg
    2224
     25#---------------------------------
     26# Get the current svn revision
     27#---------------------------------
     28
     29timestamp = time.asctime()
     30major_revision = anuga.config.major_revision
     31minor_revision = anuga.utilities.system_tools.get_revision_number()
    2332
    2433
    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#---------------------------------
    3637buildroot = os.getcwd()
    3738
     
    7273    #print 'Changing to', os.getcwd()
    7374       
     75#----------------------------------
     76# Now it is ok to create the latex
     77# macro file with run parameters
     78#----------------------------------
     79
     80f = open('saved_parameters.tex','w')
     81f.write('\\newcommand{\\cfl}{\\UScore{%s}}\n' % str(cfl))
     82f.write('\\newcommand{\\alg}{\\UScore{%s}}\n' % str(alg))
     83f.write('\\newcommand{\\majorR}{\\UScore{%s}}\n' % str(major_revision))
     84f.write('\\newcommand{\\minorR}{\\UScore{%s}}\n' % str(minor_revision))
     85f.write('\\newcommand{\\timeR}{{%s}}\n' % str(timestamp))
     86
     87f.close()
    7488
    7589
     90
     91
     92
  • trunk/anuga_core/validation_tests/report.tex

    r8440 r8442  
    11\documentclass[11pt,a4paper]{report}
    2 
    3 
    42
    53\usepackage{graphicx}
     
    75\usepackage[section]{placeins} % 'one-shot' command to nicely place figures
    86\usepackage{datatool}
    9 \usepackage{underscore}
     7\usepackage{url}
     8\DeclareUrlCommand\UScore{\urlstyle{rm}}
     9
    1010
    1111\input{local-defs}
    12 \input{method}
     12\input{saved_parameters}
    1313
    1414%=========================================
    1515\begin{document}
    1616%=========================================
     17
    1718\title{Automated Report on the Performance of \anuga ~on Various Test Problems}
    1819\maketitle
    1920\tableofcontents
     21
    2022%======================
    2123\chapter{Introduction}
    2224%======================
    2325
    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 
     26The results in this report were produced by \anuga{} version \majorR{}
     27from svn repository revision \minorR{} at time \timeR.
     28The flow algorithm was \alg{} and cfl condition \cfl.
    3029
    3130%======================
Note: See TracChangeset for help on using the changeset viewer.