Changeset 7276 for anuga_core/source/anuga/fit_interpolate/test_fit.py
- Timestamp:
- Jun 30, 2009, 2:07:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/test_fit.py
r6174 r7276 21 21 from anuga.shallow_water import Domain 22 22 23 import Numericas num23 import numpy as num 24 24 25 25 … … 582 582 583 583 #Define f(x,y) = x 584 f = num.array([0,0,2] , num.Int) #Value at global vertex 2 #array default#584 f = num.array([0,0,2]) #Value at global vertex 2 585 585 586 586 #Check that int (df/dx)**2 + (df/dy)**2 dx dy = … … 589 589 590 590 #Define f(x,y) = y 591 f = num.array([0,2,0] , num.Int) #Value at global vertex 1 #array default#591 f = num.array([0,2,0]) #Value at global vertex 1 592 592 593 593 #Check that int (df/dx)**2 + (df/dy)**2 dx dy = … … 596 596 597 597 #Define f(x,y) = x+y 598 f = num.array([0,2,2] , num.Int) #Values at global vertex 1 and 2 #array default#598 f = num.array([0,2,2]) #Values at global vertex 1 and 2 599 599 600 600 #Check that int (df/dx)**2 + (df/dy)**2 dx dy = … … 623 623 624 624 #Define f(x,y) = x 625 f = num.array([0,0,2,0,2,4] , num.Int) #f evaluated at points a-f #array default#625 f = num.array([0,0,2,0,2,4]) #f evaluated at points a-f 626 626 627 627 #Check that int (df/dx)**2 + (df/dy)**2 dx dy = … … 630 630 631 631 #Define f(x,y) = y 632 f = num.array([0,2,0,4,2,0] , num.Int) #f evaluated at points a-f #array default#632 f = num.array([0,2,0,4,2,0]) #f evaluated at points a-f 633 633 634 634 #Check that int (df/dx)**2 + (df/dy)**2 dx dy = … … 637 637 638 638 #Define f(x,y) = x+y 639 f = num.array([0,2,2,4,4,4] , num.Int) #f evaluated at points a-f #array default#639 f = num.array([0,2,2,4,4,4]) #f evaluated at points a-f 640 640 641 641 #Check that int (df/dx)**2 + (df/dy)**2 dx dy = … … 1099 1099 if __name__ == "__main__": 1100 1100 suite = unittest.makeSuite(Test_Fit,'test') 1101 #suite = unittest.makeSuite(Test_Fit,'test_smooth_attributes_to_mesh_function') 1102 #suite = unittest.makeSuite(Test_Fit,'') 1103 runner = unittest.TextTestRunner(verbosity=1) 1101 runner = unittest.TextTestRunner() #verbosity=1) 1104 1102 runner.run(suite) 1105 1103 1106 1107 1108 1109
Note: See TracChangeset
for help on using the changeset viewer.