Changeset 7925 for trunk/anuga_work
- Timestamp:
- Aug 6, 2010, 1:20:52 PM (15 years ago)
- Location:
- trunk/anuga_work/development/sudi/sw_1d/periodic_waves/cg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/sudi/sw_1d/periodic_waves/cg/bisect.py
r7837 r7925 16 16 if f1*f2 > 0.0: error.err('Root is not bracketed') 17 17 n = ceil(log(abs(x2 - x1)/epsilon)/log(2.0)) 18 n = int(n) 18 19 for i in range(n): 19 20 x3 = 0.5*(x1 + x2); f3 = f(x3) -
trunk/anuga_work/development/sudi/sw_1d/periodic_waves/cg/run-program.py
r7924 r7925 327 327 ylabel('Velocity') 328 328 #plot2.set_xlim([0.0,1.2]) 329 legend(('Analytical Solution','Numerical Solution'),330 'upper center', shadow=False)329 #legend(('Analytical Solution','Numerical Solution'), 330 # 'upper center', shadow=False) 331 331 332 332 #filename = "%s%04i%s%f%s" %("numerical_cg_", counter,"_", domain.time, ".png")
Note: See TracChangeset
for help on using the changeset viewer.