Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/ein16/synth/d2/test_eval.py
ViewVC logotype

Diff of /branches/ein16/synth/d2/test_eval.py

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

revision 4250, Fri Jul 22 23:31:15 2016 UTC revision 4252, Mon Jul 25 03:26:21 2016 UTC
# Line 622  Line 622 
622          return atan(exp)          return atan(exp)
623      elif(op_sqrt==fn_name): #sqrt      elif(op_sqrt==fn_name): #sqrt
624          return sqrt(exp)          return sqrt(exp)
625        elif(op_gradient==fn_name):
626            return fn_grad(exp, dim)
627      else:      else:
628          raise Exception("unsupported unary operator on scalar field:"+ fn_name.name)          raise Exception("unsupported unary operator on scalar field:"+ fn_name.name)
629    
# Line 643  Line 645 
645          return fn_slicev0(fld)          return fn_slicev0(fld)
646      elif(op_slicev1==fn_name):      elif(op_slicev1==fn_name):
647          return fn_slicev1(fld)          return fn_slicev1(fld)
648        elif(op_grad==op_grad):
649            return fn_grad(fld)
650      else:      else:
651          raise Exception("unsupported unary operator:"+ fn_name.name)          raise Exception("unsupported unary operator:"+ fn_name.name)
652    

Legend:
Removed from v.4250  
changed lines
  Added in v.4252

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0