Closed jgiaccai closed 1 year ago
@jgiaccai thanks for the bug report
As a temporary workaround, you could copy and paste the XYZ file appearing in the output file after the string "XYZ format geometry"
XYZ format geometry
-------------------
12
geometry
C 0.98582316 0.98582316 0.00000000
C -0.36083632 1.34665947 0.00000000
C -1.34665947 0.36083632 0.00000000
C -0.98582316 -0.98582316 0.00000000
C 0.36083632 -1.34665947 0.00000000
C 1.34665947 -0.36083632 0.00000000
H 1.75465612 1.75465612 0.00000000
H -0.64224871 2.39690483 0.00000000
H -2.39690483 0.64224871 0.00000000
H -1.75465612 -1.75465612 0.00000000
H 2.39690483 -0.64224871 0.00000000
H 0.64224871 -2.39690483 0.00000000
Thanks--for the moment I wrote a little python script to rearrange the lines so I can fix all my xyz files at once. But I thought others may want to know.
Thanks--for the moment I wrote a little python script to rearrange the lines so I can fix all my xyz files at once. But I thought others may want to know.
Let me stress that the recommended xyz file is the one embedded in the output file generated with the "geometry print xyz" keyword.
The other recommended option is to use the xyz option from the driver input field https://nwchemgit.github.io/Geometry-Optimization.html#optimization-history-as-xyz-files
This second option generates an xyz file
driver
xyz
end
Commit https://github.com/nwchemgit/nwchem/commit/9a0036a4f7d04fed5dab21eb3bbe3aa6fce2180b addresses this issue
I am using the DFT module in NWChem 7.0.0 with the input below which produces an XYZ file of the optimized geometry. However the first two lines of the XYZ file are inverted. This is a problem when trying to read the optimized geometry file into Avogadro.
XYZ file format requires the total number of atoms to be the first line of the file, and allows the second line of the file to be a comment.
(I'm also curious what the final column in the XYZ file is, although its presence doesn't pose any difficulties so isn't a bug in itself.)
Input:
NW Chem output:
Corrected output: