/[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 2322 by gross, Thu Jan 8 05:49:16 2009 UTC revision 2323 by gross, Thu Mar 19 04:23:32 2009 UTC
# Line 2239  class Helmholtz(LinearPDE): Line 2239  class Helmholtz(LinearPDE):
2239       @raise IllegalCoefficient: invalid name       @raise IllegalCoefficient: invalid name
2240       """       """
2241       if name == "A" :       if name == "A" :
2242           return escript.Data(numarray.identity(self.getDim()),escript.Function(self.getDomain()))*self.getCoefficient("k")           if self.getCoefficient("k").isEmpty():
2243                  return escript.Data(numarray.identity(self.getDim()),escript.Function(self.getDomain()))
2244             else:
2245                  return escript.Data(numarray.identity(self.getDim()),escript.Function(self.getDomain()))*self.getCoefficient("k")
2246       elif name == "D" :       elif name == "D" :
2247           return self.getCoefficient("omega")           return self.getCoefficient("omega")
2248       elif name == "Y" :       elif name == "Y" :

Legend:
Removed from v.2322  
changed lines
  Added in v.2323

  ViewVC Help
Powered by ViewVC 1.1.26