/[escript]/trunk/escript/py_src/pdetools.py
ViewVC logotype

Diff of /trunk/escript/py_src/pdetools.py

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

revision 990 by ksteube, Wed Feb 21 04:27:52 2007 UTC revision 1122 by gross, Tue May 1 03:21:04 2007 UTC
# Line 132  class Projector: Line 132  class Projector:
132      self.__pde.setValue(D = 1.)      self.__pde.setValue(D = 1.)
133      return      return
134    
   def __del__(self):  
     return  
   
135    def __call__(self, input_data):    def __call__(self, input_data):
136      """      """
137      Projects input_data onto a continuous function      Projects input_data onto a continuous function
# Line 142  class Projector: Line 139  class Projector:
139      @param input_data: The input_data to be projected.      @param input_data: The input_data to be projected.
140      """      """
141      out=escript.Data(0.,input_data.getShape(),self.__pde.getFunctionSpaceForSolution())      out=escript.Data(0.,input_data.getShape(),self.__pde.getFunctionSpaceForSolution())
142        self.__pde.setValue(Y = escript.Data(), Y_reduced = escript.Data())
143      if input_data.getRank()==0:      if input_data.getRank()==0:
144          self.__pde.setValue(Y = input_data)          self.__pde.setValue(Y = input_data)
145          out=self.__pde.getSolution()          out=self.__pde.getSolution()
# Line 420  class SaddlePointProblem(object): Line 418  class SaddlePointProblem(object):
418         @type verbose: C{bool}         @type verbose: C{bool}
419         @note: this method may be overwritten by a particular saddle point problem         @note: this method may be overwritten by a particular saddle point problem
420         """         """
421           if not isinstance(verbose,bool):
422                raise TypeError("verbose needs to be of type bool.")
423         self.__verbose=verbose         self.__verbose=verbose
424         self.relaxation=1.         self.relaxation=1.
425    

Legend:
Removed from v.990  
changed lines
  Added in v.1122

  ViewVC Help
Powered by ViewVC 1.1.26