Changeset 3775


Ignore:
Timestamp:
Oct 13, 2006, 2:16:35 PM (18 years ago)
Author:
ole
Message:

Work on simple parallel test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga_parallel/test_parallel_sw_runup.py

    r3612 r3775  
    6868#------------------------------------------------------------------------------
    6969
    70 for t in domain.evolve(yieldstep = 0.1, finaltime = 10.0):
     70interpolation_points = [[0.4,0.5], [0.6,0.5], [0.8,0.5], [0.9,0.5]]
     71gauge_values = []
     72for _ in interpolation_points:
     73    gauge_values.append([])
     74
     75time = []
     76
     77for t in domain.evolve(yieldstep = 0.1, finaltime = 5.0):
    7178    domain.write_time()
     79
    7280   
     81    # Record time series at known points
     82    time.append(domain.get_time())
     83   
     84    stage = domain.get_quantity('stage')
     85    w = stage.get_values(interpolation_points=interpolation_points)
     86   
     87    for i, _ in enumerate(interpolation_points):
     88        gauge_values[i].append(w[i])
    7389
     90
     91print
     92print time
     93print
     94for i, _ in enumerate(interpolation_points):
     95    print i, gauge_values[i]
     96    print
     97
     98       
Note: See TracChangeset for help on using the changeset viewer.