--- trunk/doc/examples/wave.py 2009/05/14 02:28:58 2420 +++ trunk/doc/examples/usersguide/wave.py 2009/06/22 04:22:19 2484 @@ -25,7 +25,7 @@ from esys.escript.pdetools import Locator from esys.escript.linearPDEs import LinearPDE from esys.finley import Brick -from numarray import identity,zeros,ones +from numpy import identity,zeros,ones if not os.path.isdir("data"): print "\nCreating subdirectory 'data'\n" @@ -46,7 +46,7 @@ x=domain.getX() # ... open new PDE ... mypde=LinearPDE(domain) - mypde.setSolverMethod(LinearPDE.LUMPING) + mypde.getSolverOptions().setSolverMethod(mypde.getSolverOptions().LUMPING) kronecker=identity(mypde.getDim()) # spherical source at middle of bottom face @@ -57,7 +57,7 @@ src_radius = 0.1*Lsup(domain.getSize()) print "src_radius = ",src_radius - dunit=numarray.array([1.,0.,0.]) # defines direction of point source + dunit=numpy.array([1.,0.,0.]) # defines direction of point source mypde.setValue(D=kronecker*rho) # ... set initial values .... @@ -69,7 +69,7 @@ t=0 # define the location of the point source - L=Locator(domain,numarray.array(xc)) + L=Locator(domain,numpy.array(xc)) # find potential at point source u_pc=L.getValue(u) print "u at point charge=",u_pc