Skip to content

Commit

Permalink
Dump VSITE2FD
Browse files Browse the repository at this point in the history
A missing case is added to correctly dump VSITE2FD virtual sites.

Fix #4845
  • Loading branch information
Eliane Briand authored and al42and committed Aug 11, 2023
1 parent 0f103a2 commit 9f77b4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/release-notes/2023/2023.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ Fixes where mdrun could behave incorrectly
Fixes for ``gmx`` tools
^^^^^^^^^^^^^^^^^^^^^^^

Correctly dump VSITE2FD virtual sites
"""""""""""""""""""""""""""""""""""""

Systems with virtual site VSITE2FD (2 atoms with fixed distance) could previously
not be handled by ``gmx dump``. Note that this had no effect on simulation.

:issue:`4845`

Fixes that affect portability
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
3 changes: 2 additions & 1 deletion src/gromacs/topology/idef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ void printInteractionParameters(gmx::TextWriter* writer, t_functype ftype, const
writer->writeLineFormatted("doh=%15.8e, dhh=%15.8e", iparams.settle.doh, iparams.settle.dhh);
break;
case F_VSITE1: writer->ensureEmptyLine(); break;
case F_VSITE2: writer->writeLineFormatted("a=%15.8e", iparams.vsite.a); break;
case F_VSITE2:
case F_VSITE2FD: writer->writeLineFormatted("a=%15.8e", iparams.vsite.a); break;
case F_VSITE3:
case F_VSITE3FD:
case F_VSITE3FAD:
Expand Down

0 comments on commit 9f77b4e

Please sign in to comment.