Changeset 8787
- Timestamp:
- Mar 28, 2013, 10:42:14 PM (12 years ago)
- Location:
- trunk/anuga_core/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/file_function.py
r8780 r8787 189 189 fid.close() 190 190 191 # FIXME SR: This test doesn't seem to work with netcdf4192 191 if line[:3] == 'CDF': 193 192 return get_netcdf_file_function(filename, … … 305 304 # Get variables 306 305 # if verbose: log.critical('Get variables' ) 307 time = fid.variables['time'][:] 306 time = fid.variables['time'][:] 307 308 308 # FIXME(Ole): Is time monotoneous? 309 309 -
trunk/anuga_core/source/anuga/utilities/compile.py
r8753 r8787 14 14 15 15 import os, string, sys 16 16 17 17 18 NETCDF_LIB_DIR = os.getenv('NETCDF_LIB_DIR', '') -
trunk/anuga_core/source/anuga_validation_tests/Case_studies/Okushiri/compare_timeseries_with_measures.py
r8780 r8787 19 19 from anuga.shallow_water.sww_interrogate import get_maximum_inundation_location 20 20 21 if sys.platform == 'win32': 22 # Windows has a problem when this module is run through 23 # os.system as done by validate_okushiri. 24 # See https://datamining.anu.edu.au/anuga/ticket/235 25 26 # If you want to see the plots from this validation, 27 # run this module by itself with this if clause removed. 21 ##if sys.platform == 'win32': 22 ## # Windows has a problem when this module is run through 23 ## # os.system as done by validate_okushiri. 24 ## # See https://datamining.anu.edu.au/anuga/ticket/235 25 ## 26 ## # If you want to see the plots from this validation, 27 ## # run this module by itself with this if clause removed. 28 ## plotting = False 29 ## 30 ##else: 31 try: 32 from pylab import ion, hold, plot, title, legend 33 from pylab import xlabel, ylabel, savefig 34 hold(False) # Check if this command can be issued 35 except: 36 print 'Could not import pylab' 28 37 plotting = False 29 30 38 else: 31 try: 32 from pylab import ion, hold, plot, title, legend 33 from pylab import xlabel, ylabel, savefig 34 hold(False) # Check if this command can be issued 35 except: 36 print 'Could not import pylab' 37 plotting = False 38 else: 39 # Create plots as png files 40 plotting = True 39 # Create plots as png files 40 plotting = True 41 41 42 42 … … 168 168 # Windows tolerances 169 169 rtol = 1.0e-2 170 atol = 1.0e- 3170 atol = 1.0e-2 171 171 print 'Precisions used: rtol=%e, atol=%e' %(rtol, atol) 172 172 173 174 #print reference_time 173 175 for k, name in enumerate(gauge_names): 174 176 -
trunk/anuga_core/source/anuga_validation_tests/Case_studies/Okushiri/run_okushiri.py
r8786 r8787 73 73 domain.set_flow_algorithm(alg) 74 74 domain.set_CFL(cfl) 75 75 76 77 #------------------------------------------------------------------------------ 78 # Produce a documentation of parameters 79 #------------------------------------------------------------------------------ 80 parameter_file=open('parameters.tex', 'w') 81 parameter_file.write('\\begin{verbatim}\n') 82 from pprint import pprint 83 pprint(domain.get_algorithm_parameters(),parameter_file,indent=4) 84 parameter_file.write('\\end{verbatim}\n') 85 parameter_file.close() 86 76 87 #------------------------- 77 88 # Boundary Conditions
Note: See TracChangeset
for help on using the changeset viewer.