/[escript]/trunk/escript/py_src/symbolic/evaluator.py
ViewVC logotype

Diff of /trunk/escript/py_src/symbolic/evaluator.py

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

revision 3975 by caltinay, Thu Sep 20 01:54:06 2012 UTC revision 3976 by caltinay, Thu Sep 20 03:26:47 2012 UTC
# Line 75  class Evaluator: Line 75  class Evaluator:
75    
76          if isinstance(expression, escript.Symbol):          if isinstance(expression, escript.Symbol):
77              subs=expression.getDataSubstitutions()              subs=expression.getDataSubstitutions()
78              self.subs(**{s.name:subs[s] for s in subs.keys()})              subs_dict={}
79                for s in subs.keys():
80                    subs_dict[s.name] = subs[s]
81                self.subs(**subs_dict)
82              self.lambdas.append(sympy.lambdify(sym, expression.lambdarepr(), ["escript","numpy"]))              self.lambdas.append(sympy.lambdify(sym, expression.lambdarepr(), ["escript","numpy"]))
83          else:          else:
84              self.lambdas.append(sympy.lambdify(sym, expression, ["escript","numpy"]))              self.lambdas.append(sympy.lambdify(sym, expression, ["escript","numpy"]))

Legend:
Removed from v.3975  
changed lines
  Added in v.3976

  ViewVC Help
Powered by ViewVC 1.1.26