/[escript]/trunk/downunder/py_src/forwardmodels.py
ViewVC logotype

Diff of /trunk/downunder/py_src/forwardmodels.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4820 by gross, Sat Mar 8 00:56:37 2014 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 27  __all__ = ['ForwardModel','ForwardModelW Line 27  __all__ = ['ForwardModel','ForwardModelW
27    
28  from esys.escript import unitsSI as U  from esys.escript import unitsSI as U
29  from esys.escript import Data, Vector, Scalar, Function, DiracDeltaFunctions, FunctionOnBoundary  from esys.escript import Data, Vector, Scalar, Function, DiracDeltaFunctions, FunctionOnBoundary
30  from esys.escript.linearPDEs import LinearSinglePDE, LinearPDE  from esys.escript.linearPDEs import LinearSinglePDE, LinearPDE, SolverOptions
31  from .coordinates import makeTranformation  from .coordinates import makeTranformation
32  from esys.escript.util import *  from esys.escript.util import *
33  from math import pi as PI  from math import pi as PI
# Line 751  class AcousticWaveForm(ForwardModel): Line 751  class AcousticWaveForm(ForwardModel):
751    
752              if getEscriptParamInt("PASO_DIRECT")==0:              if getEscriptParamInt("PASO_DIRECT")==0:
753                  raise ValueError("Either this build of escript or the current MPI configuration does not support direct solvers.")                  raise ValueError("Either this build of escript or the current MPI configuration does not support direct solvers.")
754              pde.getSolverOptions().setSolverMethod(pde.getSolverOptions().DIRECT)              pde.getSolverOptions().setSolverMethod(SolverOptions.DIRECT)
755              pde.getSolverOptions().setTolerance(self.__tol)              pde.getSolverOptions().setTolerance(self.__tol)
756              pde.setSymmetryOff()              pde.setSymmetryOff()
757          else:          else:

Legend:
Removed from v.4820  
changed lines
  Added in v.4821

  ViewVC Help
Powered by ViewVC 1.1.26