Skip to content

Commit bb3bb19

Browse files
committed
Fixed the Diagonalization in the supercell when printing the frequencies on the file.
This could now speedup the calculation
1 parent 0ec02c8 commit bb3bb19

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Modules/Utilities.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,9 @@ def CFP_SaveFrequencies(self, minim):
600600

601601
# Generate the supercell in real space (Do it only if the frequency changes)
602602
if minim.minimizer.new_direction:
603-
dyn_sc = minim.dyn.GenerateSupercellDyn( minim.ensemble.supercell )
603+
w, pols = minim.dyn.DiagonalizeSupercell()
604604

605605
# Dyagonalize
606-
w, pols = dyn_sc.DyagDinQ(0)
607606
self.total_freqs.append(w)
608607

609608

@@ -685,4 +684,4 @@ def load_binary(filename):
685684
The filename you want to read
686685
"""
687686

688-
return pickle.load(open(filename, "rb"))
687+
return pickle.load(open(filename, "rb"))

0 commit comments

Comments
 (0)