/usr/share/gromacs/shell-specific/gmx-completion-gmx_d.bash is in gromacs-data 5.1.2-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1
complete -o nospace -F _gmx_compl gmx_d