/[escript]/trunk/escriptcore/test/python/test_assemblage_2Do2.py
ViewVC logotype

Diff of /trunk/escriptcore/test/python/test_assemblage_2Do2.py

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

revision 1072 by gross, Thu Mar 29 06:44:30 2007 UTC revision 1174 by gross, Tue May 29 07:05:59 2007 UTC
# Line 46  from esys.escript import * Line 46  from esys.escript import *
46  from esys.escript.linearPDEs import LinearPDE  from esys.escript.linearPDEs import LinearPDE
47    
48  class Test_assemblage_2Do1(unittest.TestCase):  class Test_assemblage_2Do1(unittest.TestCase):
49      def setNormal(self,fs):
50         out=Vector(0.,fs)
51         out.setTaggedValue(2,[1,0])
52         out.setTaggedValue(1,[-1,0])
53         out.setTaggedValue(20, [0,1])
54         out.setTaggedValue(10, [0,-1])
55         return out
56    #==================================================    #==================================================
57    def test_assemblage_2D_solO1_coeffOFull_NEqu1_A_Const_typeStrong_comp00(self):    def test_assemblage_2D_solO1_coeffOFull_NEqu1_A_Const_typeStrong_comp00(self):
58      x=self.domain.getX()      x=self.domain.getX()
# Line 53  class Test_assemblage_2Do1(unittest.Test Line 60  class Test_assemblage_2Do1(unittest.Test
60      A_test=Data(0.,(2,2),Function(self.domain))      A_test=Data(0.,(2,2),Function(self.domain))
61      A_test[0,0]=7      A_test[0,0]=7
62      Y_test=0      Y_test=0
63      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
64      y_test=n[0]*((-49))      y_test=n[0]*((-49))
65      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
66      pde.setValue(A=A_test, Y=Y_test, y=y_test)      pde.setValue(A=A_test, Y=Y_test, y=y_test)
# Line 69  class Test_assemblage_2Do1(unittest.Test Line 75  class Test_assemblage_2Do1(unittest.Test
75      A_test=Data(0.,(2,2),Function(self.domain))      A_test=Data(0.,(2,2),Function(self.domain))
76      A_test[0,1]=3      A_test[0,1]=3
77      Y_test=0      Y_test=0
78      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
79      y_test=n[0]*((-6))      y_test=n[0]*((-6))
80      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
81      pde.setValue(A=A_test, Y=Y_test, y=y_test)      pde.setValue(A=A_test, Y=Y_test, y=y_test)
# Line 85  class Test_assemblage_2Do1(unittest.Test Line 90  class Test_assemblage_2Do1(unittest.Test
90      A_test=Data(0.,(2,2),Function(self.domain))      A_test=Data(0.,(2,2),Function(self.domain))
91      A_test[1,0]=2      A_test[1,0]=2
92      Y_test=0      Y_test=0
93      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
94      y_test=n[1]*((-8))      y_test=n[1]*((-8))
95      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
96      pde.setValue(A=A_test, Y=Y_test, y=y_test)      pde.setValue(A=A_test, Y=Y_test, y=y_test)
# Line 101  class Test_assemblage_2Do1(unittest.Test Line 105  class Test_assemblage_2Do1(unittest.Test
105      A_test=Data(0.,(2,2),Function(self.domain))      A_test=Data(0.,(2,2),Function(self.domain))
106      A_test[1,1]=5      A_test[1,1]=5
107      Y_test=0      Y_test=0
108      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
109      y_test=n[1]*(15)      y_test=n[1]*(15)
110      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
111      pde.setValue(A=A_test, Y=Y_test, y=y_test)      pde.setValue(A=A_test, Y=Y_test, y=y_test)
# Line 117  class Test_assemblage_2Do1(unittest.Test Line 120  class Test_assemblage_2Do1(unittest.Test
120      B_test=Data(0.,(2,),Function(self.domain))      B_test=Data(0.,(2,),Function(self.domain))
121      B_test[0]=3      B_test[0]=3
122      Y_test=(-6)      Y_test=(-6)
123      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
124      y_test=n[0]*(15+15*x[1]+6*x[0])      y_test=n[0]*(15+15*x[1]+6*x[0])
125      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
126      pde.setValue(B=B_test, Y=Y_test, y=y_test)      pde.setValue(B=B_test, Y=Y_test, y=y_test)
# Line 133  class Test_assemblage_2Do1(unittest.Test Line 135  class Test_assemblage_2Do1(unittest.Test
135      B_test=Data(0.,(2,),Function(self.domain))      B_test=Data(0.,(2,),Function(self.domain))
136      B_test[1]=7      B_test[1]=7
137      Y_test=56      Y_test=56
138      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
139      y_test=n[1]*(35-56*x[1]+21*x[0])      y_test=n[1]*(35-56*x[1]+21*x[0])
140      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
141      pde.setValue(B=B_test, Y=Y_test, y=y_test)      pde.setValue(B=B_test, Y=Y_test, y=y_test)
# Line 199  class Test_assemblage_2Do1(unittest.Test Line 200  class Test_assemblage_2Do1(unittest.Test
200      A_test=Data(0.,(2,2),Function(self.domain))      A_test=Data(0.,(2,2),Function(self.domain))
201      A_test[0,0]=x[0]      A_test[0,0]=x[0]
202      Y_test=(-7)      Y_test=(-7)
203      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
204      y_test=n[0]*(7*x[0])      y_test=n[0]*(7*x[0])
205      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
206      pde.setValue(A=A_test, Y=Y_test, y=y_test)      pde.setValue(A=A_test, Y=Y_test, y=y_test)
# Line 215  class Test_assemblage_2Do1(unittest.Test Line 215  class Test_assemblage_2Do1(unittest.Test
215      A_test=Data(0.,(2,2),Function(self.domain))      A_test=Data(0.,(2,2),Function(self.domain))
216      A_test[0,1]=x[0]      A_test[0,1]=x[0]
217      Y_test=1      Y_test=1
218      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
219      y_test=n[0]*((-1)*x[0])      y_test=n[0]*((-1)*x[0])
220      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
221      pde.setValue(A=A_test, Y=Y_test, y=y_test)      pde.setValue(A=A_test, Y=Y_test, y=y_test)
# Line 231  class Test_assemblage_2Do1(unittest.Test Line 230  class Test_assemblage_2Do1(unittest.Test
230      A_test=Data(0.,(2,2),Function(self.domain))      A_test=Data(0.,(2,2),Function(self.domain))
231      A_test[1,0]=x[1]      A_test[1,0]=x[1]
232      Y_test=(-4)      Y_test=(-4)
233      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
234      y_test=n[1]*(4*x[1])      y_test=n[1]*(4*x[1])
235      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
236      pde.setValue(A=A_test, Y=Y_test, y=y_test)      pde.setValue(A=A_test, Y=Y_test, y=y_test)
# Line 247  class Test_assemblage_2Do1(unittest.Test Line 245  class Test_assemblage_2Do1(unittest.Test
245      A_test=Data(0.,(2,2),Function(self.domain))      A_test=Data(0.,(2,2),Function(self.domain))
246      A_test[1,1]=x[1]      A_test[1,1]=x[1]
247      Y_test=6      Y_test=6
248      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
249      y_test=n[1]*((-6)*x[1])      y_test=n[1]*((-6)*x[1])
250      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
251      pde.setValue(A=A_test, Y=Y_test, y=y_test)      pde.setValue(A=A_test, Y=Y_test, y=y_test)
# Line 263  class Test_assemblage_2Do1(unittest.Test Line 260  class Test_assemblage_2Do1(unittest.Test
260      B_test=Data(0.,(2,),Function(self.domain))      B_test=Data(0.,(2,),Function(self.domain))
261      B_test[0]=x[0]      B_test[0]=x[0]
262      Y_test=7-1*x[1]-12*x[0]      Y_test=7-1*x[1]-12*x[0]
263      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
264      y_test=n[0]*((-7)*x[0]+x[0]*x[1]+6*x[0]**2)      y_test=n[0]*((-7)*x[0]+x[0]*x[1]+6*x[0]**2)
265      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
266      pde.setValue(B=B_test, Y=Y_test, y=y_test)      pde.setValue(B=B_test, Y=Y_test, y=y_test)
# Line 279  class Test_assemblage_2Do1(unittest.Test Line 275  class Test_assemblage_2Do1(unittest.Test
275      B_test=Data(0.,(2,),Function(self.domain))      B_test=Data(0.,(2,),Function(self.domain))
276      B_test[1]=x[1]      B_test[1]=x[1]
277      Y_test=1+2*x[1]-2*x[0]      Y_test=1+2*x[1]-2*x[0]
278      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
279      y_test=n[1]*((-1)*x[1]-1*x[1]**2+2*x[0]*x[1])      y_test=n[1]*((-1)*x[1]-1*x[1]**2+2*x[0]*x[1])
280      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
281      pde.setValue(B=B_test, Y=Y_test, y=y_test)      pde.setValue(B=B_test, Y=Y_test, y=y_test)
# Line 515  class Test_assemblage_2Do1(unittest.Test Line 510  class Test_assemblage_2Do1(unittest.Test
510      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
511      A_test[0,0,0,0]=1      A_test[0,0,0,0]=1
512      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
513      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
514      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
515      y_test[0]=n[0]*((-1))      y_test[0]=n[0]*((-1))
516      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 534  class Test_assemblage_2Do1(unittest.Test Line 528  class Test_assemblage_2Do1(unittest.Test
528      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
529      A_test[0,0,0,1]=5      A_test[0,0,0,1]=5
530      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
531      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
532      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
533      y_test[0]=n[0]*((-30))      y_test[0]=n[0]*((-30))
534      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 553  class Test_assemblage_2Do1(unittest.Test Line 546  class Test_assemblage_2Do1(unittest.Test
546      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
547      A_test[0,0,1,0]=4      A_test[0,0,1,0]=4
548      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
549      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
550      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
551      y_test[0]=n[0]*((-4))      y_test[0]=n[0]*((-4))
552      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 572  class Test_assemblage_2Do1(unittest.Test Line 564  class Test_assemblage_2Do1(unittest.Test
564      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
565      A_test[0,0,1,1]=3      A_test[0,0,1,1]=3
566      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
567      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
568      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
569      y_test[0]=n[0]*((-9))      y_test[0]=n[0]*((-9))
570      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 591  class Test_assemblage_2Do1(unittest.Test Line 582  class Test_assemblage_2Do1(unittest.Test
582      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
583      A_test[0,1,0,0]=8      A_test[0,1,0,0]=8
584      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
585      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
586      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
587      y_test[0]=n[1]*(16)      y_test[0]=n[1]*(16)
588      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 610  class Test_assemblage_2Do1(unittest.Test Line 600  class Test_assemblage_2Do1(unittest.Test
600      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
601      A_test[0,1,0,1]=2      A_test[0,1,0,1]=2
602      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
603      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
604      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
605      y_test[0]=n[1]*(8)      y_test[0]=n[1]*(8)
606      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 629  class Test_assemblage_2Do1(unittest.Test Line 618  class Test_assemblage_2Do1(unittest.Test
618      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
619      A_test[0,1,1,0]=4      A_test[0,1,1,0]=4
620      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
621      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
622      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
623      y_test[0]=n[1]*(20)      y_test[0]=n[1]*(20)
624      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 648  class Test_assemblage_2Do1(unittest.Test Line 636  class Test_assemblage_2Do1(unittest.Test
636      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
637      A_test[0,1,1,1]=2      A_test[0,1,1,1]=2
638      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
639      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
640      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
641      y_test[0]=n[1]*((-14))      y_test[0]=n[1]*((-14))
642      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 667  class Test_assemblage_2Do1(unittest.Test Line 654  class Test_assemblage_2Do1(unittest.Test
654      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
655      A_test[1,0,0,0]=2      A_test[1,0,0,0]=2
656      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
657      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
658      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
659      y_test[1]=n[0]*(10)      y_test[1]=n[0]*(10)
660      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 686  class Test_assemblage_2Do1(unittest.Test Line 672  class Test_assemblage_2Do1(unittest.Test
672      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
673      A_test[1,0,0,1]=7      A_test[1,0,0,1]=7
674      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
675      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
676      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
677      y_test[1]=n[0]*(49)      y_test[1]=n[0]*(49)
678      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 705  class Test_assemblage_2Do1(unittest.Test Line 690  class Test_assemblage_2Do1(unittest.Test
690      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
691      A_test[1,0,1,0]=7      A_test[1,0,1,0]=7
692      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
693      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
694      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
695      y_test[1]=n[0]*((-49))      y_test[1]=n[0]*((-49))
696      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 724  class Test_assemblage_2Do1(unittest.Test Line 708  class Test_assemblage_2Do1(unittest.Test
708      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
709      A_test[1,0,1,1]=4      A_test[1,0,1,1]=4
710      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
711      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
712      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
713      y_test[1]=n[0]*(16)      y_test[1]=n[0]*(16)
714      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 743  class Test_assemblage_2Do1(unittest.Test Line 726  class Test_assemblage_2Do1(unittest.Test
726      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
727      A_test[1,1,0,0]=6      A_test[1,1,0,0]=6
728      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
729      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
730      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
731      y_test[1]=n[1]*((-12))      y_test[1]=n[1]*((-12))
732      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 762  class Test_assemblage_2Do1(unittest.Test Line 744  class Test_assemblage_2Do1(unittest.Test
744      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
745      A_test[1,1,0,1]=3      A_test[1,1,0,1]=3
746      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
747      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
748      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
749      y_test[1]=n[1]*(18)      y_test[1]=n[1]*(18)
750      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 781  class Test_assemblage_2Do1(unittest.Test Line 762  class Test_assemblage_2Do1(unittest.Test
762      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
763      A_test[1,1,1,0]=6      A_test[1,1,1,0]=6
764      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
765      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
766      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
767      y_test[1]=n[1]*(12)      y_test[1]=n[1]*(12)
768      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 800  class Test_assemblage_2Do1(unittest.Test Line 780  class Test_assemblage_2Do1(unittest.Test
780      A_test=Data(0.,(2,2,2,2),Function(self.domain))      A_test=Data(0.,(2,2,2,2),Function(self.domain))
781      A_test[1,1,1,1]=3      A_test[1,1,1,1]=3
782      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
783      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
784      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
785      y_test[1]=n[1]*(24)      y_test[1]=n[1]*(24)
786      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 820  class Test_assemblage_2Do1(unittest.Test Line 799  class Test_assemblage_2Do1(unittest.Test
799      B_test[0,0,0]=3      B_test[0,0,0]=3
800      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
801      Y_test[0]=24      Y_test[0]=24
802      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
803      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
804      y_test[0]=n[0]*((-15)-27*x[1]-24*x[0])      y_test[0]=n[0]*((-15)-27*x[1]-24*x[0])
805      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 840  class Test_assemblage_2Do1(unittest.Test Line 818  class Test_assemblage_2Do1(unittest.Test
818      B_test[0,0,1]=6      B_test[0,0,1]=6
819      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
820      Y_test[0]=30      Y_test[0]=30
821      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
822      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
823      y_test[0]=n[0]*(30+36*x[1]-30*x[0])      y_test[0]=n[0]*(30+36*x[1]-30*x[0])
824      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 860  class Test_assemblage_2Do1(unittest.Test Line 837  class Test_assemblage_2Do1(unittest.Test
837      B_test[0,1,0]=7      B_test[0,1,0]=7
838      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
839      Y_test[0]=(-42)      Y_test[0]=(-42)
840      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
841      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
842      y_test[0]=n[1]*((-35)+42*x[1]-7*x[0])      y_test[0]=n[1]*((-35)+42*x[1]-7*x[0])
843      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 880  class Test_assemblage_2Do1(unittest.Test Line 856  class Test_assemblage_2Do1(unittest.Test
856      B_test[0,1,1]=6      B_test[0,1,1]=6
857      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
858      Y_test[0]=(-30)      Y_test[0]=(-30)
859      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
860      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
861      y_test[0]=n[1]*(6+30*x[1]+48*x[0])      y_test[0]=n[1]*(6+30*x[1]+48*x[0])
862      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 900  class Test_assemblage_2Do1(unittest.Test Line 875  class Test_assemblage_2Do1(unittest.Test
875      B_test[1,0,0]=8      B_test[1,0,0]=8
876      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
877      Y_test[1]=64      Y_test[1]=64
878      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
879      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
880      y_test[1]=n[0]*(56-40*x[1]-64*x[0])      y_test[1]=n[0]*(56-40*x[1]-64*x[0])
881      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 920  class Test_assemblage_2Do1(unittest.Test Line 894  class Test_assemblage_2Do1(unittest.Test
894      B_test[1,0,1]=3      B_test[1,0,1]=3
895      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
896      Y_test[1]=(-3)      Y_test[1]=(-3)
897      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
898      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
899      y_test[1]=n[0]*((-18)+12*x[1]+3*x[0])      y_test[1]=n[0]*((-18)+12*x[1]+3*x[0])
900      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 940  class Test_assemblage_2Do1(unittest.Test Line 913  class Test_assemblage_2Do1(unittest.Test
913      B_test[1,1,0]=3      B_test[1,1,0]=3
914      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
915      Y_test[1]=(-15)      Y_test[1]=(-15)
916      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
917      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
918      y_test[1]=n[1]*((-15)+15*x[1]-15*x[0])      y_test[1]=n[1]*((-15)+15*x[1]-15*x[0])
919      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 960  class Test_assemblage_2Do1(unittest.Test Line 932  class Test_assemblage_2Do1(unittest.Test
932      B_test[1,1,1]=1      B_test[1,1,1]=1
933      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
934      Y_test[1]=(-7)      Y_test[1]=(-7)
935      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
936      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
937      y_test[1]=n[1]*((-7)+7*x[1]-9*x[0])      y_test[1]=n[1]*((-7)+7*x[1]-9*x[0])
938      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1236  class Test_assemblage_2Do1(unittest.Test Line 1207  class Test_assemblage_2Do1(unittest.Test
1207      A_test[0,0,0,0]=x[0]      A_test[0,0,0,0]=x[0]
1208      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1209      Y_test[0]=2      Y_test[0]=2
1210      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1211      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1212      y_test[0]=n[0]*((-2)*x[0])      y_test[0]=n[0]*((-2)*x[0])
1213      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1256  class Test_assemblage_2Do1(unittest.Test Line 1226  class Test_assemblage_2Do1(unittest.Test
1226      A_test[0,0,0,1]=x[0]      A_test[0,0,0,1]=x[0]
1227      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1228      Y_test[0]=2      Y_test[0]=2
1229      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1230      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1231      y_test[0]=n[0]*((-2)*x[0])      y_test[0]=n[0]*((-2)*x[0])
1232      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1276  class Test_assemblage_2Do1(unittest.Test Line 1245  class Test_assemblage_2Do1(unittest.Test
1245      A_test[0,0,1,0]=x[0]      A_test[0,0,1,0]=x[0]
1246      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1247      Y_test[0]=(-8)      Y_test[0]=(-8)
1248      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1249      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1250      y_test[0]=n[0]*(8*x[0])      y_test[0]=n[0]*(8*x[0])
1251      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1296  class Test_assemblage_2Do1(unittest.Test Line 1264  class Test_assemblage_2Do1(unittest.Test
1264      A_test[0,0,1,1]=x[0]      A_test[0,0,1,1]=x[0]
1265      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1266      Y_test[0]=2      Y_test[0]=2
1267      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1268      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1269      y_test[0]=n[0]*((-2)*x[0])      y_test[0]=n[0]*((-2)*x[0])
1270      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1316  class Test_assemblage_2Do1(unittest.Test Line 1283  class Test_assemblage_2Do1(unittest.Test
1283      A_test[0,1,0,0]=x[1]      A_test[0,1,0,0]=x[1]
1284      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1285      Y_test[0]=3      Y_test[0]=3
1286      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1287      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1288      y_test[0]=n[1]*((-3)*x[1])      y_test[0]=n[1]*((-3)*x[1])
1289      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1336  class Test_assemblage_2Do1(unittest.Test Line 1302  class Test_assemblage_2Do1(unittest.Test
1302      A_test[0,1,0,1]=x[1]      A_test[0,1,0,1]=x[1]
1303      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1304      Y_test[0]=(-6)      Y_test[0]=(-6)
1305      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1306      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1307      y_test[0]=n[1]*(6*x[1])      y_test[0]=n[1]*(6*x[1])
1308      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1356  class Test_assemblage_2Do1(unittest.Test Line 1321  class Test_assemblage_2Do1(unittest.Test
1321      A_test[0,1,1,0]=x[1]      A_test[0,1,1,0]=x[1]
1322      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1323      Y_test[0]=2      Y_test[0]=2
1324      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1325      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1326      y_test[0]=n[1]*((-2)*x[1])      y_test[0]=n[1]*((-2)*x[1])
1327      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1376  class Test_assemblage_2Do1(unittest.Test Line 1340  class Test_assemblage_2Do1(unittest.Test
1340      A_test[0,1,1,1]=x[1]      A_test[0,1,1,1]=x[1]
1341      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1342      Y_test[0]=6      Y_test[0]=6
1343      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1344      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1345      y_test[0]=n[1]*((-6)*x[1])      y_test[0]=n[1]*((-6)*x[1])
1346      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1396  class Test_assemblage_2Do1(unittest.Test Line 1359  class Test_assemblage_2Do1(unittest.Test
1359      A_test[1,0,0,0]=x[0]      A_test[1,0,0,0]=x[0]
1360      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1361      Y_test[1]=1      Y_test[1]=1
1362      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1363      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1364      y_test[1]=n[0]*((-1)*x[0])      y_test[1]=n[0]*((-1)*x[0])
1365      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1416  class Test_assemblage_2Do1(unittest.Test Line 1378  class Test_assemblage_2Do1(unittest.Test
1378      A_test[1,0,0,1]=x[0]      A_test[1,0,0,1]=x[0]
1379      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1380      Y_test[1]=3      Y_test[1]=3
1381      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1382      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1383      y_test[1]=n[0]*((-3)*x[0])      y_test[1]=n[0]*((-3)*x[0])
1384      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1436  class Test_assemblage_2Do1(unittest.Test Line 1397  class Test_assemblage_2Do1(unittest.Test
1397      A_test[1,0,1,0]=x[0]      A_test[1,0,1,0]=x[0]
1398      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1399      Y_test[1]=1      Y_test[1]=1
1400      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1401      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1402      y_test[1]=n[0]*((-1)*x[0])      y_test[1]=n[0]*((-1)*x[0])
1403      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1456  class Test_assemblage_2Do1(unittest.Test Line 1416  class Test_assemblage_2Do1(unittest.Test
1416      A_test[1,0,1,1]=x[0]      A_test[1,0,1,1]=x[0]
1417      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1418      Y_test[1]=9      Y_test[1]=9
1419      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1420      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1421      y_test[1]=n[0]*((-9)*x[0])      y_test[1]=n[0]*((-9)*x[0])
1422      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1476  class Test_assemblage_2Do1(unittest.Test Line 1435  class Test_assemblage_2Do1(unittest.Test
1435      A_test[1,1,0,0]=x[1]      A_test[1,1,0,0]=x[1]
1436      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1437      Y_test[1]=(-1)      Y_test[1]=(-1)
1438      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1439      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1440      y_test[1]=n[1]*(x[1])      y_test[1]=n[1]*(x[1])
1441      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1496  class Test_assemblage_2Do1(unittest.Test Line 1454  class Test_assemblage_2Do1(unittest.Test
1454      A_test[1,1,0,1]=x[1]      A_test[1,1,0,1]=x[1]
1455      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1456      Y_test[1]=(-2)      Y_test[1]=(-2)
1457      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1458      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1459      y_test[1]=n[1]*(2*x[1])      y_test[1]=n[1]*(2*x[1])
1460      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1516  class Test_assemblage_2Do1(unittest.Test Line 1473  class Test_assemblage_2Do1(unittest.Test
1473      A_test[1,1,1,0]=x[1]      A_test[1,1,1,0]=x[1]
1474      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1475      Y_test[1]=(-5)      Y_test[1]=(-5)
1476      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1477      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1478      y_test[1]=n[1]*(5*x[1])      y_test[1]=n[1]*(5*x[1])
1479      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1536  class Test_assemblage_2Do1(unittest.Test Line 1492  class Test_assemblage_2Do1(unittest.Test
1492      A_test[1,1,1,1]=x[1]      A_test[1,1,1,1]=x[1]
1493      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1494      Y_test[1]=8      Y_test[1]=8
1495      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1496      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1497      y_test[1]=n[1]*((-8)*x[1])      y_test[1]=n[1]*((-8)*x[1])
1498      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1556  class Test_assemblage_2Do1(unittest.Test Line 1511  class Test_assemblage_2Do1(unittest.Test
1511      B_test[0,0,0]=x[0]      B_test[0,0,0]=x[0]
1512      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1513      Y_test[0]=1-8*x[1]+8*x[0]      Y_test[0]=1-8*x[1]+8*x[0]
1514      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1515      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1516      y_test[0]=n[0]*((-1)*x[0]+8*x[0]*x[1]-4*x[0]**2)      y_test[0]=n[0]*((-1)*x[0]+8*x[0]*x[1]-4*x[0]**2)
1517      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1576  class Test_assemblage_2Do1(unittest.Test Line 1530  class Test_assemblage_2Do1(unittest.Test
1530      B_test[0,0,1]=x[0]      B_test[0,0,1]=x[0]
1531      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1532      Y_test[0]=(-2)-1*x[1]+10*x[0]      Y_test[0]=(-2)-1*x[1]+10*x[0]
1533      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1534      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1535      y_test[0]=n[0]*(2*x[0]+x[0]*x[1]-5*x[0]**2)      y_test[0]=n[0]*(2*x[0]+x[0]*x[1]-5*x[0]**2)
1536      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1596  class Test_assemblage_2Do1(unittest.Test Line 1549  class Test_assemblage_2Do1(unittest.Test
1549      B_test[0,1,0]=x[1]      B_test[0,1,0]=x[1]
1550      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1551      Y_test[0]=3-12*x[1]+7*x[0]      Y_test[0]=3-12*x[1]+7*x[0]
1552      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1553      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1554      y_test[0]=n[1]*((-3)*x[1]+6*x[1]**2-7*x[0]*x[1])      y_test[0]=n[1]*((-3)*x[1]+6*x[1]**2-7*x[0]*x[1])
1555      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1616  class Test_assemblage_2Do1(unittest.Test Line 1568  class Test_assemblage_2Do1(unittest.Test
1568      B_test[0,1,1]=x[1]      B_test[0,1,1]=x[1]
1569      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1570      Y_test[0]=(-5)+14*x[1]-8*x[0]      Y_test[0]=(-5)+14*x[1]-8*x[0]
1571      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1572      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1573      y_test[0]=n[1]*(5*x[1]-7*x[1]**2+8*x[0]*x[1])      y_test[0]=n[1]*(5*x[1]-7*x[1]**2+8*x[0]*x[1])
1574      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1636  class Test_assemblage_2Do1(unittest.Test Line 1587  class Test_assemblage_2Do1(unittest.Test
1587      B_test[1,0,0]=x[0]      B_test[1,0,0]=x[0]
1588      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1589      Y_test[1]=(-6)-8*x[1]-4*x[0]      Y_test[1]=(-6)-8*x[1]-4*x[0]
1590      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1591      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1592      y_test[1]=n[0]*(6*x[0]+8*x[0]*x[1]+2*x[0]**2)      y_test[1]=n[0]*(6*x[0]+8*x[0]*x[1]+2*x[0]**2)
1593      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1656  class Test_assemblage_2Do1(unittest.Test Line 1606  class Test_assemblage_2Do1(unittest.Test
1606      B_test[1,0,1]=x[0]      B_test[1,0,1]=x[0]
1607      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1608      Y_test[1]=(-3)-4*x[1]-16*x[0]      Y_test[1]=(-3)-4*x[1]-16*x[0]
1609      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1610      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1611      y_test[1]=n[0]*(3*x[0]+4*x[0]*x[1]+8*x[0]**2)      y_test[1]=n[0]*(3*x[0]+4*x[0]*x[1]+8*x[0]**2)
1612      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1676  class Test_assemblage_2Do1(unittest.Test Line 1625  class Test_assemblage_2Do1(unittest.Test
1625      B_test[1,1,0]=x[1]      B_test[1,1,0]=x[1]
1626      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1627      Y_test[1]=(-2)-16*x[1]+3*x[0]      Y_test[1]=(-2)-16*x[1]+3*x[0]
1628      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1629      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1630      y_test[1]=n[1]*(2*x[1]+8*x[1]**2-3*x[0]*x[1])      y_test[1]=n[1]*(2*x[1]+8*x[1]**2-3*x[0]*x[1])
1631      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 1696  class Test_assemblage_2Do1(unittest.Test Line 1644  class Test_assemblage_2Do1(unittest.Test
1644      B_test[1,1,1]=x[1]      B_test[1,1,1]=x[1]
1645      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
1646      Y_test[1]=3+14*x[1]-7*x[0]      Y_test[1]=3+14*x[1]-7*x[0]
1647      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
1648      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),FunctionOnBoundary(self.domain))
1649      y_test[1]=n[1]*((-3)*x[1]-7*x[1]**2+7*x[0]*x[1])      y_test[1]=n[1]*((-3)*x[1]-7*x[1]**2+7*x[0]*x[1])
1650      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2740  class Test_assemblage_2Do1(unittest.Test Line 2687  class Test_assemblage_2Do1(unittest.Test
2687      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2688      A_test[0,0,0,0]=4      A_test[0,0,0,0]=4
2689      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2690      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2691      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2692      y_test[0]=n[0]*(28)      y_test[0]=n[0]*(28)
2693      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2760  class Test_assemblage_2Do1(unittest.Test Line 2706  class Test_assemblage_2Do1(unittest.Test
2706      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2707      A_test[0,0,0,1]=6      A_test[0,0,0,1]=6
2708      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2709      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2710      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2711      y_test[0]=n[0]*(6)      y_test[0]=n[0]*(6)
2712      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2780  class Test_assemblage_2Do1(unittest.Test Line 2725  class Test_assemblage_2Do1(unittest.Test
2725      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2726      A_test[0,0,1,0]=2      A_test[0,0,1,0]=2
2727      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2728      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2729      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2730      y_test[0]=n[0]*((-6))      y_test[0]=n[0]*((-6))
2731      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2800  class Test_assemblage_2Do1(unittest.Test Line 2744  class Test_assemblage_2Do1(unittest.Test
2744      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2745      A_test[0,0,1,1]=7      A_test[0,0,1,1]=7
2746      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2747      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2748      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2749      y_test[0]=n[0]*(21)      y_test[0]=n[0]*(21)
2750      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2820  class Test_assemblage_2Do1(unittest.Test Line 2763  class Test_assemblage_2Do1(unittest.Test
2763      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2764      A_test[0,0,2,0]=7      A_test[0,0,2,0]=7
2765      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2766      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2767      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2768      y_test[0]=n[0]*(56)      y_test[0]=n[0]*(56)
2769      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2840  class Test_assemblage_2Do1(unittest.Test Line 2782  class Test_assemblage_2Do1(unittest.Test
2782      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2783      A_test[0,0,2,1]=2      A_test[0,0,2,1]=2
2784      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2785      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2786      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2787      y_test[0]=n[0]*(16)      y_test[0]=n[0]*(16)
2788      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2860  class Test_assemblage_2Do1(unittest.Test Line 2801  class Test_assemblage_2Do1(unittest.Test
2801      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2802      A_test[0,1,0,0]=4      A_test[0,1,0,0]=4
2803      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2804      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2805      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2806      y_test[0]=n[1]*(8)      y_test[0]=n[1]*(8)
2807      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2880  class Test_assemblage_2Do1(unittest.Test Line 2820  class Test_assemblage_2Do1(unittest.Test
2820      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2821      A_test[0,1,0,1]=2      A_test[0,1,0,1]=2
2822      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2823      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2824      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2825      y_test[0]=n[1]*(10)      y_test[0]=n[1]*(10)
2826      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2900  class Test_assemblage_2Do1(unittest.Test Line 2839  class Test_assemblage_2Do1(unittest.Test
2839      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2840      A_test[0,1,1,0]=6      A_test[0,1,1,0]=6
2841      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2842      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2843      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2844      y_test[0]=n[1]*((-12))      y_test[0]=n[1]*((-12))
2845      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2920  class Test_assemblage_2Do1(unittest.Test Line 2858  class Test_assemblage_2Do1(unittest.Test
2858      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2859      A_test[0,1,1,1]=4      A_test[0,1,1,1]=4
2860      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2861      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2862      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2863      y_test[0]=n[1]*((-32))      y_test[0]=n[1]*((-32))
2864      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2940  class Test_assemblage_2Do1(unittest.Test Line 2877  class Test_assemblage_2Do1(unittest.Test
2877      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2878      A_test[0,1,2,0]=3      A_test[0,1,2,0]=3
2879      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2880      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2881      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2882      y_test[0]=n[1]*(9)      y_test[0]=n[1]*(9)
2883      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2960  class Test_assemblage_2Do1(unittest.Test Line 2896  class Test_assemblage_2Do1(unittest.Test
2896      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2897      A_test[0,1,2,1]=2      A_test[0,1,2,1]=2
2898      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2899      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2900      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2901      y_test[0]=n[1]*(2)      y_test[0]=n[1]*(2)
2902      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 2980  class Test_assemblage_2Do1(unittest.Test Line 2915  class Test_assemblage_2Do1(unittest.Test
2915      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2916      A_test[1,0,0,0]=7      A_test[1,0,0,0]=7
2917      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2918      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2919      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2920      y_test[1]=n[0]*((-21))      y_test[1]=n[0]*((-21))
2921      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3000  class Test_assemblage_2Do1(unittest.Test Line 2934  class Test_assemblage_2Do1(unittest.Test
2934      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2935      A_test[1,0,0,1]=3      A_test[1,0,0,1]=3
2936      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2937      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2938      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2939      y_test[1]=n[0]*((-3))      y_test[1]=n[0]*((-3))
2940      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3020  class Test_assemblage_2Do1(unittest.Test Line 2953  class Test_assemblage_2Do1(unittest.Test
2953      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2954      A_test[1,0,1,0]=5      A_test[1,0,1,0]=5
2955      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2956      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2957      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2958      y_test[1]=n[0]*((-45))      y_test[1]=n[0]*((-45))
2959      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3040  class Test_assemblage_2Do1(unittest.Test Line 2972  class Test_assemblage_2Do1(unittest.Test
2972      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2973      A_test[1,0,1,1]=6      A_test[1,0,1,1]=6
2974      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2975      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2976      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2977      y_test[1]=n[0]*((-30))      y_test[1]=n[0]*((-30))
2978      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3060  class Test_assemblage_2Do1(unittest.Test Line 2991  class Test_assemblage_2Do1(unittest.Test
2991      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
2992      A_test[1,0,2,0]=3      A_test[1,0,2,0]=3
2993      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
2994      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
2995      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
2996      y_test[1]=n[0]*((-12))      y_test[1]=n[0]*((-12))
2997      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3080  class Test_assemblage_2Do1(unittest.Test Line 3010  class Test_assemblage_2Do1(unittest.Test
3010      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3011      A_test[1,0,2,1]=4      A_test[1,0,2,1]=4
3012      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3013      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3014      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3015      y_test[1]=n[0]*(4)      y_test[1]=n[0]*(4)
3016      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3100  class Test_assemblage_2Do1(unittest.Test Line 3029  class Test_assemblage_2Do1(unittest.Test
3029      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3030      A_test[1,1,0,0]=4      A_test[1,1,0,0]=4
3031      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3032      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3033      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3034      y_test[1]=n[1]*(24)      y_test[1]=n[1]*(24)
3035      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3120  class Test_assemblage_2Do1(unittest.Test Line 3048  class Test_assemblage_2Do1(unittest.Test
3048      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3049      A_test[1,1,0,1]=4      A_test[1,1,0,1]=4
3050      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3051      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3052      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3053      y_test[1]=n[1]*((-28))      y_test[1]=n[1]*((-28))
3054      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3140  class Test_assemblage_2Do1(unittest.Test Line 3067  class Test_assemblage_2Do1(unittest.Test
3067      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3068      A_test[1,1,1,0]=7      A_test[1,1,1,0]=7
3069      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3070      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3071      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3072      y_test[1]=n[1]*((-14))      y_test[1]=n[1]*((-14))
3073      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3160  class Test_assemblage_2Do1(unittest.Test Line 3086  class Test_assemblage_2Do1(unittest.Test
3086      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3087      A_test[1,1,1,1]=6      A_test[1,1,1,1]=6
3088      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3089      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3090      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3091      y_test[1]=n[1]*((-48))      y_test[1]=n[1]*((-48))
3092      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3180  class Test_assemblage_2Do1(unittest.Test Line 3105  class Test_assemblage_2Do1(unittest.Test
3105      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3106      A_test[1,1,2,0]=1      A_test[1,1,2,0]=1
3107      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3108      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3109      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3110      y_test[1]=n[1]*((-7))      y_test[1]=n[1]*((-7))
3111      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3200  class Test_assemblage_2Do1(unittest.Test Line 3124  class Test_assemblage_2Do1(unittest.Test
3124      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3125      A_test[1,1,2,1]=2      A_test[1,1,2,1]=2
3126      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3127      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3128      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3129      y_test[1]=n[1]*((-14))      y_test[1]=n[1]*((-14))
3130      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3220  class Test_assemblage_2Do1(unittest.Test Line 3143  class Test_assemblage_2Do1(unittest.Test
3143      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3144      A_test[2,0,0,0]=3      A_test[2,0,0,0]=3
3145      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3146      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3147      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3148      y_test[2]=n[0]*((-21))      y_test[2]=n[0]*((-21))
3149      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3240  class Test_assemblage_2Do1(unittest.Test Line 3162  class Test_assemblage_2Do1(unittest.Test
3162      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3163      A_test[2,0,0,1]=6      A_test[2,0,0,1]=6
3164      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3165      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3166      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3167      y_test[2]=n[0]*((-36))      y_test[2]=n[0]*((-36))
3168      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3260  class Test_assemblage_2Do1(unittest.Test Line 3181  class Test_assemblage_2Do1(unittest.Test
3181      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3182      A_test[2,0,1,0]=4      A_test[2,0,1,0]=4
3183      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3184      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3185      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3186      y_test[2]=n[0]*((-32))      y_test[2]=n[0]*((-32))
3187      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3280  class Test_assemblage_2Do1(unittest.Test Line 3200  class Test_assemblage_2Do1(unittest.Test
3200      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3201      A_test[2,0,1,1]=2      A_test[2,0,1,1]=2
3202      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3203      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3204      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3205      y_test[2]=n[0]*((-4))      y_test[2]=n[0]*((-4))
3206      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3300  class Test_assemblage_2Do1(unittest.Test Line 3219  class Test_assemblage_2Do1(unittest.Test
3219      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3220      A_test[2,0,2,0]=4      A_test[2,0,2,0]=4
3221      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3222      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3223      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3224      y_test[2]=n[0]*((-4))      y_test[2]=n[0]*((-4))
3225      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3320  class Test_assemblage_2Do1(unittest.Test Line 3238  class Test_assemblage_2Do1(unittest.Test
3238      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3239      A_test[2,0,2,1]=8      A_test[2,0,2,1]=8
3240      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3241      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3242      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3243      y_test[2]=n[0]*((-16))      y_test[2]=n[0]*((-16))
3244      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3340  class Test_assemblage_2Do1(unittest.Test Line 3257  class Test_assemblage_2Do1(unittest.Test
3257      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3258      A_test[2,1,0,0]=8      A_test[2,1,0,0]=8
3259      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3260      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3261      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3262      y_test[2]=n[1]*((-8))      y_test[2]=n[1]*((-8))
3263      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3360  class Test_assemblage_2Do1(unittest.Test Line 3276  class Test_assemblage_2Do1(unittest.Test
3276      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3277      A_test[2,1,0,1]=6      A_test[2,1,0,1]=6
3278      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3279      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3280      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3281      y_test[2]=n[1]*(36)      y_test[2]=n[1]*(36)
3282      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3380  class Test_assemblage_2Do1(unittest.Test Line 3295  class Test_assemblage_2Do1(unittest.Test
3295      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3296      A_test[2,1,1,0]=4      A_test[2,1,1,0]=4
3297      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3298      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3299      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3300      y_test[2]=n[1]*(28)      y_test[2]=n[1]*(28)
3301      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3400  class Test_assemblage_2Do1(unittest.Test Line 3314  class Test_assemblage_2Do1(unittest.Test
3314      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3315      A_test[2,1,1,1]=3      A_test[2,1,1,1]=3
3316      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3317      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3318      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3319      y_test[2]=n[1]*(9)      y_test[2]=n[1]*(9)
3320      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3420  class Test_assemblage_2Do1(unittest.Test Line 3333  class Test_assemblage_2Do1(unittest.Test
3333      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3334      A_test[2,1,2,0]=3      A_test[2,1,2,0]=3
3335      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3336      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3337      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3338      y_test[2]=n[1]*((-6))      y_test[2]=n[1]*((-6))
3339      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3440  class Test_assemblage_2Do1(unittest.Test Line 3352  class Test_assemblage_2Do1(unittest.Test
3352      A_test=Data(0.,(3,2,3,2),Function(self.domain))      A_test=Data(0.,(3,2,3,2),Function(self.domain))
3353      A_test[2,1,2,1]=3      A_test[2,1,2,1]=3
3354      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3355      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3356      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3357      y_test[2]=n[1]*(15)      y_test[2]=n[1]*(15)
3358      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3461  class Test_assemblage_2Do1(unittest.Test Line 3372  class Test_assemblage_2Do1(unittest.Test
3372      B_test[0,0,0]=6      B_test[0,0,0]=6
3373      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3374      Y_test[0]=18      Y_test[0]=18
3375      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3376      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3377      y_test[0]=n[0]*((-36)-36*x[1]-18*x[0])      y_test[0]=n[0]*((-36)-36*x[1]-18*x[0])
3378      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3482  class Test_assemblage_2Do1(unittest.Test Line 3392  class Test_assemblage_2Do1(unittest.Test
3392      B_test[0,0,1]=4      B_test[0,0,1]=4
3393      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3394      Y_test[0]=(-4)      Y_test[0]=(-4)
3395      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3396      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3397      y_test[0]=n[0]*(8-8*x[1]+4*x[0])      y_test[0]=n[0]*(8-8*x[1]+4*x[0])
3398      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3503  class Test_assemblage_2Do1(unittest.Test Line 3412  class Test_assemblage_2Do1(unittest.Test
3412      B_test[0,0,2]=7      B_test[0,0,2]=7
3413      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3414      Y_test[0]=(-21)      Y_test[0]=(-21)
3415      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3416      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3417      y_test[0]=n[0]*(35+49*x[1]+21*x[0])      y_test[0]=n[0]*(35+49*x[1]+21*x[0])
3418      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3524  class Test_assemblage_2Do1(unittest.Test Line 3432  class Test_assemblage_2Do1(unittest.Test
3432      B_test[0,1,0]=6      B_test[0,1,0]=6
3433      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3434      Y_test[0]=48      Y_test[0]=48
3435      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3436      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3437      y_test[0]=n[1]*((-18)-48*x[1]-36*x[0])      y_test[0]=n[1]*((-18)-48*x[1]-36*x[0])
3438      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3545  class Test_assemblage_2Do1(unittest.Test Line 3452  class Test_assemblage_2Do1(unittest.Test
3452      B_test[0,1,1]=3      B_test[0,1,1]=3
3453      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3454      Y_test[0]=(-3)      Y_test[0]=(-3)
3455      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3456      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3457      y_test[0]=n[1]*((-18)+3*x[1]-27*x[0])      y_test[0]=n[1]*((-18)+3*x[1]-27*x[0])
3458      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3566  class Test_assemblage_2Do1(unittest.Test Line 3472  class Test_assemblage_2Do1(unittest.Test
3472      B_test[0,1,2]=1      B_test[0,1,2]=1
3473      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3474      Y_test[0]=8      Y_test[0]=8
3475      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3476      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3477      y_test[0]=n[1]*((-9)-8*x[1]-4*x[0])      y_test[0]=n[1]*((-9)-8*x[1]-4*x[0])
3478      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3587  class Test_assemblage_2Do1(unittest.Test Line 3492  class Test_assemblage_2Do1(unittest.Test
3492      B_test[1,0,0]=2      B_test[1,0,0]=2
3493      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3494      Y_test[1]=18      Y_test[1]=18
3495      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3496      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3497      y_test[1]=n[0]*((-12)-18*x[1]-18*x[0])      y_test[1]=n[0]*((-12)-18*x[1]-18*x[0])
3498      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3608  class Test_assemblage_2Do1(unittest.Test Line 3512  class Test_assemblage_2Do1(unittest.Test
3512      B_test[1,0,1]=5      B_test[1,0,1]=5
3513      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3514      Y_test[1]=45      Y_test[1]=45
3515      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3516      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3517      y_test[1]=n[0]*((-20)-45*x[1]-45*x[0])      y_test[1]=n[0]*((-20)-45*x[1]-45*x[0])
3518      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3629  class Test_assemblage_2Do1(unittest.Test Line 3532  class Test_assemblage_2Do1(unittest.Test
3532      B_test[1,0,2]=8      B_test[1,0,2]=8
3533      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3534      Y_test[1]=16      Y_test[1]=16
3535      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3536      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3537      y_test[1]=n[0]*(40+24*x[1]-16*x[0])      y_test[1]=n[0]*(40+24*x[1]-16*x[0])
3538      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3650  class Test_assemblage_2Do1(unittest.Test Line 3552  class Test_assemblage_2Do1(unittest.Test
3552      B_test[1,1,0]=2      B_test[1,1,0]=2
3553      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3554      Y_test[1]=16      Y_test[1]=16
3555      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3556      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3557      y_test[1]=n[1]*(12-16*x[1]+2*x[0])      y_test[1]=n[1]*(12-16*x[1]+2*x[0])
3558      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3671  class Test_assemblage_2Do1(unittest.Test Line 3572  class Test_assemblage_2Do1(unittest.Test
3572      B_test[1,1,1]=3      B_test[1,1,1]=3
3573      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3574      Y_test[1]=(-15)      Y_test[1]=(-15)
3575      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3576      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3577      y_test[1]=n[1]*((-18)+15*x[1]+21*x[0])      y_test[1]=n[1]*((-18)+15*x[1]+21*x[0])
3578      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3692  class Test_assemblage_2Do1(unittest.Test Line 3592  class Test_assemblage_2Do1(unittest.Test
3592      B_test[1,1,2]=6      B_test[1,1,2]=6
3593      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3594      Y_test[1]=(-48)      Y_test[1]=(-48)
3595      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3596      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3597      y_test[1]=n[1]*((-48)+48*x[1]+24*x[0])      y_test[1]=n[1]*((-48)+48*x[1]+24*x[0])
3598      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3713  class Test_assemblage_2Do1(unittest.Test Line 3612  class Test_assemblage_2Do1(unittest.Test
3612      B_test[2,0,0]=1      B_test[2,0,0]=1
3613      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3614      Y_test[2]=5      Y_test[2]=5
3615      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3616      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3617      y_test[2]=n[0]*(4-3*x[1]-5*x[0])      y_test[2]=n[0]*(4-3*x[1]-5*x[0])
3618      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3734  class Test_assemblage_2Do1(unittest.Test Line 3632  class Test_assemblage_2Do1(unittest.Test
3632      B_test[2,0,1]=5      B_test[2,0,1]=5
3633      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3634      Y_test[2]=25      Y_test[2]=25
3635      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3636      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3637      y_test[2]=n[0]*((-10)-15*x[1]-25*x[0])      y_test[2]=n[0]*((-10)-15*x[1]-25*x[0])
3638      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3755  class Test_assemblage_2Do1(unittest.Test Line 3652  class Test_assemblage_2Do1(unittest.Test
3652      B_test[2,0,2]=8      B_test[2,0,2]=8
3653      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3654      Y_test[2]=(-64)      Y_test[2]=(-64)
3655      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3656      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3657      y_test[2]=n[0]*(40-72*x[1]+64*x[0])      y_test[2]=n[0]*(40-72*x[1]+64*x[0])
3658      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3776  class Test_assemblage_2Do1(unittest.Test Line 3672  class Test_assemblage_2Do1(unittest.Test
3672      B_test[2,1,0]=2      B_test[2,1,0]=2
3673      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3674      Y_test[2]=12      Y_test[2]=12
3675      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3676      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3677      y_test[2]=n[1]*((-6)-12*x[1]-2*x[0])      y_test[2]=n[1]*((-6)-12*x[1]-2*x[0])
3678      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3797  class Test_assemblage_2Do1(unittest.Test Line 3692  class Test_assemblage_2Do1(unittest.Test
3692      B_test[2,1,1]=1      B_test[2,1,1]=1
3693      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3694      Y_test[2]=9      Y_test[2]=9
3695      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3696      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3697      y_test[2]=n[1]*(2-9*x[1]-8*x[0])      y_test[2]=n[1]*(2-9*x[1]-8*x[0])
3698      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 3818  class Test_assemblage_2Do1(unittest.Test Line 3712  class Test_assemblage_2Do1(unittest.Test
3712      B_test[2,1,2]=5      B_test[2,1,2]=5
3713      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
3714      Y_test[2]=(-20)      Y_test[2]=(-20)
3715      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
3716      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
3717      y_test[2]=n[1]*((-15)+20*x[1]+15*x[0])      y_test[2]=n[1]*((-15)+20*x[1]+15*x[0])
3718      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4451  class Test_assemblage_2Do1(unittest.Test Line 4344  class Test_assemblage_2Do1(unittest.Test
4344      A_test[0,0,0,0]=x[0]      A_test[0,0,0,0]=x[0]
4345      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4346      Y_test[0]=3      Y_test[0]=3
4347      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4348      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4349      y_test[0]=n[0]*((-3)*x[0])      y_test[0]=n[0]*((-3)*x[0])
4350      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4472  class Test_assemblage_2Do1(unittest.Test Line 4364  class Test_assemblage_2Do1(unittest.Test
4364      A_test[0,0,0,1]=x[0]      A_test[0,0,0,1]=x[0]
4365      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4366      Y_test[0]=(-3)      Y_test[0]=(-3)
4367      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4368      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4369      y_test[0]=n[0]*(3*x[0])      y_test[0]=n[0]*(3*x[0])
4370      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4493  class Test_assemblage_2Do1(unittest.Test Line 4384  class Test_assemblage_2Do1(unittest.Test
4384      A_test[0,0,1,0]=x[0]      A_test[0,0,1,0]=x[0]
4385      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4386      Y_test[0]=(-4)      Y_test[0]=(-4)
4387      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4388      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4389      y_test[0]=n[0]*(4*x[0])      y_test[0]=n[0]*(4*x[0])
4390      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4514  class Test_assemblage_2Do1(unittest.Test Line 4404  class Test_assemblage_2Do1(unittest.Test
4404      A_test[0,0,1,1]=x[0]      A_test[0,0,1,1]=x[0]
4405      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4406      Y_test[0]=8      Y_test[0]=8
4407      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4408      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4409      y_test[0]=n[0]*((-8)*x[0])      y_test[0]=n[0]*((-8)*x[0])
4410      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4535  class Test_assemblage_2Do1(unittest.Test Line 4424  class Test_assemblage_2Do1(unittest.Test
4424      A_test[0,0,2,0]=x[0]      A_test[0,0,2,0]=x[0]
4425      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4426      Y_test[0]=2      Y_test[0]=2
4427      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4428      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4429      y_test[0]=n[0]*((-2)*x[0])      y_test[0]=n[0]*((-2)*x[0])
4430      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4556  class Test_assemblage_2Do1(unittest.Test Line 4444  class Test_assemblage_2Do1(unittest.Test
4444      A_test[0,0,2,1]=x[0]      A_test[0,0,2,1]=x[0]
4445      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4446      Y_test[0]=9      Y_test[0]=9
4447      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4448      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4449      y_test[0]=n[0]*((-9)*x[0])      y_test[0]=n[0]*((-9)*x[0])
4450      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4577  class Test_assemblage_2Do1(unittest.Test Line 4464  class Test_assemblage_2Do1(unittest.Test
4464      A_test[0,1,0,0]=x[1]      A_test[0,1,0,0]=x[1]
4465      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4466      Y_test[0]=8      Y_test[0]=8
4467      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4468      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4469      y_test[0]=n[1]*((-8)*x[1])      y_test[0]=n[1]*((-8)*x[1])
4470      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4598  class Test_assemblage_2Do1(unittest.Test Line 4484  class Test_assemblage_2Do1(unittest.Test
4484      A_test[0,1,0,1]=x[1]      A_test[0,1,0,1]=x[1]
4485      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4486      Y_test[0]=(-4)      Y_test[0]=(-4)
4487      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4488      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4489      y_test[0]=n[1]*(4*x[1])      y_test[0]=n[1]*(4*x[1])
4490      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4619  class Test_assemblage_2Do1(unittest.Test Line 4504  class Test_assemblage_2Do1(unittest.Test
4504      A_test[0,1,1,0]=x[1]      A_test[0,1,1,0]=x[1]
4505      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4506      Y_test[0]=(-2)      Y_test[0]=(-2)
4507      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4508      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4509      y_test[0]=n[1]*(2*x[1])      y_test[0]=n[1]*(2*x[1])
4510      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4640  class Test_assemblage_2Do1(unittest.Test Line 4524  class Test_assemblage_2Do1(unittest.Test
4524      A_test[0,1,1,1]=x[1]      A_test[0,1,1,1]=x[1]
4525      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4526      Y_test[0]=(-5)      Y_test[0]=(-5)
4527      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4528      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4529      y_test[0]=n[1]*(5*x[1])      y_test[0]=n[1]*(5*x[1])
4530      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4661  class Test_assemblage_2Do1(unittest.Test Line 4544  class Test_assemblage_2Do1(unittest.Test
4544      A_test[0,1,2,0]=x[1]      A_test[0,1,2,0]=x[1]
4545      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4546      Y_test[0]=(-3)      Y_test[0]=(-3)
4547      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4548      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4549      y_test[0]=n[1]*(3*x[1])      y_test[0]=n[1]*(3*x[1])
4550      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4682  class Test_assemblage_2Do1(unittest.Test Line 4564  class Test_assemblage_2Do1(unittest.Test
4564      A_test[0,1,2,1]=x[1]      A_test[0,1,2,1]=x[1]
4565      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4566      Y_test[0]=3      Y_test[0]=3
4567      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4568      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4569      y_test[0]=n[1]*((-3)*x[1])      y_test[0]=n[1]*((-3)*x[1])
4570      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4703  class Test_assemblage_2Do1(unittest.Test Line 4584  class Test_assemblage_2Do1(unittest.Test
4584      A_test[1,0,0,0]=x[0]      A_test[1,0,0,0]=x[0]
4585      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4586      Y_test[1]=7      Y_test[1]=7
4587      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4588      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4589      y_test[1]=n[0]*((-7)*x[0])      y_test[1]=n[0]*((-7)*x[0])
4590      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4724  class Test_assemblage_2Do1(unittest.Test Line 4604  class Test_assemblage_2Do1(unittest.Test
4604      A_test[1,0,0,1]=x[0]      A_test[1,0,0,1]=x[0]
4605      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4606      Y_test[1]=1      Y_test[1]=1
4607      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4608      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4609      y_test[1]=n[0]*((-1)*x[0])      y_test[1]=n[0]*((-1)*x[0])
4610      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4745  class Test_assemblage_2Do1(unittest.Test Line 4624  class Test_assemblage_2Do1(unittest.Test
4624      A_test[1,0,1,0]=x[0]      A_test[1,0,1,0]=x[0]
4625      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4626      Y_test[1]=4      Y_test[1]=4
4627      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4628      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4629      y_test[1]=n[0]*((-4)*x[0])      y_test[1]=n[0]*((-4)*x[0])
4630      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4766  class Test_assemblage_2Do1(unittest.Test Line 4644  class Test_assemblage_2Do1(unittest.Test
4644      A_test[1,0,1,1]=x[0]      A_test[1,0,1,1]=x[0]
4645      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4646      Y_test[1]=1      Y_test[1]=1
4647      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4648      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4649      y_test[1]=n[0]*((-1)*x[0])      y_test[1]=n[0]*((-1)*x[0])
4650      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4787  class Test_assemblage_2Do1(unittest.Test Line 4664  class Test_assemblage_2Do1(unittest.Test
4664      A_test[1,0,2,0]=x[0]      A_test[1,0,2,0]=x[0]
4665      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4666      Y_test[1]=(-4)      Y_test[1]=(-4)
4667      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4668      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4669      y_test[1]=n[0]*(4*x[0])      y_test[1]=n[0]*(4*x[0])
4670      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4808  class Test_assemblage_2Do1(unittest.Test Line 4684  class Test_assemblage_2Do1(unittest.Test
4684      A_test[1,0,2,1]=x[0]      A_test[1,0,2,1]=x[0]
4685      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4686      Y_test[1]=3      Y_test[1]=3
4687      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4688      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4689      y_test[1]=n[0]*((-3)*x[0])      y_test[1]=n[0]*((-3)*x[0])
4690      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4829  class Test_assemblage_2Do1(unittest.Test Line 4704  class Test_assemblage_2Do1(unittest.Test
4704      A_test[1,1,0,0]=x[1]      A_test[1,1,0,0]=x[1]
4705      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4706      Y_test[1]=3      Y_test[1]=3
4707      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4708      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4709      y_test[1]=n[1]*((-3)*x[1])      y_test[1]=n[1]*((-3)*x[1])
4710      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4850  class Test_assemblage_2Do1(unittest.Test Line 4724  class Test_assemblage_2Do1(unittest.Test
4724      A_test[1,1,0,1]=x[1]      A_test[1,1,0,1]=x[1]
4725      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4726      Y_test[1]=9      Y_test[1]=9
4727      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4728      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4729      y_test[1]=n[1]*((-9)*x[1])      y_test[1]=n[1]*((-9)*x[1])
4730      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4871  class Test_assemblage_2Do1(unittest.Test Line 4744  class Test_assemblage_2Do1(unittest.Test
4744      A_test[1,1,1,0]=x[1]      A_test[1,1,1,0]=x[1]
4745      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4746      Y_test[1]=(-4)      Y_test[1]=(-4)
4747      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4748      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4749      y_test[1]=n[1]*(4*x[1])      y_test[1]=n[1]*(4*x[1])
4750      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4892  class Test_assemblage_2Do1(unittest.Test Line 4764  class Test_assemblage_2Do1(unittest.Test
4764      A_test[1,1,1,1]=x[1]      A_test[1,1,1,1]=x[1]
4765      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4766      Y_test[1]=(-6)      Y_test[1]=(-6)
4767      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4768      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4769      y_test[1]=n[1]*(6*x[1])      y_test[1]=n[1]*(6*x[1])
4770      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4913  class Test_assemblage_2Do1(unittest.Test Line 4784  class Test_assemblage_2Do1(unittest.Test
4784      A_test[1,1,2,0]=x[1]      A_test[1,1,2,0]=x[1]
4785      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4786      Y_test[1]=2      Y_test[1]=2
4787      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4788      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4789      y_test[1]=n[1]*((-2)*x[1])      y_test[1]=n[1]*((-2)*x[1])
4790      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4934  class Test_assemblage_2Do1(unittest.Test Line 4804  class Test_assemblage_2Do1(unittest.Test
4804      A_test[1,1,2,1]=x[1]      A_test[1,1,2,1]=x[1]
4805      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4806      Y_test[1]=8      Y_test[1]=8
4807      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4808      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4809      y_test[1]=n[1]*((-8)*x[1])      y_test[1]=n[1]*((-8)*x[1])
4810      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4955  class Test_assemblage_2Do1(unittest.Test Line 4824  class Test_assemblage_2Do1(unittest.Test
4824      A_test[2,0,0,0]=x[0]      A_test[2,0,0,0]=x[0]
4825      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4826      Y_test[2]=5      Y_test[2]=5
4827      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4828      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4829      y_test[2]=n[0]*((-5)*x[0])      y_test[2]=n[0]*((-5)*x[0])
4830      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4976  class Test_assemblage_2Do1(unittest.Test Line 4844  class Test_assemblage_2Do1(unittest.Test
4844      A_test[2,0,0,1]=x[0]      A_test[2,0,0,1]=x[0]
4845      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4846      Y_test[2]=3      Y_test[2]=3
4847      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4848      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4849      y_test[2]=n[0]*((-3)*x[0])      y_test[2]=n[0]*((-3)*x[0])
4850      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 4997  class Test_assemblage_2Do1(unittest.Test Line 4864  class Test_assemblage_2Do1(unittest.Test
4864      A_test[2,0,1,0]=x[0]      A_test[2,0,1,0]=x[0]
4865      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4866      Y_test[2]=(-4)      Y_test[2]=(-4)
4867      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4868      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4869      y_test[2]=n[0]*(4*x[0])      y_test[2]=n[0]*(4*x[0])
4870      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5018  class Test_assemblage_2Do1(unittest.Test Line 4884  class Test_assemblage_2Do1(unittest.Test
4884      A_test[2,0,1,1]=x[0]      A_test[2,0,1,1]=x[0]
4885      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4886      Y_test[2]=9      Y_test[2]=9
4887      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4888      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4889      y_test[2]=n[0]*((-9)*x[0])      y_test[2]=n[0]*((-9)*x[0])
4890      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5039  class Test_assemblage_2Do1(unittest.Test Line 4904  class Test_assemblage_2Do1(unittest.Test
4904      A_test[2,0,2,0]=x[0]      A_test[2,0,2,0]=x[0]
4905      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4906      Y_test[2]=5      Y_test[2]=5
4907      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4908      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4909      y_test[2]=n[0]*((-5)*x[0])      y_test[2]=n[0]*((-5)*x[0])
4910      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5060  class Test_assemblage_2Do1(unittest.Test Line 4924  class Test_assemblage_2Do1(unittest.Test
4924      A_test[2,0,2,1]=x[0]      A_test[2,0,2,1]=x[0]
4925      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4926      Y_test[2]=(-3)      Y_test[2]=(-3)
4927      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4928      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4929      y_test[2]=n[0]*(3*x[0])      y_test[2]=n[0]*(3*x[0])
4930      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5081  class Test_assemblage_2Do1(unittest.Test Line 4944  class Test_assemblage_2Do1(unittest.Test
4944      A_test[2,1,0,0]=x[1]      A_test[2,1,0,0]=x[1]
4945      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4946      Y_test[2]=(-7)      Y_test[2]=(-7)
4947      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4948      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4949      y_test[2]=n[1]*(7*x[1])      y_test[2]=n[1]*(7*x[1])
4950      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5102  class Test_assemblage_2Do1(unittest.Test Line 4964  class Test_assemblage_2Do1(unittest.Test
4964      A_test[2,1,0,1]=x[1]      A_test[2,1,0,1]=x[1]
4965      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4966      Y_test[2]=(-7)      Y_test[2]=(-7)
4967      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4968      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4969      y_test[2]=n[1]*(7*x[1])      y_test[2]=n[1]*(7*x[1])
4970      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5123  class Test_assemblage_2Do1(unittest.Test Line 4984  class Test_assemblage_2Do1(unittest.Test
4984      A_test[2,1,1,0]=x[1]      A_test[2,1,1,0]=x[1]
4985      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
4986      Y_test[2]=(-4)      Y_test[2]=(-4)
4987      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
4988      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
4989      y_test[2]=n[1]*(4*x[1])      y_test[2]=n[1]*(4*x[1])
4990      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5144  class Test_assemblage_2Do1(unittest.Test Line 5004  class Test_assemblage_2Do1(unittest.Test
5004      A_test[2,1,1,1]=x[1]      A_test[2,1,1,1]=x[1]
5005      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5006      Y_test[2]=5      Y_test[2]=5
5007      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5008      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5009      y_test[2]=n[1]*((-5)*x[1])      y_test[2]=n[1]*((-5)*x[1])
5010      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5165  class Test_assemblage_2Do1(unittest.Test Line 5024  class Test_assemblage_2Do1(unittest.Test
5024      A_test[2,1,2,0]=x[1]      A_test[2,1,2,0]=x[1]
5025      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5026      Y_test[2]=(-5)      Y_test[2]=(-5)
5027      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5028      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5029      y_test[2]=n[1]*(5*x[1])      y_test[2]=n[1]*(5*x[1])
5030      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5186  class Test_assemblage_2Do1(unittest.Test Line 5044  class Test_assemblage_2Do1(unittest.Test
5044      A_test[2,1,2,1]=x[1]      A_test[2,1,2,1]=x[1]
5045      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5046      Y_test[2]=(-4)      Y_test[2]=(-4)
5047      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5048      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5049      y_test[2]=n[1]*(4*x[1])      y_test[2]=n[1]*(4*x[1])
5050      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5207  class Test_assemblage_2Do1(unittest.Test Line 5064  class Test_assemblage_2Do1(unittest.Test
5064      B_test[0,0,0]=x[0]      B_test[0,0,0]=x[0]
5065      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5066      Y_test[0]=5-3*x[1]-2*x[0]      Y_test[0]=5-3*x[1]-2*x[0]
5067      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5068      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5069      y_test[0]=n[0]*((-5)*x[0]+3*x[0]*x[1]+x[0]**2)      y_test[0]=n[0]*((-5)*x[0]+3*x[0]*x[1]+x[0]**2)
5070      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5228  class Test_assemblage_2Do1(unittest.Test Line 5084  class Test_assemblage_2Do1(unittest.Test
5084      B_test[0,0,1]=x[0]      B_test[0,0,1]=x[0]
5085      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5086      Y_test[0]=5+x[1]+12*x[0]      Y_test[0]=5+x[1]+12*x[0]
5087      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5088      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5089      y_test[0]=n[0]*((-5)*x[0]-1*x[0]*x[1]-6*x[0]**2)      y_test[0]=n[0]*((-5)*x[0]-1*x[0]*x[1]-6*x[0]**2)
5090      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5249  class Test_assemblage_2Do1(unittest.Test Line 5104  class Test_assemblage_2Do1(unittest.Test
5104      B_test[0,0,2]=x[0]      B_test[0,0,2]=x[0]
5105      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5106      Y_test[0]=(-6)-2*x[1]+14*x[0]      Y_test[0]=(-6)-2*x[1]+14*x[0]
5107      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5108      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5109      y_test[0]=n[0]*(6*x[0]+2*x[0]*x[1]-7*x[0]**2)      y_test[0]=n[0]*(6*x[0]+2*x[0]*x[1]-7*x[0]**2)
5110      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5270  class Test_assemblage_2Do1(unittest.Test Line 5124  class Test_assemblage_2Do1(unittest.Test
5124      B_test[0,1,0]=x[1]      B_test[0,1,0]=x[1]
5125      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5126      Y_test[0]=(-5)-6*x[1]+9*x[0]      Y_test[0]=(-5)-6*x[1]+9*x[0]
5127      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5128      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5129      y_test[0]=n[1]*(5*x[1]+3*x[1]**2-9*x[0]*x[1])      y_test[0]=n[1]*(5*x[1]+3*x[1]**2-9*x[0]*x[1])
5130      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5291  class Test_assemblage_2Do1(unittest.Test Line 5144  class Test_assemblage_2Do1(unittest.Test
5144      B_test[0,1,1]=x[1]      B_test[0,1,1]=x[1]
5145      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5146      Y_test[0]=(-1)+8*x[1]-4*x[0]      Y_test[0]=(-1)+8*x[1]-4*x[0]
5147      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5148      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5149      y_test[0]=n[1]*(x[1]-4*x[1]**2+4*x[0]*x[1])      y_test[0]=n[1]*(x[1]-4*x[1]**2+4*x[0]*x[1])
5150      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5312  class Test_assemblage_2Do1(unittest.Test Line 5164  class Test_assemblage_2Do1(unittest.Test
5164      B_test[0,1,2]=x[1]      B_test[0,1,2]=x[1]
5165      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5166      Y_test[0]=1-6*x[1]+5*x[0]      Y_test[0]=1-6*x[1]+5*x[0]
5167      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5168      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5169      y_test[0]=n[1]*((-1)*x[1]+3*x[1]**2-5*x[0]*x[1])      y_test[0]=n[1]*((-1)*x[1]+3*x[1]**2-5*x[0]*x[1])
5170      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5333  class Test_assemblage_2Do1(unittest.Test Line 5184  class Test_assemblage_2Do1(unittest.Test
5184      B_test[1,0,0]=x[0]      B_test[1,0,0]=x[0]
5185      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5186      Y_test[1]=9+4*x[1]-12*x[0]      Y_test[1]=9+4*x[1]-12*x[0]
5187      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5188      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5189      y_test[1]=n[0]*((-9)*x[0]-4*x[0]*x[1]+6*x[0]**2)      y_test[1]=n[0]*((-9)*x[0]-4*x[0]*x[1]+6*x[0]**2)
5190      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5354  class Test_assemblage_2Do1(unittest.Test Line 5204  class Test_assemblage_2Do1(unittest.Test
5204      B_test[1,0,1]=x[0]      B_test[1,0,1]=x[0]
5205      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5206      Y_test[1]=(-5)-1*x[1]+10*x[0]      Y_test[1]=(-5)-1*x[1]+10*x[0]
5207      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5208      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5209      y_test[1]=n[0]*(5*x[0]+x[0]*x[1]-5*x[0]**2)      y_test[1]=n[0]*(5*x[0]+x[0]*x[1]-5*x[0]**2)
5210      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5375  class Test_assemblage_2Do1(unittest.Test Line 5224  class Test_assemblage_2Do1(unittest.Test
5224      B_test[1,0,2]=x[0]      B_test[1,0,2]=x[0]
5225      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5226      Y_test[1]=(-5)+9*x[1]+18*x[0]      Y_test[1]=(-5)+9*x[1]+18*x[0]
5227      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5228      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5229      y_test[1]=n[0]*(5*x[0]-9*x[0]*x[1]-9*x[0]**2)      y_test[1]=n[0]*(5*x[0]-9*x[0]*x[1]-9*x[0]**2)
5230      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5396  class Test_assemblage_2Do1(unittest.Test Line 5244  class Test_assemblage_2Do1(unittest.Test
5244      B_test[1,1,0]=x[1]      B_test[1,1,0]=x[1]
5245      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5246      Y_test[1]=1-14*x[1]-6*x[0]      Y_test[1]=1-14*x[1]-6*x[0]
5247      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5248      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5249      y_test[1]=n[1]*((-1)*x[1]+7*x[1]**2+6*x[0]*x[1])      y_test[1]=n[1]*((-1)*x[1]+7*x[1]**2+6*x[0]*x[1])
5250      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5417  class Test_assemblage_2Do1(unittest.Test Line 5264  class Test_assemblage_2Do1(unittest.Test
5264      B_test[1,1,1]=x[1]      B_test[1,1,1]=x[1]
5265      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5266      Y_test[1]=9-4*x[1]-1*x[0]      Y_test[1]=9-4*x[1]-1*x[0]
5267      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5268      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5269      y_test[1]=n[1]*((-9)*x[1]+2*x[1]**2+x[0]*x[1])      y_test[1]=n[1]*((-9)*x[1]+2*x[1]**2+x[0]*x[1])
5270      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5438  class Test_assemblage_2Do1(unittest.Test Line 5284  class Test_assemblage_2Do1(unittest.Test
5284      B_test[1,1,2]=x[1]      B_test[1,1,2]=x[1]
5285      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5286      Y_test[1]=(-7)-8*x[1]+7*x[0]      Y_test[1]=(-7)-8*x[1]+7*x[0]
5287      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5288      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5289      y_test[1]=n[1]*(7*x[1]+4*x[1]**2-7*x[0]*x[1])      y_test[1]=n[1]*(7*x[1]+4*x[1]**2-7*x[0]*x[1])
5290      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5459  class Test_assemblage_2Do1(unittest.Test Line 5304  class Test_assemblage_2Do1(unittest.Test
5304      B_test[2,0,0]=x[0]      B_test[2,0,0]=x[0]
5305      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5306      Y_test[2]=3+x[1]-2*x[0]      Y_test[2]=3+x[1]-2*x[0]
5307      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5308      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5309      y_test[2]=n[0]*((-3)*x[0]-1*x[0]*x[1]+x[0]**2)      y_test[2]=n[0]*((-3)*x[0]-1*x[0]*x[1]+x[0]**2)
5310      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5480  class Test_assemblage_2Do1(unittest.Test Line 5324  class Test_assemblage_2Do1(unittest.Test
5324      B_test[2,0,1]=x[0]      B_test[2,0,1]=x[0]
5325      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5326      Y_test[2]=(-8)-8*x[1]-6*x[0]      Y_test[2]=(-8)-8*x[1]-6*x[0]
5327      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5328      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5329      y_test[2]=n[0]*(8*x[0]+8*x[0]*x[1]+3*x[0]**2)      y_test[2]=n[0]*(8*x[0]+8*x[0]*x[1]+3*x[0]**2)
5330      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5501  class Test_assemblage_2Do1(unittest.Test Line 5344  class Test_assemblage_2Do1(unittest.Test
5344      B_test[2,0,2]=x[0]      B_test[2,0,2]=x[0]
5345      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5346      Y_test[2]=(-1)+2*x[1]-16*x[0]      Y_test[2]=(-1)+2*x[1]-16*x[0]
5347      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5348      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5349      y_test[2]=n[0]*(x[0]-2*x[0]*x[1]+8*x[0]**2)      y_test[2]=n[0]*(x[0]-2*x[0]*x[1]+8*x[0]**2)
5350      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5522  class Test_assemblage_2Do1(unittest.Test Line 5364  class Test_assemblage_2Do1(unittest.Test
5364      B_test[2,1,0]=x[1]      B_test[2,1,0]=x[1]
5365      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5366      Y_test[2]=(-8)-6*x[1]-2*x[0]      Y_test[2]=(-8)-6*x[1]-2*x[0]
5367      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5368      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5369      y_test[2]=n[1]*(8*x[1]+3*x[1]**2+2*x[0]*x[1])      y_test[2]=n[1]*(8*x[1]+3*x[1]**2+2*x[0]*x[1])
5370      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5543  class Test_assemblage_2Do1(unittest.Test Line 5384  class Test_assemblage_2Do1(unittest.Test
5384      B_test[2,1,1]=x[1]      B_test[2,1,1]=x[1]
5385      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5386      Y_test[2]=(-6)-14*x[1]+5*x[0]      Y_test[2]=(-6)-14*x[1]+5*x[0]
5387      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5388      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5389      y_test[2]=n[1]*(6*x[1]+7*x[1]**2-5*x[0]*x[1])      y_test[2]=n[1]*(6*x[1]+7*x[1]**2-5*x[0]*x[1])
5390      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 5564  class Test_assemblage_2Do1(unittest.Test Line 5404  class Test_assemblage_2Do1(unittest.Test
5404      B_test[2,1,2]=x[1]      B_test[2,1,2]=x[1]
5405      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
5406      Y_test[2]=5-2*x[1]+7*x[0]      Y_test[2]=5-2*x[1]+7*x[0]
5407      x_boundary=FunctionOnBoundary(self.domain).getX()      n=self.setNormal(FunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
5408      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),FunctionOnBoundary(self.domain))
5409      y_test[2]=n[1]*((-5)*x[1]+x[1]**2-7*x[0]*x[1])      y_test[2]=n[1]*((-5)*x[1]+x[1]**2-7*x[0]*x[1])
5410      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8029  class Test_assemblage_2Do1(unittest.Test Line 7868  class Test_assemblage_2Do1(unittest.Test
7868      A_test=Data(0.,(2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2),ReducedFunction(self.domain))
7869      A_test[0,0]=5      A_test[0,0]=5
7870      Y_test=0      Y_test=0
7871      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
7872      y_test=n[0]*(30)      y_test=n[0]*(30)
7873      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
7874      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8045  class Test_assemblage_2Do1(unittest.Test Line 7883  class Test_assemblage_2Do1(unittest.Test
7883      A_test=Data(0.,(2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2),ReducedFunction(self.domain))
7884      A_test[0,1]=6      A_test[0,1]=6
7885      Y_test=0      Y_test=0
7886      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
7887      y_test=n[0]*((-6))      y_test=n[0]*((-6))
7888      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
7889      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8061  class Test_assemblage_2Do1(unittest.Test Line 7898  class Test_assemblage_2Do1(unittest.Test
7898      A_test=Data(0.,(2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2),ReducedFunction(self.domain))
7899      A_test[1,0]=5      A_test[1,0]=5
7900      Y_test=0      Y_test=0
7901      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
7902      y_test=n[1]*(15)      y_test=n[1]*(15)
7903      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
7904      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8077  class Test_assemblage_2Do1(unittest.Test Line 7913  class Test_assemblage_2Do1(unittest.Test
7913      A_test=Data(0.,(2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2),ReducedFunction(self.domain))
7914      A_test[1,1]=2      A_test[1,1]=2
7915      Y_test=0      Y_test=0
7916      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
7917      y_test=n[1]*(14)      y_test=n[1]*(14)
7918      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
7919      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8093  class Test_assemblage_2Do1(unittest.Test Line 7928  class Test_assemblage_2Do1(unittest.Test
7928      B_test=Data(0.,(2,),ReducedFunction(self.domain))      B_test=Data(0.,(2,),ReducedFunction(self.domain))
7929      B_test[0]=1      B_test[0]=1
7930      Y_test=0      Y_test=0
7931      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
7932      y_test=n[0]*((-5))      y_test=n[0]*((-5))
7933      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
7934      pde.setValue(B_reduced=B_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(B_reduced=B_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8109  class Test_assemblage_2Do1(unittest.Test Line 7943  class Test_assemblage_2Do1(unittest.Test
7943      B_test=Data(0.,(2,),ReducedFunction(self.domain))      B_test=Data(0.,(2,),ReducedFunction(self.domain))
7944      B_test[1]=7      B_test[1]=7
7945      Y_test=0      Y_test=0
7946      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
7947      y_test=n[1]*((-49))      y_test=n[1]*((-49))
7948      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
7949      pde.setValue(B_reduced=B_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(B_reduced=B_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8175  class Test_assemblage_2Do1(unittest.Test Line 8008  class Test_assemblage_2Do1(unittest.Test
8008      A_test=Data(0.,(2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2),ReducedFunction(self.domain))
8009      A_test[0,0]=x[0]      A_test[0,0]=x[0]
8010      Y_test=1      Y_test=1
8011      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8012      y_test=n[0]*((-1)*x[0])      y_test=n[0]*((-1)*x[0])
8013      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
8014      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8191  class Test_assemblage_2Do1(unittest.Test Line 8023  class Test_assemblage_2Do1(unittest.Test
8023      A_test=Data(0.,(2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2),ReducedFunction(self.domain))
8024      A_test[0,1]=x[0]      A_test[0,1]=x[0]
8025      Y_test=7      Y_test=7
8026      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8027      y_test=n[0]*((-7)*x[0])      y_test=n[0]*((-7)*x[0])
8028      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
8029      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8207  class Test_assemblage_2Do1(unittest.Test Line 8038  class Test_assemblage_2Do1(unittest.Test
8038      A_test=Data(0.,(2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2),ReducedFunction(self.domain))
8039      A_test[1,0]=x[1]      A_test[1,0]=x[1]
8040      Y_test=1      Y_test=1
8041      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8042      y_test=n[1]*((-1)*x[1])      y_test=n[1]*((-1)*x[1])
8043      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
8044      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8223  class Test_assemblage_2Do1(unittest.Test Line 8053  class Test_assemblage_2Do1(unittest.Test
8053      A_test=Data(0.,(2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2),ReducedFunction(self.domain))
8054      A_test[1,1]=x[1]      A_test[1,1]=x[1]
8055      Y_test=(-8)      Y_test=(-8)
8056      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8057      y_test=n[1]*(8*x[1])      y_test=n[1]*(8*x[1])
8058      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
8059      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(A_reduced=A_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8239  class Test_assemblage_2Do1(unittest.Test Line 8068  class Test_assemblage_2Do1(unittest.Test
8068      B_test=Data(0.,(2,),ReducedFunction(self.domain))      B_test=Data(0.,(2,),ReducedFunction(self.domain))
8069      B_test[0]=x[0]      B_test[0]=x[0]
8070      Y_test=7      Y_test=7
8071      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8072      y_test=n[0]*((-7)*x[0])      y_test=n[0]*((-7)*x[0])
8073      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
8074      pde.setValue(B_reduced=B_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(B_reduced=B_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8255  class Test_assemblage_2Do1(unittest.Test Line 8083  class Test_assemblage_2Do1(unittest.Test
8083      B_test=Data(0.,(2,),ReducedFunction(self.domain))      B_test=Data(0.,(2,),ReducedFunction(self.domain))
8084      B_test[1]=x[1]      B_test[1]=x[1]
8085      Y_test=7      Y_test=7
8086      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8087      y_test=n[1]*((-7)*x[1])      y_test=n[1]*((-7)*x[1])
8088      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
8089      pde.setValue(B_reduced=B_test, Y_reduced=Y_test, y_reduced=y_test)      pde.setValue(B_reduced=B_test, Y_reduced=Y_test, y_reduced=y_test)
# Line 8491  class Test_assemblage_2Do1(unittest.Test Line 8318  class Test_assemblage_2Do1(unittest.Test
8318      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8319      A_test[0,0,0,0]=6      A_test[0,0,0,0]=6
8320      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8321      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8322      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8323      y_test[0]=n[0]*(48)      y_test[0]=n[0]*(48)
8324      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8510  class Test_assemblage_2Do1(unittest.Test Line 8336  class Test_assemblage_2Do1(unittest.Test
8336      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8337      A_test[0,0,0,1]=8      A_test[0,0,0,1]=8
8338      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8339      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8340      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8341      y_test[0]=n[0]*((-40))      y_test[0]=n[0]*((-40))
8342      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8529  class Test_assemblage_2Do1(unittest.Test Line 8354  class Test_assemblage_2Do1(unittest.Test
8354      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8355      A_test[0,0,1,0]=5      A_test[0,0,1,0]=5
8356      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8357      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8358      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8359      y_test[0]=n[0]*(20)      y_test[0]=n[0]*(20)
8360      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8548  class Test_assemblage_2Do1(unittest.Test Line 8372  class Test_assemblage_2Do1(unittest.Test
8372      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8373      A_test[0,0,1,1]=1      A_test[0,0,1,1]=1
8374      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8375      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8376      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8377      y_test[0]=n[0]*((-6))      y_test[0]=n[0]*((-6))
8378      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8567  class Test_assemblage_2Do1(unittest.Test Line 8390  class Test_assemblage_2Do1(unittest.Test
8390      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8391      A_test[0,1,0,0]=4      A_test[0,1,0,0]=4
8392      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8393      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8394      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8395      y_test[0]=n[1]*(28)      y_test[0]=n[1]*(28)
8396      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8586  class Test_assemblage_2Do1(unittest.Test Line 8408  class Test_assemblage_2Do1(unittest.Test
8408      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8409      A_test[0,1,0,1]=1      A_test[0,1,0,1]=1
8410      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8411      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8412      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8413      y_test[0]=n[1]*((-9))      y_test[0]=n[1]*((-9))
8414      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8605  class Test_assemblage_2Do1(unittest.Test Line 8426  class Test_assemblage_2Do1(unittest.Test
8426      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8427      A_test[0,1,1,0]=5      A_test[0,1,1,0]=5
8428      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8429      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8430      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8431      y_test[0]=n[1]*((-10))      y_test[0]=n[1]*((-10))
8432      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8624  class Test_assemblage_2Do1(unittest.Test Line 8444  class Test_assemblage_2Do1(unittest.Test
8444      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8445      A_test[0,1,1,1]=1      A_test[0,1,1,1]=1
8446      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8447      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8448      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8449      y_test[0]=n[1]*(3)      y_test[0]=n[1]*(3)
8450      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8643  class Test_assemblage_2Do1(unittest.Test Line 8462  class Test_assemblage_2Do1(unittest.Test
8462      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8463      A_test[1,0,0,0]=2      A_test[1,0,0,0]=2
8464      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8465      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8466      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8467      y_test[1]=n[0]*((-10))      y_test[1]=n[0]*((-10))
8468      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8662  class Test_assemblage_2Do1(unittest.Test Line 8480  class Test_assemblage_2Do1(unittest.Test
8480      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8481      A_test[1,0,0,1]=6      A_test[1,0,0,1]=6
8482      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8483      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8484      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8485      y_test[1]=n[0]*(36)      y_test[1]=n[0]*(36)
8486      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8681  class Test_assemblage_2Do1(unittest.Test Line 8498  class Test_assemblage_2Do1(unittest.Test
8498      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8499      A_test[1,0,1,0]=8      A_test[1,0,1,0]=8
8500      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8501      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8502      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8503      y_test[1]=n[0]*((-32))      y_test[1]=n[0]*((-32))
8504      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8700  class Test_assemblage_2Do1(unittest.Test Line 8516  class Test_assemblage_2Do1(unittest.Test
8516      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8517      A_test[1,0,1,1]=4      A_test[1,0,1,1]=4
8518      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8519      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8520      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8521      y_test[1]=n[0]*((-4))      y_test[1]=n[0]*((-4))
8522      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8719  class Test_assemblage_2Do1(unittest.Test Line 8534  class Test_assemblage_2Do1(unittest.Test
8534      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8535      A_test[1,1,0,0]=1      A_test[1,1,0,0]=1
8536      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8537      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8538      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8539      y_test[1]=n[1]*(5)      y_test[1]=n[1]*(5)
8540      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8738  class Test_assemblage_2Do1(unittest.Test Line 8552  class Test_assemblage_2Do1(unittest.Test
8552      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8553      A_test[1,1,0,1]=4      A_test[1,1,0,1]=4
8554      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8555      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8556      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8557      y_test[1]=n[1]*((-20))      y_test[1]=n[1]*((-20))
8558      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8757  class Test_assemblage_2Do1(unittest.Test Line 8570  class Test_assemblage_2Do1(unittest.Test
8570      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8571      A_test[1,1,1,0]=3      A_test[1,1,1,0]=3
8572      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8573      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8574      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8575      y_test[1]=n[1]*((-3))      y_test[1]=n[1]*((-3))
8576      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8776  class Test_assemblage_2Do1(unittest.Test Line 8588  class Test_assemblage_2Do1(unittest.Test
8588      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))      A_test=Data(0.,(2,2,2,2),ReducedFunction(self.domain))
8589      A_test[1,1,1,1]=7      A_test[1,1,1,1]=7
8590      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8591      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8592      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8593      y_test[1]=n[1]*(42)      y_test[1]=n[1]*(42)
8594      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8795  class Test_assemblage_2Do1(unittest.Test Line 8606  class Test_assemblage_2Do1(unittest.Test
8606      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))
8607      B_test[0,0,0]=8      B_test[0,0,0]=8
8608      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8609      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8610      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8611      y_test[0]=n[0]*(48)      y_test[0]=n[0]*(48)
8612      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8814  class Test_assemblage_2Do1(unittest.Test Line 8624  class Test_assemblage_2Do1(unittest.Test
8624      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))
8625      B_test[0,0,1]=7      B_test[0,0,1]=7
8626      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8627      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8628      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8629      y_test[0]=n[0]*((-35))      y_test[0]=n[0]*((-35))
8630      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8833  class Test_assemblage_2Do1(unittest.Test Line 8642  class Test_assemblage_2Do1(unittest.Test
8642      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))
8643      B_test[0,1,0]=6      B_test[0,1,0]=6
8644      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8645      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8646      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8647      y_test[0]=n[1]*((-54))      y_test[0]=n[1]*((-54))
8648      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8852  class Test_assemblage_2Do1(unittest.Test Line 8660  class Test_assemblage_2Do1(unittest.Test
8660      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))
8661      B_test[0,1,1]=6      B_test[0,1,1]=6
8662      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8663      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8664      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8665      y_test[0]=n[1]*(30)      y_test[0]=n[1]*(30)
8666      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8871  class Test_assemblage_2Do1(unittest.Test Line 8678  class Test_assemblage_2Do1(unittest.Test
8678      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))
8679      B_test[1,0,0]=2      B_test[1,0,0]=2
8680      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8681      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8682      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8683      y_test[1]=n[0]*((-12))      y_test[1]=n[0]*((-12))
8684      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8890  class Test_assemblage_2Do1(unittest.Test Line 8696  class Test_assemblage_2Do1(unittest.Test
8696      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))
8697      B_test[1,0,1]=3      B_test[1,0,1]=3
8698      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8699      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8700      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8701      y_test[1]=n[0]*((-21))      y_test[1]=n[0]*((-21))
8702      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8909  class Test_assemblage_2Do1(unittest.Test Line 8714  class Test_assemblage_2Do1(unittest.Test
8714      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))
8715      B_test[1,1,0]=4      B_test[1,1,0]=4
8716      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8717      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8718      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8719      y_test[1]=n[1]*((-32))      y_test[1]=n[1]*((-32))
8720      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 8928  class Test_assemblage_2Do1(unittest.Test Line 8732  class Test_assemblage_2Do1(unittest.Test
8732      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))      B_test=Data(0.,(2,2,2),ReducedFunction(self.domain))
8733      B_test[1,1,1]=4      B_test[1,1,1]=4
8734      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
8735      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
8736      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
8737      y_test[1]=n[1]*((-16))      y_test[1]=n[1]*((-16))
8738      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9204  class Test_assemblage_2Do1(unittest.Test Line 9007  class Test_assemblage_2Do1(unittest.Test
9007      A_test[0,0,0,0]=x[0]      A_test[0,0,0,0]=x[0]
9008      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9009      Y_test[0]=(-3)      Y_test[0]=(-3)
9010      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9011      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9012      y_test[0]=n[0]*(3*x[0])      y_test[0]=n[0]*(3*x[0])
9013      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9224  class Test_assemblage_2Do1(unittest.Test Line 9026  class Test_assemblage_2Do1(unittest.Test
9026      A_test[0,0,0,1]=x[0]      A_test[0,0,0,1]=x[0]
9027      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9028      Y_test[0]=(-7)      Y_test[0]=(-7)
9029      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9030      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9031      y_test[0]=n[0]*(7*x[0])      y_test[0]=n[0]*(7*x[0])
9032      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9244  class Test_assemblage_2Do1(unittest.Test Line 9045  class Test_assemblage_2Do1(unittest.Test
9045      A_test[0,0,1,0]=x[0]      A_test[0,0,1,0]=x[0]
9046      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9047      Y_test[0]=(-2)      Y_test[0]=(-2)
9048      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9049      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9050      y_test[0]=n[0]*(2*x[0])      y_test[0]=n[0]*(2*x[0])
9051      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9264  class Test_assemblage_2Do1(unittest.Test Line 9064  class Test_assemblage_2Do1(unittest.Test
9064      A_test[0,0,1,1]=x[0]      A_test[0,0,1,1]=x[0]
9065      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9066      Y_test[0]=6      Y_test[0]=6
9067      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9068      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9069      y_test[0]=n[0]*((-6)*x[0])      y_test[0]=n[0]*((-6)*x[0])
9070      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9284  class Test_assemblage_2Do1(unittest.Test Line 9083  class Test_assemblage_2Do1(unittest.Test
9083      A_test[0,1,0,0]=x[1]      A_test[0,1,0,0]=x[1]
9084      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9085      Y_test[0]=8      Y_test[0]=8
9086      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9087      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9088      y_test[0]=n[1]*((-8)*x[1])      y_test[0]=n[1]*((-8)*x[1])
9089      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9304  class Test_assemblage_2Do1(unittest.Test Line 9102  class Test_assemblage_2Do1(unittest.Test
9102      A_test[0,1,0,1]=x[1]      A_test[0,1,0,1]=x[1]
9103      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9104      Y_test[0]=1      Y_test[0]=1
9105      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9106      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9107      y_test[0]=n[1]*((-1)*x[1])      y_test[0]=n[1]*((-1)*x[1])
9108      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9324  class Test_assemblage_2Do1(unittest.Test Line 9121  class Test_assemblage_2Do1(unittest.Test
9121      A_test[0,1,1,0]=x[1]      A_test[0,1,1,0]=x[1]
9122      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9123      Y_test[0]=7      Y_test[0]=7
9124      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9125      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9126      y_test[0]=n[1]*((-7)*x[1])      y_test[0]=n[1]*((-7)*x[1])
9127      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9344  class Test_assemblage_2Do1(unittest.Test Line 9140  class Test_assemblage_2Do1(unittest.Test
9140      A_test[0,1,1,1]=x[1]      A_test[0,1,1,1]=x[1]
9141      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9142      Y_test[0]=2      Y_test[0]=2
9143      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9144      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9145      y_test[0]=n[1]*((-2)*x[1])      y_test[0]=n[1]*((-2)*x[1])
9146      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9364  class Test_assemblage_2Do1(unittest.Test Line 9159  class Test_assemblage_2Do1(unittest.Test
9159      A_test[1,0,0,0]=x[0]      A_test[1,0,0,0]=x[0]
9160      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9161      Y_test[1]=5      Y_test[1]=5
9162      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9163      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9164      y_test[1]=n[0]*((-5)*x[0])      y_test[1]=n[0]*((-5)*x[0])
9165      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9384  class Test_assemblage_2Do1(unittest.Test Line 9178  class Test_assemblage_2Do1(unittest.Test
9178      A_test[1,0,0,1]=x[0]      A_test[1,0,0,1]=x[0]
9179      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9180      Y_test[1]=(-7)      Y_test[1]=(-7)
9181      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9182      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9183      y_test[1]=n[0]*(7*x[0])      y_test[1]=n[0]*(7*x[0])
9184      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9404  class Test_assemblage_2Do1(unittest.Test Line 9197  class Test_assemblage_2Do1(unittest.Test
9197      A_test[1,0,1,0]=x[0]      A_test[1,0,1,0]=x[0]
9198      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9199      Y_test[1]=6      Y_test[1]=6
9200      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9201      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9202      y_test[1]=n[0]*((-6)*x[0])      y_test[1]=n[0]*((-6)*x[0])
9203      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9424  class Test_assemblage_2Do1(unittest.Test Line 9216  class Test_assemblage_2Do1(unittest.Test
9216      A_test[1,0,1,1]=x[0]      A_test[1,0,1,1]=x[0]
9217      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9218      Y_test[1]=(-8)      Y_test[1]=(-8)
9219      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9220      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9221      y_test[1]=n[0]*(8*x[0])      y_test[1]=n[0]*(8*x[0])
9222      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9444  class Test_assemblage_2Do1(unittest.Test Line 9235  class Test_assemblage_2Do1(unittest.Test
9235      A_test[1,1,0,0]=x[1]      A_test[1,1,0,0]=x[1]
9236      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9237      Y_test[1]=1      Y_test[1]=1
9238      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9239      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9240      y_test[1]=n[1]*((-1)*x[1])      y_test[1]=n[1]*((-1)*x[1])
9241      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9464  class Test_assemblage_2Do1(unittest.Test Line 9254  class Test_assemblage_2Do1(unittest.Test
9254      A_test[1,1,0,1]=x[1]      A_test[1,1,0,1]=x[1]
9255      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9256      Y_test[1]=2      Y_test[1]=2
9257      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9258      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9259      y_test[1]=n[1]*((-2)*x[1])      y_test[1]=n[1]*((-2)*x[1])
9260      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9484  class Test_assemblage_2Do1(unittest.Test Line 9273  class Test_assemblage_2Do1(unittest.Test
9273      A_test[1,1,1,0]=x[1]      A_test[1,1,1,0]=x[1]
9274      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9275      Y_test[1]=9      Y_test[1]=9
9276      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9277      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9278      y_test[1]=n[1]*((-9)*x[1])      y_test[1]=n[1]*((-9)*x[1])
9279      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9504  class Test_assemblage_2Do1(unittest.Test Line 9292  class Test_assemblage_2Do1(unittest.Test
9292      A_test[1,1,1,1]=x[1]      A_test[1,1,1,1]=x[1]
9293      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9294      Y_test[1]=4      Y_test[1]=4
9295      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9296      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9297      y_test[1]=n[1]*((-4)*x[1])      y_test[1]=n[1]*((-4)*x[1])
9298      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9524  class Test_assemblage_2Do1(unittest.Test Line 9311  class Test_assemblage_2Do1(unittest.Test
9311      B_test[0,0,0]=x[0]      B_test[0,0,0]=x[0]
9312      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9313      Y_test[0]=(-1)      Y_test[0]=(-1)
9314      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9315      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9316      y_test[0]=n[0]*(x[0])      y_test[0]=n[0]*(x[0])
9317      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9544  class Test_assemblage_2Do1(unittest.Test Line 9330  class Test_assemblage_2Do1(unittest.Test
9330      B_test[0,0,1]=x[0]      B_test[0,0,1]=x[0]
9331      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9332      Y_test[0]=6      Y_test[0]=6
9333      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9334      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9335      y_test[0]=n[0]*((-6)*x[0])      y_test[0]=n[0]*((-6)*x[0])
9336      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9564  class Test_assemblage_2Do1(unittest.Test Line 9349  class Test_assemblage_2Do1(unittest.Test
9349      B_test[0,1,0]=x[1]      B_test[0,1,0]=x[1]
9350      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9351      Y_test[0]=5      Y_test[0]=5
9352      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9353      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9354      y_test[0]=n[1]*((-5)*x[1])      y_test[0]=n[1]*((-5)*x[1])
9355      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9584  class Test_assemblage_2Do1(unittest.Test Line 9368  class Test_assemblage_2Do1(unittest.Test
9368      B_test[0,1,1]=x[1]      B_test[0,1,1]=x[1]
9369      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9370      Y_test[0]=(-3)      Y_test[0]=(-3)
9371      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9372      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9373      y_test[0]=n[1]*(3*x[1])      y_test[0]=n[1]*(3*x[1])
9374      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9604  class Test_assemblage_2Do1(unittest.Test Line 9387  class Test_assemblage_2Do1(unittest.Test
9387      B_test[1,0,0]=x[0]      B_test[1,0,0]=x[0]
9388      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9389      Y_test[1]=(-8)      Y_test[1]=(-8)
9390      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9391      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9392      y_test[1]=n[0]*(8*x[0])      y_test[1]=n[0]*(8*x[0])
9393      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9624  class Test_assemblage_2Do1(unittest.Test Line 9406  class Test_assemblage_2Do1(unittest.Test
9406      B_test[1,0,1]=x[0]      B_test[1,0,1]=x[0]
9407      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9408      Y_test[1]=3      Y_test[1]=3
9409      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9410      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9411      y_test[1]=n[0]*((-3)*x[0])      y_test[1]=n[0]*((-3)*x[0])
9412      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9644  class Test_assemblage_2Do1(unittest.Test Line 9425  class Test_assemblage_2Do1(unittest.Test
9425      B_test[1,1,0]=x[1]      B_test[1,1,0]=x[1]
9426      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9427      Y_test[1]=(-1)      Y_test[1]=(-1)
9428      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9429      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9430      y_test[1]=n[1]*(x[1])      y_test[1]=n[1]*(x[1])
9431      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 9664  class Test_assemblage_2Do1(unittest.Test Line 9444  class Test_assemblage_2Do1(unittest.Test
9444      B_test[1,1,1]=x[1]      B_test[1,1,1]=x[1]
9445      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))      Y_test=Data(0.,(2,),ContinuousFunction(self.domain))
9446      Y_test[1]=4      Y_test[1]=4
9447      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
9448      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(2,),ReducedFunctionOnBoundary(self.domain))
9449      y_test[1]=n[1]*((-4)*x[1])      y_test[1]=n[1]*((-4)*x[1])
9450      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10708  class Test_assemblage_2Do1(unittest.Test Line 10487  class Test_assemblage_2Do1(unittest.Test
10487      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10488      A_test[0,0,0,0]=7      A_test[0,0,0,0]=7
10489      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10490      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10491      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10492      y_test[0]=n[0]*(21)      y_test[0]=n[0]*(21)
10493      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10728  class Test_assemblage_2Do1(unittest.Test Line 10506  class Test_assemblage_2Do1(unittest.Test
10506      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10507      A_test[0,0,0,1]=8      A_test[0,0,0,1]=8
10508      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10509      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10510      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10511      y_test[0]=n[0]*((-56))      y_test[0]=n[0]*((-56))
10512      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10748  class Test_assemblage_2Do1(unittest.Test Line 10525  class Test_assemblage_2Do1(unittest.Test
10525      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10526      A_test[0,0,1,0]=3      A_test[0,0,1,0]=3
10527      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10528      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10529      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10530      y_test[0]=n[0]*(24)      y_test[0]=n[0]*(24)
10531      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10768  class Test_assemblage_2Do1(unittest.Test Line 10544  class Test_assemblage_2Do1(unittest.Test
10544      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10545      A_test[0,0,1,1]=7      A_test[0,0,1,1]=7
10546      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10547      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10548      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10549      y_test[0]=n[0]*(7)      y_test[0]=n[0]*(7)
10550      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10788  class Test_assemblage_2Do1(unittest.Test Line 10563  class Test_assemblage_2Do1(unittest.Test
10563      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10564      A_test[0,0,2,0]=3      A_test[0,0,2,0]=3
10565      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10566      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10567      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10568      y_test[0]=n[0]*(3)      y_test[0]=n[0]*(3)
10569      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10808  class Test_assemblage_2Do1(unittest.Test Line 10582  class Test_assemblage_2Do1(unittest.Test
10582      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10583      A_test[0,0,2,1]=7      A_test[0,0,2,1]=7
10584      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10585      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10586      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10587      y_test[0]=n[0]*(49)      y_test[0]=n[0]*(49)
10588      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10828  class Test_assemblage_2Do1(unittest.Test Line 10601  class Test_assemblage_2Do1(unittest.Test
10601      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10602      A_test[0,1,0,0]=2      A_test[0,1,0,0]=2
10603      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10604      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10605      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10606      y_test[0]=n[1]*((-16))      y_test[0]=n[1]*((-16))
10607      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10848  class Test_assemblage_2Do1(unittest.Test Line 10620  class Test_assemblage_2Do1(unittest.Test
10620      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10621      A_test[0,1,0,1]=3      A_test[0,1,0,1]=3
10622      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10623      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10624      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10625      y_test[0]=n[1]*(9)      y_test[0]=n[1]*(9)
10626      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10868  class Test_assemblage_2Do1(unittest.Test Line 10639  class Test_assemblage_2Do1(unittest.Test
10639      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10640      A_test[0,1,1,0]=6      A_test[0,1,1,0]=6
10641      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10642      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10643      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10644      y_test[0]=n[1]*((-12))      y_test[0]=n[1]*((-12))
10645      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10888  class Test_assemblage_2Do1(unittest.Test Line 10658  class Test_assemblage_2Do1(unittest.Test
10658      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10659      A_test[0,1,1,1]=8      A_test[0,1,1,1]=8
10660      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10661      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10662      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10663      y_test[0]=n[1]*(64)      y_test[0]=n[1]*(64)
10664      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10908  class Test_assemblage_2Do1(unittest.Test Line 10677  class Test_assemblage_2Do1(unittest.Test
10677      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10678      A_test[0,1,2,0]=6      A_test[0,1,2,0]=6
10679      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10680      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10681      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10682      y_test[0]=n[1]*((-12))      y_test[0]=n[1]*((-12))
10683      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10928  class Test_assemblage_2Do1(unittest.Test Line 10696  class Test_assemblage_2Do1(unittest.Test
10696      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10697      A_test[0,1,2,1]=5      A_test[0,1,2,1]=5
10698      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10699      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10700      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10701      y_test[0]=n[1]*((-20))      y_test[0]=n[1]*((-20))
10702      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10948  class Test_assemblage_2Do1(unittest.Test Line 10715  class Test_assemblage_2Do1(unittest.Test
10715      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10716      A_test[1,0,0,0]=1      A_test[1,0,0,0]=1
10717      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10718      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10719      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10720      y_test[1]=n[0]*(4)      y_test[1]=n[0]*(4)
10721      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10968  class Test_assemblage_2Do1(unittest.Test Line 10734  class Test_assemblage_2Do1(unittest.Test
10734      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10735      A_test[1,0,0,1]=8      A_test[1,0,0,1]=8
10736      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10737      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10738      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10739      y_test[1]=n[0]*(64)      y_test[1]=n[0]*(64)
10740      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 10988  class Test_assemblage_2Do1(unittest.Test Line 10753  class Test_assemblage_2Do1(unittest.Test
10753      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10754      A_test[1,0,1,0]=5      A_test[1,0,1,0]=5
10755      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10756      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10757      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10758      y_test[1]=n[0]*((-45))      y_test[1]=n[0]*((-45))
10759      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11008  class Test_assemblage_2Do1(unittest.Test Line 10772  class Test_assemblage_2Do1(unittest.Test
10772      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10773      A_test[1,0,1,1]=1      A_test[1,0,1,1]=1
10774      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10775      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10776      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10777      y_test[1]=n[0]*(2)      y_test[1]=n[0]*(2)
10778      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11028  class Test_assemblage_2Do1(unittest.Test Line 10791  class Test_assemblage_2Do1(unittest.Test
10791      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10792      A_test[1,0,2,0]=7      A_test[1,0,2,0]=7
10793      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10794      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10795      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10796      y_test[1]=n[0]*(14)      y_test[1]=n[0]*(14)
10797      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11048  class Test_assemblage_2Do1(unittest.Test Line 10810  class Test_assemblage_2Do1(unittest.Test
10810      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10811      A_test[1,0,2,1]=8      A_test[1,0,2,1]=8
10812      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10813      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10814      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10815      y_test[1]=n[0]*(56)      y_test[1]=n[0]*(56)
10816      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11068  class Test_assemblage_2Do1(unittest.Test Line 10829  class Test_assemblage_2Do1(unittest.Test
10829      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10830      A_test[1,1,0,0]=6      A_test[1,1,0,0]=6
10831      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10832      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10833      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10834      y_test[1]=n[1]*(12)      y_test[1]=n[1]*(12)
10835      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11088  class Test_assemblage_2Do1(unittest.Test Line 10848  class Test_assemblage_2Do1(unittest.Test
10848      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10849      A_test[1,1,0,1]=3      A_test[1,1,0,1]=3
10850      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10851      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10852      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10853      y_test[1]=n[1]*((-3))      y_test[1]=n[1]*((-3))
10854      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11108  class Test_assemblage_2Do1(unittest.Test Line 10867  class Test_assemblage_2Do1(unittest.Test
10867      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10868      A_test[1,1,1,0]=6      A_test[1,1,1,0]=6
10869      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10870      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10871      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10872      y_test[1]=n[1]*(30)      y_test[1]=n[1]*(30)
10873      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11128  class Test_assemblage_2Do1(unittest.Test Line 10886  class Test_assemblage_2Do1(unittest.Test
10886      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10887      A_test[1,1,1,1]=1      A_test[1,1,1,1]=1
10888      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10889      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10890      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10891      y_test[1]=n[1]*(3)      y_test[1]=n[1]*(3)
10892      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11148  class Test_assemblage_2Do1(unittest.Test Line 10905  class Test_assemblage_2Do1(unittest.Test
10905      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10906      A_test[1,1,2,0]=2      A_test[1,1,2,0]=2
10907      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10908      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10909      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10910      y_test[1]=n[1]*(16)      y_test[1]=n[1]*(16)
10911      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11168  class Test_assemblage_2Do1(unittest.Test Line 10924  class Test_assemblage_2Do1(unittest.Test
10924      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10925      A_test[1,1,2,1]=5      A_test[1,1,2,1]=5
10926      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10927      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10928      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10929      y_test[1]=n[1]*(30)      y_test[1]=n[1]*(30)
10930      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11188  class Test_assemblage_2Do1(unittest.Test Line 10943  class Test_assemblage_2Do1(unittest.Test
10943      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10944      A_test[2,0,0,0]=3      A_test[2,0,0,0]=3
10945      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10946      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10947      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10948      y_test[2]=n[0]*(21)      y_test[2]=n[0]*(21)
10949      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11208  class Test_assemblage_2Do1(unittest.Test Line 10962  class Test_assemblage_2Do1(unittest.Test
10962      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10963      A_test[2,0,0,1]=7      A_test[2,0,0,1]=7
10964      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10965      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10966      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10967      y_test[2]=n[0]*(14)      y_test[2]=n[0]*(14)
10968      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11228  class Test_assemblage_2Do1(unittest.Test Line 10981  class Test_assemblage_2Do1(unittest.Test
10981      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
10982      A_test[2,0,1,0]=3      A_test[2,0,1,0]=3
10983      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
10984      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
10985      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
10986      y_test[2]=n[0]*((-9))      y_test[2]=n[0]*((-9))
10987      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11248  class Test_assemblage_2Do1(unittest.Test Line 11000  class Test_assemblage_2Do1(unittest.Test
11000      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11001      A_test[2,0,1,1]=1      A_test[2,0,1,1]=1
11002      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11003      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11004      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11005      y_test[2]=n[0]*((-3))      y_test[2]=n[0]*((-3))
11006      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11268  class Test_assemblage_2Do1(unittest.Test Line 11019  class Test_assemblage_2Do1(unittest.Test
11019      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11020      A_test[2,0,2,0]=5      A_test[2,0,2,0]=5
11021      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11022      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11023      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11024      y_test[2]=n[0]*(20)      y_test[2]=n[0]*(20)
11025      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11288  class Test_assemblage_2Do1(unittest.Test Line 11038  class Test_assemblage_2Do1(unittest.Test
11038      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11039      A_test[2,0,2,1]=3      A_test[2,0,2,1]=3
11040      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11041      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11042      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11043      y_test[2]=n[0]*(21)      y_test[2]=n[0]*(21)
11044      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11308  class Test_assemblage_2Do1(unittest.Test Line 11057  class Test_assemblage_2Do1(unittest.Test
11057      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11058      A_test[2,1,0,0]=6      A_test[2,1,0,0]=6
11059      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11060      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11061      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11062      y_test[2]=n[1]*(18)      y_test[2]=n[1]*(18)
11063      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11328  class Test_assemblage_2Do1(unittest.Test Line 11076  class Test_assemblage_2Do1(unittest.Test
11076      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11077      A_test[2,1,0,1]=2      A_test[2,1,0,1]=2
11078      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11079      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11080      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11081      y_test[2]=n[1]*((-10))      y_test[2]=n[1]*((-10))
11082      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11348  class Test_assemblage_2Do1(unittest.Test Line 11095  class Test_assemblage_2Do1(unittest.Test
11095      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11096      A_test[2,1,1,0]=4      A_test[2,1,1,0]=4
11097      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11098      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11099      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11100      y_test[2]=n[1]*((-32))      y_test[2]=n[1]*((-32))
11101      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11368  class Test_assemblage_2Do1(unittest.Test Line 11114  class Test_assemblage_2Do1(unittest.Test
11114      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11115      A_test[2,1,1,1]=7      A_test[2,1,1,1]=7
11116      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11117      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11118      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11119      y_test[2]=n[1]*((-35))      y_test[2]=n[1]*((-35))
11120      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11388  class Test_assemblage_2Do1(unittest.Test Line 11133  class Test_assemblage_2Do1(unittest.Test
11133      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11134      A_test[2,1,2,0]=5      A_test[2,1,2,0]=5
11135      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11136      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11137      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11138      y_test[2]=n[1]*(5)      y_test[2]=n[1]*(5)
11139      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11408  class Test_assemblage_2Do1(unittest.Test Line 11152  class Test_assemblage_2Do1(unittest.Test
11152      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))      A_test=Data(0.,(3,2,3,2),ReducedFunction(self.domain))
11153      A_test[2,1,2,1]=4      A_test[2,1,2,1]=4
11154      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11155      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11156      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11157      y_test[2]=n[1]*(16)      y_test[2]=n[1]*(16)
11158      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11428  class Test_assemblage_2Do1(unittest.Test Line 11171  class Test_assemblage_2Do1(unittest.Test
11171      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11172      B_test[0,0,0]=5      B_test[0,0,0]=5
11173      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11174      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11175      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11176      y_test[0]=n[0]*((-35))      y_test[0]=n[0]*((-35))
11177      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11448  class Test_assemblage_2Do1(unittest.Test Line 11190  class Test_assemblage_2Do1(unittest.Test
11190      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11191      B_test[0,0,1]=7      B_test[0,0,1]=7
11192      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11193      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11194      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11195      y_test[0]=n[0]*((-56))      y_test[0]=n[0]*((-56))
11196      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11468  class Test_assemblage_2Do1(unittest.Test Line 11209  class Test_assemblage_2Do1(unittest.Test
11209      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11210      B_test[0,0,2]=3      B_test[0,0,2]=3
11211      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11212      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11213      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11214      y_test[0]=n[0]*((-3))      y_test[0]=n[0]*((-3))
11215      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11488  class Test_assemblage_2Do1(unittest.Test Line 11228  class Test_assemblage_2Do1(unittest.Test
11228      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11229      B_test[0,1,0]=6      B_test[0,1,0]=6
11230      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11231      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11232      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11233      y_test[0]=n[1]*(24)      y_test[0]=n[1]*(24)
11234      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11508  class Test_assemblage_2Do1(unittest.Test Line 11247  class Test_assemblage_2Do1(unittest.Test
11247      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11248      B_test[0,1,1]=8      B_test[0,1,1]=8
11249      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11250      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11251      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11252      y_test[0]=n[1]*(64)      y_test[0]=n[1]*(64)
11253      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11528  class Test_assemblage_2Do1(unittest.Test Line 11266  class Test_assemblage_2Do1(unittest.Test
11266      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11267      B_test[0,1,2]=1      B_test[0,1,2]=1
11268      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11269      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11270      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11271      y_test[0]=n[1]*((-2))      y_test[0]=n[1]*((-2))
11272      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11548  class Test_assemblage_2Do1(unittest.Test Line 11285  class Test_assemblage_2Do1(unittest.Test
11285      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11286      B_test[1,0,0]=6      B_test[1,0,0]=6
11287      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11288      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11289      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11290      y_test[1]=n[0]*(36)      y_test[1]=n[0]*(36)
11291      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11568  class Test_assemblage_2Do1(unittest.Test Line 11304  class Test_assemblage_2Do1(unittest.Test
11304      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11305      B_test[1,0,1]=6      B_test[1,0,1]=6
11306      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11307      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11308      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11309      y_test[1]=n[0]*(30)      y_test[1]=n[0]*(30)
11310      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11588  class Test_assemblage_2Do1(unittest.Test Line 11323  class Test_assemblage_2Do1(unittest.Test
11323      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11324      B_test[1,0,2]=3      B_test[1,0,2]=3
11325      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11326      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11327      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11328      y_test[1]=n[0]*(12)      y_test[1]=n[0]*(12)
11329      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11608  class Test_assemblage_2Do1(unittest.Test Line 11342  class Test_assemblage_2Do1(unittest.Test
11342      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11343      B_test[1,1,0]=6      B_test[1,1,0]=6
11344      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11345      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11346      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11347      y_test[1]=n[1]*((-12))      y_test[1]=n[1]*((-12))
11348      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11628  class Test_assemblage_2Do1(unittest.Test Line 11361  class Test_assemblage_2Do1(unittest.Test
11361      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11362      B_test[1,1,1]=6      B_test[1,1,1]=6
11363      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11364      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11365      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11366      y_test[1]=n[1]*(48)      y_test[1]=n[1]*(48)
11367      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11648  class Test_assemblage_2Do1(unittest.Test Line 11380  class Test_assemblage_2Do1(unittest.Test
11380      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11381      B_test[1,1,2]=2      B_test[1,1,2]=2
11382      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11383      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11384      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11385      y_test[1]=n[1]*(10)      y_test[1]=n[1]*(10)
11386      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11668  class Test_assemblage_2Do1(unittest.Test Line 11399  class Test_assemblage_2Do1(unittest.Test
11399      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11400      B_test[2,0,0]=4      B_test[2,0,0]=4
11401      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11402      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11403      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11404      y_test[2]=n[0]*((-12))      y_test[2]=n[0]*((-12))
11405      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11688  class Test_assemblage_2Do1(unittest.Test Line 11418  class Test_assemblage_2Do1(unittest.Test
11418      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11419      B_test[2,0,1]=7      B_test[2,0,1]=7
11420      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11421      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11422      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11423      y_test[2]=n[0]*(14)      y_test[2]=n[0]*(14)
11424      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11708  class Test_assemblage_2Do1(unittest.Test Line 11437  class Test_assemblage_2Do1(unittest.Test
11437      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11438      B_test[2,0,2]=6      B_test[2,0,2]=6
11439      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11440      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11441      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11442      y_test[2]=n[0]*((-30))      y_test[2]=n[0]*((-30))
11443      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11728  class Test_assemblage_2Do1(unittest.Test Line 11456  class Test_assemblage_2Do1(unittest.Test
11456      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11457      B_test[2,1,0]=8      B_test[2,1,0]=8
11458      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11459      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11460      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11461      y_test[2]=n[1]*(48)      y_test[2]=n[1]*(48)
11462      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11748  class Test_assemblage_2Do1(unittest.Test Line 11475  class Test_assemblage_2Do1(unittest.Test
11475      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11476      B_test[2,1,1]=3      B_test[2,1,1]=3
11477      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11478      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11479      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11480      y_test[2]=n[1]*(18)      y_test[2]=n[1]*(18)
11481      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 11768  class Test_assemblage_2Do1(unittest.Test Line 11494  class Test_assemblage_2Do1(unittest.Test
11494      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))      B_test=Data(0.,(3,2,3),ReducedFunction(self.domain))
11495      B_test[2,1,2]=6      B_test[2,1,2]=6
11496      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
11497      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
11498      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
11499      y_test[2]=n[1]*((-42))      y_test[2]=n[1]*((-42))
11500      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12401  class Test_assemblage_2Do1(unittest.Test Line 12126  class Test_assemblage_2Do1(unittest.Test
12126      A_test[0,0,0,0]=x[0]      A_test[0,0,0,0]=x[0]
12127      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12128      Y_test[0]=(-4)      Y_test[0]=(-4)
12129      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12130      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12131      y_test[0]=n[0]*(4*x[0])      y_test[0]=n[0]*(4*x[0])
12132      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12422  class Test_assemblage_2Do1(unittest.Test Line 12146  class Test_assemblage_2Do1(unittest.Test
12146      A_test[0,0,0,1]=x[0]      A_test[0,0,0,1]=x[0]
12147      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12148      Y_test[0]=(-7)      Y_test[0]=(-7)
12149      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12150      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12151      y_test[0]=n[0]*(7*x[0])      y_test[0]=n[0]*(7*x[0])
12152      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12443  class Test_assemblage_2Do1(unittest.Test Line 12166  class Test_assemblage_2Do1(unittest.Test
12166      A_test[0,0,1,0]=x[0]      A_test[0,0,1,0]=x[0]
12167      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12168      Y_test[0]=(-7)      Y_test[0]=(-7)
12169      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12170      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12171      y_test[0]=n[0]*(7*x[0])      y_test[0]=n[0]*(7*x[0])
12172      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12464  class Test_assemblage_2Do1(unittest.Test Line 12186  class Test_assemblage_2Do1(unittest.Test
12186      A_test[0,0,1,1]=x[0]      A_test[0,0,1,1]=x[0]
12187      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12188      Y_test[0]=(-2)      Y_test[0]=(-2)
12189      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12190      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12191      y_test[0]=n[0]*(2*x[0])      y_test[0]=n[0]*(2*x[0])
12192      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12485  class Test_assemblage_2Do1(unittest.Test Line 12206  class Test_assemblage_2Do1(unittest.Test
12206      A_test[0,0,2,0]=x[0]      A_test[0,0,2,0]=x[0]
12207      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12208      Y_test[0]=(-6)      Y_test[0]=(-6)
12209      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12210      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12211      y_test[0]=n[0]*(6*x[0])      y_test[0]=n[0]*(6*x[0])
12212      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12506  class Test_assemblage_2Do1(unittest.Test Line 12226  class Test_assemblage_2Do1(unittest.Test
12226      A_test[0,0,2,1]=x[0]      A_test[0,0,2,1]=x[0]
12227      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12228      Y_test[0]=(-6)      Y_test[0]=(-6)
12229      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12230      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12231      y_test[0]=n[0]*(6*x[0])      y_test[0]=n[0]*(6*x[0])
12232      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12527  class Test_assemblage_2Do1(unittest.Test Line 12246  class Test_assemblage_2Do1(unittest.Test
12246      A_test[0,1,0,0]=x[1]      A_test[0,1,0,0]=x[1]
12247      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12248      Y_test[0]=(-5)      Y_test[0]=(-5)
12249      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12250      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12251      y_test[0]=n[1]*(5*x[1])      y_test[0]=n[1]*(5*x[1])
12252      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12548  class Test_assemblage_2Do1(unittest.Test Line 12266  class Test_assemblage_2Do1(unittest.Test
12266      A_test[0,1,0,1]=x[1]      A_test[0,1,0,1]=x[1]
12267      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12268      Y_test[0]=3      Y_test[0]=3
12269      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12270      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12271      y_test[0]=n[1]*((-3)*x[1])      y_test[0]=n[1]*((-3)*x[1])
12272      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12569  class Test_assemblage_2Do1(unittest.Test Line 12286  class Test_assemblage_2Do1(unittest.Test
12286      A_test[0,1,1,0]=x[1]      A_test[0,1,1,0]=x[1]
12287      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12288      Y_test[0]=(-1)      Y_test[0]=(-1)
12289      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12290      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12291      y_test[0]=n[1]*(x[1])      y_test[0]=n[1]*(x[1])
12292      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12590  class Test_assemblage_2Do1(unittest.Test Line 12306  class Test_assemblage_2Do1(unittest.Test
12306      A_test[0,1,1,1]=x[1]      A_test[0,1,1,1]=x[1]
12307      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12308      Y_test[0]=9      Y_test[0]=9
12309      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12310      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12311      y_test[0]=n[1]*((-9)*x[1])      y_test[0]=n[1]*((-9)*x[1])
12312      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12611  class Test_assemblage_2Do1(unittest.Test Line 12326  class Test_assemblage_2Do1(unittest.Test
12326      A_test[0,1,2,0]=x[1]      A_test[0,1,2,0]=x[1]
12327      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12328      Y_test[0]=6      Y_test[0]=6
12329      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12330      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12331      y_test[0]=n[1]*((-6)*x[1])      y_test[0]=n[1]*((-6)*x[1])
12332      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12632  class Test_assemblage_2Do1(unittest.Test Line 12346  class Test_assemblage_2Do1(unittest.Test
12346      A_test[0,1,2,1]=x[1]      A_test[0,1,2,1]=x[1]
12347      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12348      Y_test[0]=4      Y_test[0]=4
12349      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12350      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12351      y_test[0]=n[1]*((-4)*x[1])      y_test[0]=n[1]*((-4)*x[1])
12352      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12653  class Test_assemblage_2Do1(unittest.Test Line 12366  class Test_assemblage_2Do1(unittest.Test
12366      A_test[1,0,0,0]=x[0]      A_test[1,0,0,0]=x[0]
12367      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12368      Y_test[1]=4      Y_test[1]=4
12369      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12370      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12371      y_test[1]=n[0]*((-4)*x[0])      y_test[1]=n[0]*((-4)*x[0])
12372      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12674  class Test_assemblage_2Do1(unittest.Test Line 12386  class Test_assemblage_2Do1(unittest.Test
12386      A_test[1,0,0,1]=x[0]      A_test[1,0,0,1]=x[0]
12387      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12388      Y_test[1]=(-6)      Y_test[1]=(-6)
12389      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12390      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12391      y_test[1]=n[0]*(6*x[0])      y_test[1]=n[0]*(6*x[0])
12392      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12695  class Test_assemblage_2Do1(unittest.Test Line 12406  class Test_assemblage_2Do1(unittest.Test
12406      A_test[1,0,1,0]=x[0]      A_test[1,0,1,0]=x[0]
12407      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12408      Y_test[1]=(-3)      Y_test[1]=(-3)
12409      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12410      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12411      y_test[1]=n[0]*(3*x[0])      y_test[1]=n[0]*(3*x[0])
12412      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12716  class Test_assemblage_2Do1(unittest.Test Line 12426  class Test_assemblage_2Do1(unittest.Test
12426      A_test[1,0,1,1]=x[0]      A_test[1,0,1,1]=x[0]
12427      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12428      Y_test[1]=(-8)      Y_test[1]=(-8)
12429      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12430      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12431      y_test[1]=n[0]*(8*x[0])      y_test[1]=n[0]*(8*x[0])
12432      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
# Line 12737  class Test_assemblage_2Do1(unittest.Test Line 12446  class Test_assemblage_2Do1(unittest.Test
12446      A_test[1,0,2,0]=x[0]      A_test[1,0,2,0]=x[0]
12447      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))      Y_test=Data(0.,(3,),ContinuousFunction(self.domain))
12448      Y_test[1]=(-2)      Y_test[1]=(-2)
12449      x_boundary=ReducedFunctionOnBoundary(self.domain).getX()      n=self.setNormal(ReducedFunctionOnBoundary(self.domain))
     n=whereZero(x_boundary[0]   ,self.ABS_TOL)*numarray.array([-1., 0.])+whereZero(x_boundary[0]-1.,self.ABS_TOL)*numarray.array([ 1., 0.])+whereZero(x_boundary[1]   ,self.ABS_TOL)*numarray.array([ 0.,-1.])+whereZero(x_boundary[1]-1.,self.ABS_TOL)*numarray.array([ 0., 1.])  
12450      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))      y_test=Data(0.,(3,),ReducedFunctionOnBoundary(self.domain))
12451      y_test[1]=n[0]*(2*x[0])      y_test[1]=n[0]*(2*x[0])
12452      pde=LinearPDE(self.domain)      pde=LinearPDE(self.domain)
#