/[escript]/trunk/escriptcore/py_src/linearPDEs.py
ViewVC logotype

Diff of /trunk/escriptcore/py_src/linearPDEs.py

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

revision 4820 by sshaw, Fri Mar 14 06:49:06 2014 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 46  import numpy Line 46  import numpy
46    
47  __author__="Lutz Gross, l.gross@uq.edu.au"  __author__="Lutz Gross, l.gross@uq.edu.au"
48    
49    SolverOptions = escore.SolverOptions
50    SolverBuddy = escore.SolverBuddy
51    
52  class SolverOptions(object):  class SolverOptionsBOB(object):
53      """      """
54      this class defines the solver options for a linear or non-linear solver.      this class defines the solver options for a linear or non-linear solver.
55            
# Line 1839  class LinearProblem(object): Line 1841  class LinearProblem(object):
1841         :note: The symmetry flag of options is overwritten by the symmetry flag of the `LinearProblem`.         :note: The symmetry flag of options is overwritten by the symmetry flag of the `LinearProblem`.
1842         """         """
1843         if options==None:         if options==None:
1844            self.__solver_options=SolverOptions()            self.__solver_options=SolverBuddy()
1845         elif isinstance(options, SolverOptions):         elif isinstance(options, SolverBuddy):
1846            self.__solver_options=options            self.__solver_options=options
1847         else:         else:
1848            raise ValueError("options must be a SolverOptions object.")            raise ValueError("options must be a SolverOptions object.")

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

  ViewVC Help
Powered by ViewVC 1.1.26