/[escript]/trunk/finley/py_src/factorywrappers.py
ViewVC logotype

Diff of /trunk/finley/py_src/factorywrappers.py

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

revision 3558 by jfenwick, Fri Aug 26 06:09:02 2011 UTC revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC
# Line 20  http://www.opensource.org/licenses/osl-3 Line 20  http://www.opensource.org/licenses/osl-3
20  __url__="https://launchpad.net/escript-finley"  __url__="https://launchpad.net/escript-finley"
21    
22    
23  from finleycpp import __Brick_driver, __Rectangle_driver  from .finleycpp import __Brick_driver, __Rectangle_driver
24    
25    
26  def Rectangle(n0=1, n1=1, order=1, l0=1.0, l1=1.0, periodic0=False, periodic1=False, integrationOrder=-1,  def Rectangle(n0=1, n1=1, order=1, l0=1.0, l1=1.0, periodic0=False, periodic1=False, integrationOrder=-1,
# Line 28  def Rectangle(n0=1, n1=1, order=1, l0=1. Line 28  def Rectangle(n0=1, n1=1, order=1, l0=1.
28      points=[]      points=[]
29      tags=[]      tags=[]
30      if 'diracPoints' in kwargs:      if 'diracPoints' in kwargs:
31      points=kwargs['diracPoints']          points=kwargs['diracPoints']
32      if 'diracTags' in kwargs:      if 'diracTags' in kwargs:
33      tags=kwargs['diracTags']          tags=kwargs['diracTags']
34      return __Rectangle_driver([n0, n1, order, l0, l1, periodic0, periodic1, integrationOrder,      return __Rectangle_driver([n0, n1, order, l0, l1, periodic0, periodic1, integrationOrder,
35        reducedIntegrationOrder, useElementsOnFace, useFullElementOrder, optimize, points, tags])        reducedIntegrationOrder, useElementsOnFace, useFullElementOrder, optimize, points, tags])
36    
# Line 40  def Brick(n0=1, n1=1, n2=1, order=1, l0= Line 40  def Brick(n0=1, n1=1, n2=1, order=1, l0=
40      points=[]      points=[]
41      tags=[]      tags=[]
42      if 'diracPoints' in kwargs:      if 'diracPoints' in kwargs:
43      points=kwargs['diracPoints']          points=kwargs['diracPoints']
44      if 'diracTags' in kwargs:      if 'diracTags' in kwargs:
45      tags=kwargs['diracTags']          tags=kwargs['diracTags']
46      return __Brick_driver([n0, n1, n2, order, l0, l1, l2, periodic0,  periodic1, periodic2,      return __Brick_driver([n0, n1, n2, order, l0, l1, l2, periodic0,  periodic1, periodic2,
47      integrationOrder, reducedIntegrationOrder, useElementsOnFace, useFullElementOrder,      integrationOrder, reducedIntegrationOrder, useElementsOnFace, useFullElementOrder,
     optimize, points, tags])  
48        optimize, points, tags])

Legend:
Removed from v.3558  
changed lines
  Added in v.3892

  ViewVC Help
Powered by ViewVC 1.1.26