Changeset 3773


Ignore:
Timestamp:
Oct 13, 2006, 1:41:22 PM (17 years ago)
Author:
ole
Message:

Played with parallel example

Location:
anuga_core/source/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py

    r3703 r3773  
    263263        self.time = time
    264264
     265    def get_time(self):
     266        """Get the model time (seconds)"""
     267
     268        return self.time
     269
    265270    def set_quantity_vertices_dict(self, quantity_dict):
    266271        """Set values for named quantities.
  • anuga_core/source/anuga/examples/beach_parallel.py

    r3656 r3773  
    138138t0 = time.time()
    139139for t in domain.evolve(yieldstep = 0.2, finaltime = 300):
    140     domain.write_time()
     140    #domain.write_time()
     141   
     142    w = domain.get_maximum_inundation_elevation()
     143    x, y = domain.get_maximum_inundation_location()
     144    t = domain.get_time()
     145    print '  Coastline elevation at t = %.2f is %.2f at loc (x,y)=(%.2f, %.2f)' %(t, w, x, y)
     146
    141147   
    142148print 'Simulation took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset for help on using the changeset viewer.