@@ -122,7 +122,7 @@ def test_stencil_matrix_3d_serial_init(dtype, n1, n2, n3, p1, p2, p3, s1, s2, s3
122122
123123 # Create a vector space V and a matrix M from V to V
124124 V = StencilVectorSpace (cart , dtype = dtype )
125- M = StencilMatrix (V , V )
125+ M = StencilMatrix (V , V , precompiled = True )
126126
127127 # Check properties of this matrix
128128 assert M .domain == V
@@ -152,7 +152,7 @@ def test_stencil_matrix_2d_copy(dtype, n1, n2, p1, p2,s1,s2, P1=True, P2=False):
152152
153153 # Create a vector space V and a matrix M from V to V
154154 V = StencilVectorSpace (cart , dtype = dtype )
155- M = StencilMatrix (V , V )
155+ M = StencilMatrix (V , V , precompiled = True )
156156
157157 # Take random data, but determinize it
158158 np .random .seed (2 )
@@ -170,7 +170,7 @@ def test_stencil_matrix_2d_copy(dtype, n1, n2, p1, p2,s1,s2, P1=True, P2=False):
170170 assert M1 .codomain == V
171171 assert M1 .dtype == dtype
172172 assert M1 .pads == (p1 , p2 )
173- assert M1 .backend == None
173+ assert M1 .backend == PSYDAC_BACKEND_PYTHON
174174 assert M1 ._data .shape == (n1 + 2 * p1 * s1 , n2 + 2 * p2 * s2 , 1 + 2 * p1 , 1 + 2 * p2 )
175175 assert M1 .shape == (n1 * n2 , n1 * n2 )
176176 assert np .array_equal (M1 ._data , M ._data )
@@ -194,7 +194,7 @@ def test_stencil_matrix_2d_basic_ops(dtype, n1, n2, p1, p2, s1, s2, P1=True, P2=
194194
195195 # Create a vector space V and a matrix M from V to V
196196 V = StencilVectorSpace (cart , dtype = dtype )
197- M = StencilMatrix (V , V )
197+ M = StencilMatrix (V , V , precompiled = True )
198198
199199 # take random data, but determinize it
200200 np .random .seed (2 )
@@ -234,7 +234,7 @@ def test_stencil_matrix_2d_basic_ops(dtype, n1, n2, p1, p2, s1, s2, P1=True, P2=
234234 M4 -= M
235235
236236 #check that copy works with out
237- M5 = StencilMatrix (V , V )
237+ M5 = StencilMatrix (V , V , precompiled = True )
238238 M3 .copy (out = M5 )
239239
240240 # Check that the internal basic operation return the correct StencilMatrix
@@ -273,7 +273,7 @@ def test_stencil_matrix_2d_math(dtype, n1, n2, p1, p2, s1, s2, P1=True, P2=False
273273
274274 # Create a vector space V and a matrix M from V to V
275275 V = StencilVectorSpace (cart , dtype = dtype )
276- M = StencilMatrix (V , V )
276+ M = StencilMatrix (V , V , precompiled = True )
277277
278278 # take random data, but determinize it
279279 np .random .seed (2 )
@@ -334,7 +334,7 @@ def test_stencil_matrix_1d_serial_spurious_entries( dtype, n1, p1, s1, P1):
334334
335335 # Create vector space and stencil matrix
336336 V = StencilVectorSpace (cart , dtype = dtype )
337- M = StencilMatrix (V , V )
337+ M = StencilMatrix (V , V , precompiled = True )
338338
339339 # Fill in stencil matrix values
340340 for k1 in range (- p1 , p1 + 1 ):
@@ -393,7 +393,7 @@ def test_stencil_matrix_2d_serial_spurious_entries( dtype, p1, p2, s1, s2, P1, P
393393
394394 # Create vector space and stencil matrix
395395 V = StencilVectorSpace (cart , dtype = dtype )
396- M = StencilMatrix (V , V )
396+ M = StencilMatrix (V , V , precompiled = True )
397397
398398 # Fill in stencil matrix values
399399 for k1 in range (- p1 , p1 + 1 ):
@@ -456,7 +456,7 @@ def test_stencil_matrix_1d_serial_toarray( dtype, n1, p1, s1, P1):
456456
457457 # Create vector space and stencil matrix
458458 V = StencilVectorSpace (cart , dtype = dtype )
459- M = StencilMatrix (V , V )
459+ M = StencilMatrix (V , V , precompiled = True )
460460
461461 # Fill in stencil matrix values
462462 for i1 in range (0 , n1 ):
@@ -516,7 +516,7 @@ def test_stencil_matrix_2d_serial_toarray( dtype, n1, n2, p1, p2, s1, s2, P1, P2
516516
517517 # Create vector space and stencil matrix
518518 V = StencilVectorSpace (cart , dtype = dtype )
519- M = StencilMatrix (V , V )
519+ M = StencilMatrix (V , V , precompiled = True )
520520
521521 # Fill in stencil matrix values
522522 for k1 in range (- p1 , p1 + 1 ):
0 commit comments