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

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

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

revision 2688 by jfenwick, Fri Aug 21 06:30:25 2009 UTC revision 2689 by artak, Tue Sep 29 05:22:51 2009 UTC
# Line 63  class DarcyFlow(object): Line 63  class DarcyFlow(object):
63             s=self.domain.getSize()             s=self.domain.getSize()
64             self.__l=(3.*util.longestEdge(self.domain)*s/util.sup(s))**2             self.__l=(3.*util.longestEdge(self.domain)*s/util.sup(s))**2
65             # self.__l=(3.*util.longestEdge(self.domain))**2             # self.__l=(3.*util.longestEdge(self.domain))**2
66             # self.__l=(0.1*util.longestEdge(self.domain)*s/util.sup(s))**2             #self.__l=(0.1*util.longestEdge(self.domain)*s/util.sup(s))**2
67          else:          else:
68             self.__l=weight             self.__l=weight
69          self.__pde_v=LinearPDESystem(domain)          self.__pde_v=LinearPDESystem(domain)
# Line 274  class DarcyFlow(object): Line 274  class DarcyFlow(object):
274           rtol=self.getTolerance()           rtol=self.getTolerance()
275           atol=self.getAbsoluteTolerance()           atol=self.getAbsoluteTolerance()
276       self.setSubProblemTolerance()       self.setSubProblemTolerance()
       
277           num_corrections=0           num_corrections=0
278           converged=False           converged=False
279           p=p0           p=p0
# Line 440  class StokesProblemCartesian(Homogeneous Line 439  class StokesProblemCartesian(Homogeneous
439       :param options: new solver options       :param options: new solver options
440       :type options: `SolverOptions`       :type options: `SolverOptions`
441       """       """
442       self.__pde_prec.setSolverOptions(options)       self.__pde_proj.setSolverOptions(options)
443       def getSolverOptionsDiv(self):       def getSolverOptionsDiv(self):
444           """           """
445       returns the solver options for solving the equation to project the divergence of       returns the solver options for solving the equation to project the divergence of
# Line 448  class StokesProblemCartesian(Homogeneous Line 447  class StokesProblemCartesian(Homogeneous
447            
448       :rtype: `SolverOptions`       :rtype: `SolverOptions`
449       """       """
450       return self.__pde_prec.getSolverOptions()       return self.__pde_proj.getSolverOptions()
451       def setSubProblemTolerance(self):       def setSubProblemTolerance(self):
452           """           """
453       Updates the tolerance for subproblems       Updates the tolerance for subproblems

Legend:
Removed from v.2688  
changed lines
  Added in v.2689

  ViewVC Help
Powered by ViewVC 1.1.26