 Timestamp:
 Aug 5, 2010, 8:20:47 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/anuga_work/development/sudi/sw_1d/periodic_waves/cg/domain_cg.py
r7837 r7922 218 218 """ 219 219 220 from Numeric import zeros, Float 220 from Numeric import Float 221 from numpy import zeros 221 222 222 223 assert len(q) == 3,\ … … 266 267 from config import g, epsilon, h0 267 268 from math import sqrt 268 from Numericimport array269 from numpy import array 269 270 270 271 #Align momentums with xaxis … … 336 337 def compute_timestep(domain): 337 338 import sys 338 from Numeric import zeros, Float 339 from Numeric import Float 340 from numpy import zeros 339 341 340 342 N = domain.number_of_elements … … 398 400 def compute_fluxes_C_wellbalanced(domain): 399 401 import sys 400 from Numeric import zeros, Float 402 from Numeric import Float 403 from numpy import zeros 401 404 402 405 N = domain.number_of_elements … … 506 509 507 510 import sys 508 from Numeric import zeros, Float 511 from Numeric import Float 512 from numpy import zeros 509 513 from config import epsilon, h0, h_min 510 514 … … 600 604 """ 601 605 602 from Numeric import zeros, Float 606 from Numeric import Float 607 from numpy import zeros 603 608 604 609 N = domain.number_of_elements … … 767 772 768 773 from util import gradient 769 from Numeric import zeros, Float, array, sum 774 from Numeric import Float 775 from numpy import zeros, array, sum 770 776 771 777 xmom = domain.quantities['xmomentum'].explicit_update … … 865 871 """ 866 872 867 from Numeric import ones, Float, array 873 from Numeric import Float 874 from numpy import ones, array 868 875 869 876 … … 947 954 948 955 from config import rho_a, rho_w, eta_w 949 from Numeric import array, Float 956 from Numeric import Float 957 from numpy import array 950 958 951 959 if len(args) == 2: … … 978 986 979 987 from math import pi, cos, sin, sqrt 980 from Numeric import Float, ones, ArrayType 988 from Numeric import Float 989 from numpy import ones, ArrayType 981 990 982 991 xmom_update = domain.quantities['xmomentum'].explicit_update
Note: See TracChangeset
for help on using the changeset viewer.