Changeset 2198 for inundation/parallel


Ignore:
Timestamp:
Jan 11, 2006, 12:03:41 PM (19 years ago)
Author:
jack
Message:

Update visualisation calling on rectangle and meriumbula(metis) cases.
Reset final time on merimbula(metis) for running on the LC.

Location:
inundation/parallel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/parallel/run_parallel_sw_merimbula_metis.py

    r2152 r2198  
    174174#try:
    175175#    domain.initialise_visualiser(rect=rect)
    176 #    #domain.visualiser.coloring['stage'] = True
    177 #    domain.visualiser.scale_z['stage'] = 0.2
    178 #    domain.visualiser.scale_z['elevation'] = 0.05
     176#    domain.visualiser.updating['stage'] = True
     177#    domain.visualiser.setup['elevation'] = True
     178#    domain.visualiser.qcolor['stage'] = (0.0, 0.0, 0.8)
     179#    domain.visualiser.scale_z['stage'] = 250
     180#    domain.visualiser.scale_z['elevation'] = 250
    179181#except:
    180182#    print 'No visualiser'
     
    206208
    207209yieldstep = 1
    208 finaltime = 30
     210finaltime = 90
    209211
    210212#yieldstep = 1
     
    218220
    219221# Profiling
    220 import profile
    221 profiler = profile.Profile()
     222#import profile
     223#profiler = profile.Profile()
     224#result.dump_stats("profile." + str(numprocs) + "." + str(myid) + ".dat")
     225
     226#New hotshot profiling
     227import hotshot
     228profiler = hotshot.Profile("hotshot." + str(numprocs) + "." + str(myid) + ".prof")
    222229s = '''for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime):
    223230  if myid == 0:
     
    225232'''
    226233result = profiler.runctx(s, globals(), locals())
    227 result.dump_stats("profile." + str(numprocs) + "." + str(myid) + ".dat")
     234profiler.close()
    228235
    229236#print 'P%d: That took %.2f seconds' %(myid, time.time()-t0)
  • inundation/parallel/run_parallel_sw_rectangle.py

    r2193 r2198  
    6666try:
    6767    domain.initialise_visualiser(rect=rect)
    68     domain.visualiser.coloring['stage'] = True
    6968    domain.visualiser.qcolor['stage'] = (0.0, 0.0, 0.8)
    7069    domain.visualiser.scale_z['stage'] = 1.0
Note: See TracChangeset for help on using the changeset viewer.