Skip to content

Commit 2a85d5c

Browse files
further test pruning for julia 0.5
1 parent 7c1ead5 commit 2a85d5c

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

test/sphericalharmonictests.jl

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ println()
6060

6161
import FastTransforms: normalizecolumns!, maxcolnorm
6262

63-
n = 511
63+
n = VERSION < v"0.6.0-" ? 255 : 511
6464
A = sphrandn(Float64, n+1, n+1);
6565
normalizecolumns!(A);
6666

@@ -74,16 +74,18 @@ C = P\B
7474

7575
println("The backward difference between slow plan and original: ", maxcolnorm(A-C))
7676

77-
n = 1023
78-
A = sphrandn(Float64, n+1, n+1);
79-
normalizecolumns!(A);
77+
if VERSION v"0.6.0-"
78+
n = 1023
79+
A = sphrandn(Float64, n+1, n+1);
80+
normalizecolumns!(A);
8081

81-
B = sph2fourier(A; sketch = :none)
82-
C = fourier2sph(B; sketch = :none)
83-
println("The backward difference between thin plan and original: ", maxcolnorm(A-C))
82+
B = sph2fourier(A; sketch = :none)
83+
C = fourier2sph(B; sketch = :none)
84+
println("The backward difference between thin plan and original: ", maxcolnorm(A-C))
8485

85-
P = plan_sph2fourier(A; sketch = :none)
86-
B = P*A
87-
C = P\B
86+
P = plan_sph2fourier(A; sketch = :none)
87+
B = P*A
88+
C = P\B
8889

89-
println("The backward difference between thin plan and original: ", maxcolnorm(A-C))
90+
println("The backward difference between thin plan and original: ", maxcolnorm(A-C))
91+
end

test/test_thinplan.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import FastTransforms: allranks, normalizecolumns!, maxcolnorm
22

3-
n = 511
3+
n = VERSION < v"0.6.0-" ? 255 : 511
44

55
A = sphrandn(Float64, n+1, n+1);
66
normalizecolumns!(A);

0 commit comments

Comments
 (0)