Skip to content

Commit

Permalink
Bugfix: added missing parameter in allocate_jacobian
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Aug 16, 2023
1 parent a8d05b1 commit 57ae25d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/TransientFESpaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,10 @@ end

function ODETools.allocate_jacobian(
op::TransientFETools.TransientFEOperatorFromWeakForm,
duh::DistributedCellField,
t0::Real,
duh::Union{DistributedCellField,DistributedMultiFieldFEFunction},
cache)
_matdata_jacobians = TransientFETools.fill_initial_jacobians(op,duh)
matdata = _vcat_distributed_matdata(_matdata_jacobians)
allocate_matrix(op.assem_t,matdata)
end

function ODETools.allocate_jacobian(
op::TransientFETools.TransientFEOperatorFromWeakForm,
duh::DistributedMultiFieldFEFunction,
cache)
_matdata_jacobians = TransientFETools.fill_initial_jacobians(op,duh)
_matdata_jacobians = TransientFETools.fill_initial_jacobians(op,t0,duh)
matdata = _vcat_distributed_matdata(_matdata_jacobians)
allocate_matrix(op.assem_t,matdata)
end
Expand Down

0 comments on commit 57ae25d

Please sign in to comment.