Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/operators/mpohamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,12 @@
A₁ = H₁.A[i]
A₁_inds = CartesianIndices((2:(size(H₁[i], 1) - 1), 1:1, 1:1,
2:(size(H₁[i], 4) - 1)))
iszero(A₁) || copyto!(W, A₁_inds, A₁, CartesianIndices(A₁))
copyto!(W, A₁_inds, A₁, CartesianIndices(A₁))

Check warning on line 435 in src/operators/mpohamiltonian.jl

View check run for this annotation

Codecov / codecov/patch

src/operators/mpohamiltonian.jl#L435

Added line #L435 was not covered by tests

A₂ = H₂.A[i]
A₂_inds = CartesianIndices((size(H₁[i], 1):(size(W, 1) - 1), 1:1, 1:1,
size(H₁[i], 4):(size(W, 4) - 1)))
iszero(A₂) || copyto!(W, A₂_inds, A₂, CartesianIndices(A₂))
copyto!(W, A₂_inds, A₂, CartesianIndices(A₂))

Check warning on line 440 in src/operators/mpohamiltonian.jl

View check run for this annotation

Codecov / codecov/patch

src/operators/mpohamiltonian.jl#L440

Added line #L440 was not covered by tests
end

if H₁ isa InfiniteMPOHamiltonian || i != 1
Expand Down
Loading