/[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 3629 by gross, Wed Oct 5 06:06:14 2011 UTC revision 3630 by gross, Wed Oct 19 03:04:53 2011 UTC
# Line 55  class DarcyFlow(object): Line 55  class DarcyFlow(object):
55     SIMPLE="EVAL"     SIMPLE="EVAL"
56     POST="POST"     POST="POST"
57     SMOOTH="SMOOTH"     SMOOTH="SMOOTH"
58     def __init__(self, domain, useReduced=False, solver="EVAL", verbose=False, w=1.):     def __init__(self, domain, useReduced=False, solver="POST", verbose=False, w=1.):
59        """        """
60        initializes the Darcy flux problem        initializes the Darcy flux problem
61        :param domain: domain of the problem        :param domain: domain of the problem
# Line 265  class DarcyFlow(object): Line 265  class DarcyFlow(object):
265              if u0 == None:              if u0 == None:
266             self.__pde_v.setValue(r=escript.Data())             self.__pde_v.setValue(r=escript.Data())
267          else:          else:
268             self.__pde_v.setValue(r=u0/self.perm_scale)                 if not isinstance(u0, escript.Data) : u0 = escript.Vector(u0, escript.Solution(self.domain))
269               self.__pde_v.setValue(r=1./self.perm_scale * u0)
270              u= self.__pde_v.getSolution() * self.perm_scale              u= self.__pde_v.getSolution() * self.perm_scale
271      return u      return u
272                

Legend:
Removed from v.3629  
changed lines
  Added in v.3630

  ViewVC Help
Powered by ViewVC 1.1.26