Skip to content

Commit

Permalink
Minor in NonLinearFEOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Sep 8, 2019
1 parent f41b427 commit c4f66b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/FESpaces/FEOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ struct NonLinearFEOperator <:FEOperator
testfesp::FESpaceLike
trialfesp::FESpaceLike
assem::AssemblerLike
terms::NTuple{N,<:FETerm} where N
terms::NTuple{N,FETerm} where N
end

function NonLinearFEOperator(
Expand Down
9 changes: 9 additions & 0 deletions test/FESpacesTests/NonLinearFEOperatorsTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,13 @@ zh = zero(U)
solve!(zh,solver,op,cache)
@test free_dofs(zh) free_dofs(uh)

t_Ω = NonLinearFETerm(res,jac,trian,quad)

b0fun(x) = 0.0
b0(v) = inner(v,b0fun)
t_source = FESource(b0,trian,quad)

op = NonLinearFEOperator(V,U,assem,t_Ω,t_source)
op = NonLinearFEOperator(V,U,t_Ω,t_source)

end # module NonLinearFEOperatorsTests

0 comments on commit c4f66b5

Please sign in to comment.