Ignore:
Timestamp:
Sep 4, 2008, 8:28:49 PM (16 years ago)
Author:
steve
Message:

Unit test for second order timestepping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anuga_1d/dam_h_elevation.py

    r5728 r5731  
    11import os
    22from math import sqrt, sin, cos, pi, exp
    3 from shallow_water_domain_new import *
     3from shallow_water_domain import *
    44from Numeric import zeros, Float
    55#from analytic_dam_sudi import AnalyticDam
     
    4141domain=Domain(points)
    4242
    43 domain.default_order = 2
     43domain.default_order = 1
    4444domain.default_time_order = 2
    4545domain.cfl = 1.0
     
    140140        from pylab import clf,plot,title,xlabel,ylabel,legend,savefig,show,hold,subplot,ion
    141141        #print 'Test1'
    142         #hold(False)
    143         clf()
     142        hold(False)
     143        #clf()
    144144        #print 'test 2'
    145145        plot1 = subplot(211)
    146146        #print 'test 3'
    147147   
     148       
     149        #print 'Test4'
     150
    148151        plot(X,ElevationQ,X,HeightQ)
    149         #print 'Test4'
    150152        plot1.set_ylim([-1,12])
    151153        xlabel('Position')
     
    159161        plot2 = subplot(212)
    160162        plot(X,MomentumQ)
    161         #plot2.set_ylim([-5,35])
     163        plot2.set_ylim([-1,1])
     164       
    162165        #legend( ('Numerical Solution', 'for momentum'),
    163166        #   'upper right', shadow=False)
Note: See TracChangeset for help on using the changeset viewer.