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

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

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

revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC revision 304 by gross, Fri Dec 2 06:04:06 2005 UTC
# Line 1985  class AdvectivePDE(LinearPDE): Line 1985  class AdvectivePDE(LinearPDE):
1985       @return: up-wind weightimg factor       @return: up-wind weightimg factor
1986       @rtype: L{Scalar<escript.Scalar>}       @rtype: L{Scalar<escript.Scalar>}
1987       """       """
1988       return (P-1.).wherePositive()*0.5*(1.-1./(P+1.e-15))       return util.wherePositive(P-1.)*0.5*(1.-1./(P+1.e-15))
1989    
1990     def SIMPLIFIED_BROOK_HUGHES(self,P):     def SIMPLIFIED_BROOK_HUGHES(self,P):
1991       """       """
# Line 2004  class AdvectivePDE(LinearPDE): Line 2004  class AdvectivePDE(LinearPDE):
2004       @return: up-wind weightimg factor       @return: up-wind weightimg factor
2005       @rtype: L{Scalar<escript.Scalar>}       @rtype: L{Scalar<escript.Scalar>}
2006       """       """
2007       c=(P-3.).whereNegative()       c=util.whereNegative(P-3.)
2008       return P/6.*c+1./2.*(1.-c)       return P/6.*c+1./2.*(1.-c)
2009    
2010     def HALF(self,P):     def HALF(self,P):

Legend:
Removed from v.155  
changed lines
  Added in v.304

  ViewVC Help
Powered by ViewVC 1.1.26