Changeset 8533
- Timestamp:
- Aug 23, 2012, 1:25:28 PM (13 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/general_mesh.py
r8505 r8533 720 720 triangles ordered by node number. The (triangle_id, vertex_id) 721 721 pairs are obtained from each index as (index/3, index%3) or each 722 index can be used directly into a flat tenedtriangles array. This722 index can be used directly into a flat triangles array. This 723 723 is for example the case in the quantity.c where this structure is 724 724 used to average vertex values efficiently. -
trunk/anuga_core/source/anuga/fit_interpolate/fit.py
r8125 r8533 72 72 triangles: List of 3-tuples (or a numeric array) of 73 73 integers representing indices of all vertices in the mesh. 74 75 mesh: Object containing vertex_coordinates and triangles. Either 76 mesh = None or both vertex_coordinates and triangles = None 74 77 75 78 mesh_origin: A geo_reference object or 3-tuples consisting of … … 333 336 verbose=verbose) 334 337 338 import time 339 t0 = time.time() 335 340 for i, geo_block in enumerate(G_data): 336 341 if verbose is True and 0 == i%200: … … 360 365 msg = 'Matrix AtA was not built' 361 366 assert self.AtA is not None, msg 362 367 368 print '**** Read Data time',time.time()-t0 363 369 point_coordinates = None 364 370 else: … … 479 485 if use_cache is True: 480 486 if isinstance(point_coordinates, basestring): 481 # We assume that point_coordinates is the name of a .csv/.txt 487 # We assume that point_coordinates is the name of a .csv/.txt/.pts 482 488 # file which must be passed onto caching as a dependency 483 489 # (in case it has changed on disk) -
trunk/anuga_core/source/anuga_parallel/pypar_extras/setup.py
r8516 r8533 50 50 51 51 def _run_command(cmd): 52 out_file, in_file, err_file = popen2.popen3(cmd) 53 output = out_file.read() + err_file.read() 54 out_file.close() 55 in_file.close() 56 err_file.close() 57 # need this hack to get the exit status 52 import subprocess 53 58 54 print 'running ' + cmd 59 out_file = os.popen(cmd) 60 if out_file.close(): 61 # close returns exit status of command. 62 return '' 63 else: 64 # no errors, out_file.close() returns None. 65 return output 55 try: 56 output = subprocess.check_output(cmd, shell=True) 57 except: 58 output = '' 59 60 return output 61 62 66 63 67 64 … … 71 68 # LAM/OPENMPI/MPICH2 72 69 output = _run_command('mpicc -show') 70 71 73 72 if output: 74 73 return output -
trunk/anuga_core/validation_tests/produce_results.py
r8532 r8533 83 83 84 84 85 cmd = 'pdflatex -shell-escape -interaction=batchmode report.tex' 86 print cmd 87 import subprocess 88 subprocess.call( [cmd], shell=True ) 89 cmd = 'mv report.pdf report_cfl_%s_alg_%s.pdf' % (str(cfl), str(alg)) 90 print cmd 91 subprocess.call( [cmd] , shell=True ) 85 92 86 93 87 94 95 96 -
trunk/anuga_core/validation_tests/report.tex
r8527 r8533 16 16 %========================================= 17 17 18 \title{Automated Report on the Performance of \anuga on Various Test Problems}18 \title{Automated Report on the Performance of \anuga{} on Various Test Problems} 19 19 \maketitle 20 20 \tableofcontents … … 26 26 The results in this report were produced by \anuga{} version \majorR{} 27 27 from svn repository revision \minorR{} at time \timeR. 28 The flow algorithm was \alg{} and cflcondition \cfl.28 The flow algorithm was \alg{} and CFL condition \cfl. 29 29 30 30 %====================== … … 47 47 48 48 %====================== 49 \chapter{ ExperimentalTests}49 \chapter{Benchmark Tests} 50 50 %====================== 51 51 … … 72 72 \TeX{} file \texttt{results.tex} and a python script 73 73 \texttt{produce\_results.py}, which runs the simulation and produces the 74 outputs. In this \TeX{} file, \texttt{report.tex}, add a line 74 outputs. Copy the format from the other test directory. 75 76 In this \TeX{} file, \texttt{report.tex}, add a line 75 77 \begin{verbatim} 76 78 \inputresults{Tests/Directory/Name} … … 80 82 81 83 \section{Specifiying different algorithm} 82 One way to allow the system to run with different algorithms is to add the following 84 One way to allow the system to run with different algorithms is to 85 add the following 83 86 into your run routines. 84 87 \begin{verbatim}
Note: See TracChangeset
for help on using the changeset viewer.