- Timestamp:
- Nov 7, 2006, 1:13:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r3926 r3928 112 112 processor=0, 113 113 numproc=1, 114 number_of_full_nodes= 0,115 number_of_full_triangles= 0):114 number_of_full_nodes=None, 115 number_of_full_triangles=None): 116 116 117 117 … … 746 746 import sys 747 747 748 N = domain.number_of_elements748 N = len(domain) # number_of_triangles 749 749 750 750 #Shortcuts … … 820 820 import sys 821 821 822 N = domain.number_of_elements822 N = len(domain) # number_of_triangles 823 823 824 824 #Shortcuts … … 848 848 import sys 849 849 850 N = domain.number_of_elements850 N = len(domain) # number_of_triangles 851 851 852 852 #Shortcuts … … 960 960 961 961 #Update 962 #FIXME: Modify acc roditg to c-version - or discard altogether.963 for k in range( domain.number_of_elements):962 #FIXME: Modify according to c-version - or discard altogether. 963 for k in range(len(domain)): 964 964 965 965 if hc[k] < domain.minimum_allowed_height: … … 999 999 """ 1000 1000 1001 N = domain.number_of_elements1001 N = len(domain) 1002 1002 beta_h = domain.beta_h 1003 1003 … … 1069 1069 """ 1070 1070 1071 N = domain.number_of_elements1071 N = len(domain) # number_of_triangles 1072 1072 beta_h = domain.beta_h 1073 1073 … … 1114 1114 hvbar = h_limiter(domain) 1115 1115 1116 for k in range( domain.number_of_elements):1116 for k in range(len(domain)): 1117 1117 #Compute maximal variation in bed elevation 1118 1118 # This quantitiy is … … 1402 1402 g = domain.g 1403 1403 1404 for k in range( domain.number_of_elements):1404 for k in range(len(domain)): 1405 1405 avg_h = sum( h[k,:] )/3 1406 1406 … … 1454 1454 ymom_update = domain.quantities['ymomentum'].semi_implicit_update 1455 1455 1456 N = domain.number_of_elements1456 N = len(domain) 1457 1457 eps = domain.minimum_allowed_height 1458 1458 g = domain.g … … 1489 1489 ymom_update = ymom.semi_implicit_update 1490 1490 1491 N = domain.number_of_elements1491 N = len(domain) 1492 1492 eps = domain.minimum_allowed_height 1493 1493 g = domain.g … … 1516 1516 ymom_update = ymom.explicit_update 1517 1517 1518 N = domain.number_of_elements1518 N = len(domain) 1519 1519 eps = domain.minimum_allowed_height 1520 1520 g = domain.g … … 1543 1543 ymom_update = domain.quantities['ymomentum'].semi_implicit_update 1544 1544 1545 N = domain.number_of_elements1545 N = len(domain) # number_of_triangles 1546 1546 eps = domain.minimum_allowed_height 1547 1547 g = domain.g #Not necessary? Why was this added? … … 1681 1681 ymom_update = domain.quantities['ymomentum'].explicit_update 1682 1682 1683 N = domain.number_of_elements1683 N = len(domain) # number_of_triangles 1684 1684 t = domain.time 1685 1685 … … 1767 1767 #Computed linear combination between constant stages and and 1768 1768 #stages parallel to the bed elevation. 1769 for k in range( domain.number_of_elements):1769 for k in range(len(domain)): 1770 1770 #Compute maximal variation in bed elevation 1771 1771 # This quantitiy is … … 2034 2034 from Numeric import zeros, Float 2035 2035 2036 N = domain.number_of_elements2036 N = len(domain) # number_of_triangles 2037 2037 2038 2038 #Shortcuts
Note: See TracChangeset
for help on using the changeset viewer.