Changeset 3434
- Timestamp:
- Jul 31, 2006, 9:29:00 PM (19 years ago)
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
development/cairns_2006/cairns_project.py
r2229 r3434 3 3 4 4 bathymetry_filename = 'cairns_meters.xya' 5 mesh_filename = 'cairns_mesh.msh' -
development/cairns_2006/create_mesh.py
r2312 r3434 7 7 8 8 from pmesh.mesh import * 9 from pyvolution.coordinate_transforms.geo_reference import Geo_reference9 from coordinate_transforms.geo_reference import Geo_reference 10 10 from conversion import convert_latlon_to_xycoords 11 11 … … 166 166 m.generateMesh('pzq28.0z') 167 167 168 import project168 import cairns_project as project 169 169 m.export_mesh_file(project.mesh_filename) 170 170 -
development/cairns_2006/run_cairns.py
r2312 r3434 15 15 from pyvolution.pmesh2domain import pmesh_to_domain_instance 16 16 from Numeric import array, zeros, Float, allclose 17 #import cairns_project18 import project17 import cairns_project as project 18 #import project 19 19 from caching import cache 20 20 from utilities.polygon import read_polygon, Polygon_function -
inundation/parallel/build_commun.py
r3429 r3434 29 29 import sys 30 30 31 from pypar_dist import pypar 32 #import pypar 31 import pypar 33 32 34 33 from build_local import build_local_mesh -
inundation/parallel/parallel_shallow_water.py
r3431 r3434 30 30 from Numeric import zeros, Float, Int, ones, allclose, array 31 31 32 from pypar_distimport pypar32 import pypar 33 33 34 34 -
inundation/parallel/print_stats.py
r3429 r3434 19 19 import sys 20 20 21 from pypar_distimport pypar21 import pypar 22 22 23 23 from Numeric import array, Int8, zeros, ones, take, nonzero, Float -
inundation/parallel/run_parallel_sw_merimbula_test.py
r3429 r3434 36 36 ######################################################### 37 37 import sys 38 from pypar_distimport pypar # The Python-MPI interface38 import pypar # The Python-MPI interface 39 39 import time 40 40 … … 180 180 181 181 try: 182 domain.initialise_visualiser(rect=rect)182 #domain.initialise_visualiser(rect=rect) 183 183 #domain.visualiser.coloring['stage'] = True 184 domain.visualiser.scale_z['stage'] = 0.2 185 domain.visualiser.scale_z['elevation'] = 0.05 184 #domain.visualiser.scale_z['stage'] = 0.2 185 #domain.visualiser.scale_z['elevation'] = 0.05 186 pass 186 187 except: 187 188 print 'No visualiser' 189 188 190 189 191 … … 213 215 214 216 yieldstep = 1 215 finaltime = 90217 finaltime = None 216 218 217 219 #yieldstep = 1 … … 231 233 #result.dump_stats("profile." + str(numprocs) + "." + str(myid) + ".dat") 232 234 233 #New hotshot profiling 234 import hotshot 235 profiler = hotshot.Profile("hotshot." + str(numprocs) + "." + str(myid) + ".prof") 236 s = '''for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 237 if myid == 0: 238 domain.write_time() 239 print_test_stats(domain, tri_full_flag) 240 241 ''' 242 result = profiler.runctx(s, globals(), locals()) 243 profiler.close() 235 ## #New hotshot profiling 236 ## import hotshot 237 ## profiler = hotshot.Profile("hotshot." + str(numprocs) + "." + str(myid) + ".prof") 238 ## s = '''for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 239 ## if myid == 0: 240 ## domain.write_time() 241 ## print_test_stats(domain, tri_full_flag) 242 243 ## ''' 244 ## result = profiler.runctx(s, globals(), locals()) 245 ## profiler.close() 246 247 from vtk_realtime_visualiser import Visualiser 248 V = Visualiser(domain,default_scale_z=100.0) 249 V.coloring['stage'] = True 250 V.coloring['elevation'] = False 251 V.setup['elevation']=True 252 V.updating['stage']=True 253 V.qcolor['stage'] = (0.1,0.4,0.99) 254 255 256 V.start() 257 V.idle.wait() 258 V.idle.clear() 259 260 261 262 263 264 for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 265 if myid == 0: 266 domain.write_time() 267 #print_test_stats(domain, tri_full_flag) 268 269 V.redraw_ready.set() 270 V.idle.wait() 271 V.idle.clear() 272 V.unpaused.wait() 273 244 274 245 275 #print 'P%d: That took %.2f seconds' %(myid, time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.