Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit b8366aa

Browse files
committed
...
1 parent 49974e5 commit b8366aa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/robin.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ for i in 1:5
2121
@test Q_L[1,:] [-1 / (1-al[i]*dx_l[i]/bl[i]); zeros(5i-1)]
2222
@test Q_L[5i+2,:] [zeros(5i-1); 1 / (1+ar[i]*dx_r[i]/br[i])]
2323

24-
#Test the test
25-
@test (u[1]*(bl[i]/dx_l[i]))/(al[i]-bl[i]/dx_l[i]) -u[1] / (1-al[i]*dx_l[i]/bl[i])
26-
@test (u[end]*(br[i]/dx_r[i]))/(ar[i]+br[i]/dx_r[i]) u[end] / (1+ar[i]*dx_r[i]/br[i])
27-
2824
#Check that Q_b is computed correctly
2925
@test Q_b [cl[i]/(al[i]-bl[i]/dx_l[i]); zeros(5i); cr[i]/(ar[i]+br[i]/dx_r[i])]
3026

@@ -35,8 +31,10 @@ for i in 1:5
3531
Qextended = Q*u
3632
CorrectQextended = [(cl[i]+(bl[i]/dx_l[i])*u[1])/(al[i]-bl[i]/dx_l[i]); u; (cr[i]+ (br[i]/dx_r[i])*u[5i])/(ar[i]+br[i]/dx_r[i])]
3733

34+
3835
@test length(Qextended) 5i+2
39-
#@test Qextended ≈ CorrectQextended
36+
37+
#test the test
4038
@test (u[1]*(bl[i]/dx_l[i]))/(al[i]-bl[i]/dx_l[i]) -u[1] / (1-al[i]*dx_l[i]/bl[i])
4139
@test (u[end]*(br[i]/dx_r[i]))/(ar[i]+br[i]/dx_r[i]) u[end] / (1+ar[i]*dx_r[i]/br[i])
4240

0 commit comments

Comments
 (0)