Skip to content

Commit

Permalink
Just tweaking a comment that is source of GREAT confusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariana Rossi committed Jan 30, 2024
1 parent 64f78d9 commit 1a0ce1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ipi/engine/motion/phonons.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def printall(self, prefix, dmatx, deltaw=0.0, fixdof=np.array([])):

# prints eigenvectors
outfile = self.output_maker.get_output(self.prefix + ".eigvec", "w")
outfile.write("# Eigenvector matrix (normalized)" + "\n")
outfile.write(
"# Eigenvector matrix from the dynamical matrix (normalized)" + "\n"
)
for i in range(activedof):
outfile.write(" ".join(map(str, eigsys[1][i])) + "\n")
outfile.close_stream()
Expand All @@ -182,7 +184,7 @@ def printall(self, prefix, dmatx, deltaw=0.0, fixdof=np.array([])):
eigmode[:, i] /= np.sqrt(np.dot(eigmode[:, i], eigmode[:, i]))
outfile = self.output_maker.get_output(self.prefix + ".mode", "w")

outfile.write("# Phonon modes (mass-scaled)" + "\n")
outfile.write("# Phonon modes (cartesian space and normalized)" + "\n")
for i in range(activedof):
outfile.write(" ".join(map(str, eigmode[i])) + "\n")
outfile.close_stream()
Expand Down

0 comments on commit 1a0ce1e

Please sign in to comment.