comparison test/testSbpOperators.jl @ 384:3a779c31e59e refactor/sbp_operators_tests/collect_and_compare

Rewrite tolerance values to be more concise
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 01 Oct 2020 06:15:21 +0200
parents aaf8e331cb80
children 6ef73611f4d9
comparison
equal deleted inserted replaced
383:aaf8e331cb80 384:3a779c31e59e
102 @test L' isa TensorMapping{T,2,2} where T 102 @test L' isa TensorMapping{T,2,2} where T
103 103
104 # TODO: Should perhaps set tolerance level for isapporx instead? 104 # TODO: Should perhaps set tolerance level for isapporx instead?
105 # Are these tolerance levels resonable or should tests be constructed 105 # Are these tolerance levels resonable or should tests be constructed
106 # differently? 106 # differently?
107 equalitytol = 0.5*1e-10 107 equalitytol = 5e-11
108 accuracytol = 0.5*1e-3 108 accuracytol = 5e-4
109 # 4th order interior stencil, 2nd order boundary stencil, 109 # 4th order interior stencil, 2nd order boundary stencil,
110 # implies that L*v should be exact for v - monomial up to order 3. 110 # implies that L*v should be exact for v - monomial up to order 3.
111 # Exact differentiation is measured point-wise. For other grid functions 111 # Exact differentiation is measured point-wise. For other grid functions
112 # the error is measured in the H-norm. 112 # the error is measured in the H-norm.
113 @test all(abs.(L*v0) .<= equalitytol) 113 @test all(abs.(L*v0) .<= equalitytol)