Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Dec 5, 2024
1 parent a894448 commit 08a16c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/solvers/green/sparselu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ end
Base.view(s::SparseLUGreenSlicer, ::Colon, ::Colon) =
compute_or_retrieve_green(s, s.unitcindsall, s.unitcindsall, s.source64, s.sourceC)

# Here it is assumed that CellOrbitals has explicit orbindices (i.e. not Colon)
# This is enforced by indexing in greenfunction.jl
function Base.view(s::SparseLUGreenSlicer{C}, i::CellOrbitals, j::CellOrbitals) where {C}
# we only preallocate if we actually need to call ldiv! below (empty unitg cache)
must_call_ldiv! = !isdefined(s, :unitg)
Expand Down

0 comments on commit 08a16c7

Please sign in to comment.