Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire committed Dec 11, 2023
1 parent d64f285 commit b161dca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qn/flux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ allfluxequal(T::Tensor) = allequal(flux(T, b) for b in nzblocks(T))
Check that fluxes of all non-zero blocks of a blocked or symmetric Tensor
are equal. Throws an error if one or more blocks have a different flux.
If the tensor is dense (is not blocked) then `checkflux` returns `nothing`.
"""
function checkflux(T::Tensor)
function checkflux(T::Tensor)
(!hasqns(T) || isempty(T)) && return nothing
allfluxequal(T) ? nothing : error("Fluxes not all equal")
return allfluxequal(T) ? nothing : error("Fluxes not all equal")
end

"""
Expand Down

0 comments on commit b161dca

Please sign in to comment.