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

Made parallel abstraction work on sequential machine without pypar.
Work on simple parallel example (plotting)

File:
1 edited

Legend:

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

    r3775 r3776  
    9292print time
    9393print
    94 for i, _ in enumerate(interpolation_points):
     94for i, (x,y) in enumerate(interpolation_points):
    9595    print i, gauge_values[i]
    9696    print
    9797
    9898       
     99    try:
     100        from pylab import *
     101    except:
     102        pass
     103    else:
     104        ion()
     105        hold(False)
     106        plot(time, gauge_values[i], 'r.-')
     107        #time, predicted_gauge_values[i], 'k-')
     108       
     109        title('Gauge %d (%f,%f)' %(i,x,y))
     110        xlabel('time(s)')
     111        ylabel('stage (m)')   
     112        #legend(('Observed', 'Modelled'), shadow=True, loc='upper left')
     113        #savefig('Gauge_%d.png' %i, dpi = 300)
     114   
     115        raw_input('Next')
     116       
     117
     118
Note: See TracChangeset for help on using the changeset viewer.