Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions julia/MOLE.jl/src/BCs/BCs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module BCs

include("robinBC.jl")

end # module BCs
File renamed without changes.
10 changes: 4 additions & 6 deletions julia/MOLE.jl/src/MOLE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

module MOLE

include("divergence.jl")
include("gradient.jl")
include("laplacian.jl")
include("robinBC.jl")

export div, grad, lap, robinBC
include("Operators/divergence.jl")
include("Operators/gradient.jl")
include("Operators/laplacian.jl")
include("BCs/robinBC.jl")

end # module MOLE
7 changes: 7 additions & 0 deletions julia/MOLE.jl/src/Operators/Operators.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Operators

include("gradient.jl")
include("divergence.jl")
include("laplacian.jl")

end # module Operators
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
tol = 1e-10

@testset "Testing divergence for order k=$k" for k=2:2:8
tol = 1e-10
m = 2*k+1
D = MOLE.div(k, m, 1/m)
field = ones(m+1,1)
Expand Down
18 changes: 4 additions & 14 deletions julia/MOLE.jl/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
using MOLE
using Test, LinearAlgebra

#tol = 1e-10

@testset "Testing MOLE operators" begin
@testset "Testing 1D divergence" begin
include("testDivergence.jl")
include("Operators/divergence.jl")
end

@testset "Testing 1D gradient" begin
include("testGradient.jl")
include("Operators/gradient.jl")
end

@testset "Testing 1D laplacian" begin
include("testLaplacian.jl")
include("Operators/laplacian.jl")
end
end

# @testset "Testing Divergence for order k=$k" for k=2:2:8
# m = 2*k+1
# D = div(k, m, 1/m)
# field = ones(m+1,1)
# sol = D*field
# @test norm(sol) < tol
# end
end