/[escript]/branches/symbolic_from_3470/escript/py_src/linearPDEs.py
ViewVC logotype

Diff of /branches/symbolic_from_3470/escript/py_src/linearPDEs.py

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

revision 3110 by gross, Fri Aug 13 08:38:06 2010 UTC revision 3111 by gross, Thu Aug 26 06:49:42 2010 UTC
# Line 279  class SolverOptions(object): Line 279  class SolverOptions(object):
279          self.__residual_norm=None          self.__residual_norm=None
280          self.__converged=None          self.__converged=None
281          self.__preconditioner_size=-1          self.__preconditioner_size=-1
282            self.__time_step_backtracking_used=None
283          if all:          if all:
284              self.__cum_num_inner_iter=0              self.__cum_num_inner_iter=0
285              self.__cum_num_iter=0              self.__cum_num_iter=0
# Line 316  class SolverOptions(object): Line 317  class SolverOptions(object):
317              self.__residual_norm=float(value)              self.__residual_norm=float(value)
318          if name == "converged":          if name == "converged":
319              self.__converged = (value == True)              self.__converged = (value == True)
320            if name == "time_step_backtracking_used":
321                self.__time_step_backtracking_used = (value == True)
322      def getDiagnostics(self, name):      def getDiagnostics(self, name):
323          """          """
324          Returns the diagnostic information ``name``. Possible values are:          Returns the diagnostic information ``name``. Possible values are:
# Line 333  class SolverOptions(object): Line 336  class SolverOptions(object):
336          - "cum_net_time": cumulative net execution time          - "cum_net_time": cumulative net execution time
337          - "preconditioner_size": size of preconditioner [Bytes]          - "preconditioner_size": size of preconditioner [Bytes]
338          - "converged": return self.__converged          - "converged": return self.__converged
339            - "time_step_backtracking_used": return self.__converged
340            
341                    
342          :param name: name of diagnostic information to return          :param name: name of diagnostic information to return
# Line 354  class SolverOptions(object): Line 358  class SolverOptions(object):
358          elif name == "residual_norm": return self.__residual_norm          elif name == "residual_norm": return self.__residual_norm
359          elif name == "converged": return self.__converged                elif name == "converged": return self.__converged      
360          elif name == "preconditioner_size": return  self.__preconditioner_size          elif name == "preconditioner_size": return  self.__preconditioner_size
361            elif name == "time_step_backtracking_used": return  self.__time_step_backtracking_used
362          else:          else:
363              raise ValueError,"unknown diagnostic item %s"%name              raise ValueError,"unknown diagnostic item %s"%name
364      def hasConverged(self):      def hasConverged(self):

Legend:
Removed from v.3110  
changed lines
  Added in v.3111

  ViewVC Help
Powered by ViewVC 1.1.26