Skip to content

Commit

Permalink
Merge pull request i-pi#307 from sabia-group/bug/fix-comment
Browse files Browse the repository at this point in the history
Updating bug in comment line of phonons.py
  • Loading branch information
mahrossi authored Jan 30, 2024
2 parents 64f78d9 + 1a0ce1e commit e31187e
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 e31187e

Please sign in to comment.