Mercurial > repos > public > sbplib_julia
annotate test/testDiffOps.jl @ 594:cc86b920531a refactor/toml_operator_format
Change the readoperator function to use the .toml format
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 02 Dec 2020 15:26:13 +0100 |
parents | ffddaf053085 |
children |
rev | line source |
---|---|
235
a5fdc00d5070
Fix a bunch of compilation errors
Jonatan Werpers <jonatan@werpers.com>
parents:
216
diff
changeset
|
1 using Test |
335
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
2 using Sbplib.DiffOps |
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
3 using Sbplib.Grids |
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
4 using Sbplib.SbpOperators |
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
5 using Sbplib.RegionIndices |
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
6 using Sbplib.LazyTensors |
216
30112f73555c
Add Manifest.toml, test stub and dependencies to DiffOps
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
7 |
338
2b0c9b30ea3b
Add test sets for each submodule to make the test output nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
335
diff
changeset
|
8 @testset "DiffOps" begin |
351
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
9 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
10 # @testset "BoundaryValue" begin |
594
cc86b920531a
Change the readoperator function to use the .toml format
Jonatan Werpers <jonatan@werpers.com>
parents:
351
diff
changeset
|
11 # op = read_D2_operator(sbp_operators_path()*"standard_diagonal.toml"; order=4) |
351
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
12 # g = EquidistantGrid((4,5), (0.0, 0.0), (1.0,1.0)) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
13 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
14 # e_w = BoundaryValue(op, g, CartesianBoundary{1,Lower}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
15 # e_e = BoundaryValue(op, g, CartesianBoundary{1,Upper}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
16 # e_s = BoundaryValue(op, g, CartesianBoundary{2,Lower}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
17 # e_n = BoundaryValue(op, g, CartesianBoundary{2,Upper}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
18 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
19 # v = zeros(Float64, 4, 5) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
20 # v[:,5] = [1, 2, 3,4] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
21 # v[:,4] = [1, 2, 3,4] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
22 # v[:,3] = [4, 5, 6, 7] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
23 # v[:,2] = [7, 8, 9, 10] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
24 # v[:,1] = [10, 11, 12, 13] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
25 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
26 # @test e_w isa TensorMapping{T,2,1} where T |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
27 # @test e_w' isa TensorMapping{T,1,2} where T |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
28 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
29 # @test domain_size(e_w, (3,2)) == (2,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
30 # @test domain_size(e_e, (3,2)) == (2,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
31 # @test domain_size(e_s, (3,2)) == (3,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
32 # @test domain_size(e_n, (3,2)) == (3,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
33 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
34 # @test size(e_w'*v) == (5,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
35 # @test size(e_e'*v) == (5,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
36 # @test size(e_s'*v) == (4,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
37 # @test size(e_n'*v) == (4,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
38 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
39 # @test collect(e_w'*v) == [10,7,4,1.0,1] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
40 # @test collect(e_e'*v) == [13,10,7,4,4.0] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
41 # @test collect(e_s'*v) == [10,11,12,13.0] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
42 # @test collect(e_n'*v) == [1,2,3,4.0] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
43 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
44 # g_x = [1,2,3,4.0] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
45 # g_y = [5,4,3,2,1.0] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
46 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
47 # G_w = zeros(Float64, (4,5)) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
48 # G_w[1,:] = g_y |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
49 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
50 # G_e = zeros(Float64, (4,5)) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
51 # G_e[4,:] = g_y |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
52 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
53 # G_s = zeros(Float64, (4,5)) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
54 # G_s[:,1] = g_x |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
55 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
56 # G_n = zeros(Float64, (4,5)) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
57 # G_n[:,5] = g_x |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
58 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
59 # @test size(e_w*g_y) == (UnknownDim,5) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
60 # @test size(e_e*g_y) == (UnknownDim,5) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
61 # @test size(e_s*g_x) == (4,UnknownDim) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
62 # @test size(e_n*g_x) == (4,UnknownDim) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
63 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
64 # # These tests should be moved to where they are possible (i.e we know what the grid should be) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
65 # @test_broken collect(e_w*g_y) == G_w |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
66 # @test_broken collect(e_e*g_y) == G_e |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
67 # @test_broken collect(e_s*g_x) == G_s |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
68 # @test_broken collect(e_n*g_x) == G_n |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
69 # end |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
70 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
71 # @testset "NormalDerivative" begin |
594
cc86b920531a
Change the readoperator function to use the .toml format
Jonatan Werpers <jonatan@werpers.com>
parents:
351
diff
changeset
|
72 # op = read_D2_operator(sbp_operators_path()*"standard_diagonal.toml"; order=4) |
351
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
73 # g = EquidistantGrid((5,6), (0.0, 0.0), (4.0,5.0)) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
74 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
75 # d_w = NormalDerivative(op, g, CartesianBoundary{1,Lower}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
76 # d_e = NormalDerivative(op, g, CartesianBoundary{1,Upper}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
77 # d_s = NormalDerivative(op, g, CartesianBoundary{2,Lower}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
78 # d_n = NormalDerivative(op, g, CartesianBoundary{2,Upper}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
79 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
80 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
81 # v = evalOn(g, (x,y)-> x^2 + (y-1)^2 + x*y) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
82 # v∂x = evalOn(g, (x,y)-> 2*x + y) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
83 # v∂y = evalOn(g, (x,y)-> 2*(y-1) + x) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
84 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
85 # @test d_w isa TensorMapping{T,2,1} where T |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
86 # @test d_w' isa TensorMapping{T,1,2} where T |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
87 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
88 # @test domain_size(d_w, (3,2)) == (2,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
89 # @test domain_size(d_e, (3,2)) == (2,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
90 # @test domain_size(d_s, (3,2)) == (3,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
91 # @test domain_size(d_n, (3,2)) == (3,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
92 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
93 # @test size(d_w'*v) == (6,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
94 # @test size(d_e'*v) == (6,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
95 # @test size(d_s'*v) == (5,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
96 # @test size(d_n'*v) == (5,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
97 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
98 # @test collect(d_w'*v) ≈ v∂x[1,:] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
99 # @test collect(d_e'*v) ≈ v∂x[5,:] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
100 # @test collect(d_s'*v) ≈ v∂y[:,1] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
101 # @test collect(d_n'*v) ≈ v∂y[:,6] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
102 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
103 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
104 # d_x_l = zeros(Float64, 5) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
105 # d_x_u = zeros(Float64, 5) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
106 # for i ∈ eachindex(d_x_l) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
107 # d_x_l[i] = op.dClosure[i-1] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
108 # d_x_u[i] = -op.dClosure[length(d_x_u)-i] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
109 # end |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
110 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
111 # d_y_l = zeros(Float64, 6) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
112 # d_y_u = zeros(Float64, 6) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
113 # for i ∈ eachindex(d_y_l) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
114 # d_y_l[i] = op.dClosure[i-1] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
115 # d_y_u[i] = -op.dClosure[length(d_y_u)-i] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
116 # end |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
117 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
118 # function prod_matrix(x,y) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
119 # G = zeros(Float64, length(x), length(y)) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
120 # for I ∈ CartesianIndices(G) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
121 # G[I] = x[I[1]]*y[I[2]] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
122 # end |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
123 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
124 # return G |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
125 # end |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
126 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
127 # g_x = [1,2,3,4.0,5] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
128 # g_y = [5,4,3,2,1.0,11] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
129 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
130 # G_w = prod_matrix(d_x_l, g_y) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
131 # G_e = prod_matrix(d_x_u, g_y) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
132 # G_s = prod_matrix(g_x, d_y_l) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
133 # G_n = prod_matrix(g_x, d_y_u) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
134 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
135 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
136 # @test size(d_w*g_y) == (UnknownDim,6) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
137 # @test size(d_e*g_y) == (UnknownDim,6) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
138 # @test size(d_s*g_x) == (5,UnknownDim) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
139 # @test size(d_n*g_x) == (5,UnknownDim) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
140 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
141 # # These tests should be moved to where they are possible (i.e we know what the grid should be) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
142 # @test_broken collect(d_w*g_y) ≈ G_w |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
143 # @test_broken collect(d_e*g_y) ≈ G_e |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
144 # @test_broken collect(d_s*g_x) ≈ G_s |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
145 # @test_broken collect(d_n*g_x) ≈ G_n |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
146 # end |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
147 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
148 # @testset "BoundaryQuadrature" begin |
594
cc86b920531a
Change the readoperator function to use the .toml format
Jonatan Werpers <jonatan@werpers.com>
parents:
351
diff
changeset
|
149 # op = read_D2_operator(sbp_operators_path()*"standard_diagonal.toml"; order=4) |
351
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
150 # g = EquidistantGrid((10,11), (0.0, 0.0), (1.0,1.0)) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
151 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
152 # H_w = BoundaryQuadrature(op, g, CartesianBoundary{1,Lower}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
153 # H_e = BoundaryQuadrature(op, g, CartesianBoundary{1,Upper}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
154 # H_s = BoundaryQuadrature(op, g, CartesianBoundary{2,Lower}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
155 # H_n = BoundaryQuadrature(op, g, CartesianBoundary{2,Upper}()) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
156 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
157 # v = evalOn(g, (x,y)-> x^2 + (y-1)^2 + x*y) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
158 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
159 # function get_quadrature(N) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
160 # qc = op.quadratureClosure |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
161 # q = (qc..., ones(N-2*closuresize(op))..., reverse(qc)...) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
162 # @assert length(q) == N |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
163 # return q |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
164 # end |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
165 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
166 # v_w = v[1,:] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
167 # v_e = v[10,:] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
168 # v_s = v[:,1] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
169 # v_n = v[:,11] |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
170 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
171 # q_x = spacing(g)[1].*get_quadrature(10) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
172 # q_y = spacing(g)[2].*get_quadrature(11) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
173 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
174 # @test H_w isa TensorOperator{T,1} where T |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
175 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
176 # @test domain_size(H_w, (3,)) == (3,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
177 # @test domain_size(H_n, (3,)) == (3,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
178 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
179 # @test range_size(H_w, (3,)) == (3,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
180 # @test range_size(H_n, (3,)) == (3,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
181 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
182 # @test size(H_w*v_w) == (11,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
183 # @test size(H_e*v_e) == (11,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
184 # @test size(H_s*v_s) == (10,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
185 # @test size(H_n*v_n) == (10,) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
186 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
187 # @test collect(H_w*v_w) ≈ q_y.*v_w |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
188 # @test collect(H_e*v_e) ≈ q_y.*v_e |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
189 # @test collect(H_s*v_s) ≈ q_x.*v_s |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
190 # @test collect(H_n*v_n) ≈ q_x.*v_n |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
191 # |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
192 # @test collect(H_w'*v_w) == collect(H_w'*v_w) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
193 # @test collect(H_e'*v_e) == collect(H_e'*v_e) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
194 # @test collect(H_s'*v_s) == collect(H_s'*v_s) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
195 # @test collect(H_n'*v_n) == collect(H_n'*v_n) |
ffddaf053085
Tests in testDiffOps are to be moved to testSbpOperators. Already moved tests are removed, while those not yet moved are commented out.
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
338
diff
changeset
|
196 # end |
244
a827568fc251
Fix NormalDerivative and add tests
Jonatan Werpers <jonatan@werpers.com>
parents:
242
diff
changeset
|
197 |
a827568fc251
Fix NormalDerivative and add tests
Jonatan Werpers <jonatan@werpers.com>
parents:
242
diff
changeset
|
198 end |