Skip to content

Commit

Permalink
Fixed a kwargs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGibbs committed Jan 4, 2024
1 parent 6dd6357 commit b197310
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Galerkin_discretisation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function discretise_Galerkin_block(
K::SIO{Ω},
mesh1::Vector{SubInvariantMeasure{V,M_}},
mesh2::Vector{SubInvariantMeasure{V,M_}},
h_quad::Number,
h_quad::Number;
kwargs...
) where
{V<:Union{Real,AbstractVector},
Expand Down Expand Up @@ -87,7 +87,7 @@ function discretise_Galerkin_block(
K::OperatorSum{Ω},
mesh1::Vector{SubInvariantMeasure{V,M_}},
mesh2::Vector{SubInvariantMeasure{V,M_}},
h_quad::Number,
h_quad::Number;
kwargs...
) where
{V<:Union{Real,AbstractVector},
Expand All @@ -101,7 +101,7 @@ function discretise_Galerkin_block(
for A K.operators
if !(typeof(A)<:IdentityOperator) # identity operator will be zero
Galerkin_matrix .+=
discretise_Galerkin_block(A, mesh1, mesh2, h_quad, kwargs...)
discretise_Galerkin_block(A, mesh1, mesh2, h_quad; kwargs...)
end
end

Expand All @@ -127,7 +127,7 @@ function discretise_Galerkin_block(
if isa(A,IdentityOperator) # identity operator will be zero
Galerkin_matrix .+= get_mass_matrix(A,mesh)
elseif isa(A,SIO)
Galerkin_matrix .+= discretise_Galerkin_block(A,mesh,h_quad,kwargs...)
Galerkin_matrix .+= discretise_Galerkin_block(A,mesh,h_quad;kwargs...)
end
end

Expand All @@ -142,8 +142,8 @@ function discretise_Galerkin_block(
h_quad_diag::Real = h_quad,
vary_quad::Bool = true,
repeat_blocks::Bool =true,
adjacency_function::Union{Function,Nothing}=nothing,
kwargs...
adjacency_function::Union{Function,Nothing}=nothing#,
# kwargs...
) where
{V<:Union{Real,AbstractVector},
M_<:Union{Real,AbstractMatrix},
Expand Down

0 comments on commit b197310

Please sign in to comment.