Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 152 by cahit.dalgicdir: Incorrect box info after mapping a
Gromacs dodecahedron box
http://code.google.com/p/votca/issues/detail?id=152
What steps will reproduce the problem?
1. Use csg_map to map a dodecahedron Gromacs box (gro or xtc)
$ csg_map --top topol.tpr --trj conf.gro --out mapped.gro --cg SOL.xml
OR
$ csg_map --top topol.tpr --trj conf.gro --out mapped.xtc --cg SOL.xml
where the last line of conf.gro is:
4.00000 4.00000 2.82843 0.00000 0.00000 0.00000 0.00000
2.00000 2.00000
the last line of mapped.gro is:
4.00000 4.00000 2.82843 0.00000 2.00000 0.00000 2.00000
0.00000 0.00000
2. The box info for conf.gro and mapped.gro differ
The box info for conf.gro and mapped.gro should be the same.
I think changing the 96-97th lines of src/libcsg/modules/io/growriter.cc :
from
box[0][1],box[0][2],box[1][0],
box[1][2],box[2][0],box[2][1]);
to
box[1][0],box[2][0],box[0][1],
box[2][1],box[0][2],box[1][2]);
and 64th line of src/libcsg/modules/io/gmxtrajectorywriter.cc :
from
frame.box[i][j] = box[i][j];
to
frame.box[j][i] = box[i][j];
fixes this bug. I didn't commit the fix, because I am not sure if this fix
does not break anything.
Attachments:
votca-gmx-dode-map-bug.tar 390 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings