Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit c191a2f

Browse files
committed
Rename merge_matrices to merge_diis_matrices_spin_blocks
1 parent 8184e73 commit c191a2f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/algorithms/EDIIS.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@ end
123123
When synchronizing spins the resulting DIIS matrices have to be added
124124
together but the constraint must be kept as is.
125125
"""
126-
function merge_matrices(::EDIIS, B1::AbstractArray, B2::AbstractArray)
126+
function merge_diis_matrices_spin_blocks(::EDIIS, B1::AbstractArray, B2::AbstractArray)
127127
B1 + B2
128128
end

src/algorithms/cDIIS.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ end
6666
When synchronizing spins the resulting DIIS matrices have to be added
6767
together but the constraint must be kept as is.
6868
"""
69-
function merge_matrices(::cDIIS, A1::AbstractArray, A2::AbstractArray)
69+
function merge_diis_matrices_spin_blocks(::cDIIS, A1::AbstractArray, A2::AbstractArray)
7070
view(A1, 1:size(A1, 1) - 1, 1:size(A1, 2) - 1) .+ view(A2, 1:size(A2, 1) - 1, 1:size(A2, 2) - 1)
7171
return A1
7272
end

src/parts/diis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function compute_next_iterate(acc::Union{cDIIS,EDIIS}, iterstate::ScfIterState)
2020
# merged matrix. This also means we need to remove the same number of
2121
# matrices from both histrories.
2222
if acc.sync_spins & (spincount(iterate) == 2)
23-
A = merge_matrices(acc, matrix(1), matrix(2))
23+
A = merge_diis_matrices_spin_blocks(acc, matrix(1), matrix(2))
2424
c, matrixpurgecount = coefficients(A)
2525
map-> compute(c, σ), spinloop(iterate))
2626
map-> purge_from_state(acc, acc.state[σ], matrixpurgecount), spinloop(iterate))

0 commit comments

Comments
 (0)