biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dc014e
)
Fix MSVC error in toppush.cpp
author
Dmitry Morozov
<aracsmd@gmail.com>
Fri, 13 Aug 2021 15:47:49 +0000
(15:47 +0000)
committer
Andrey Alekseenko
<al42and@gmail.com>
Fri, 13 Aug 2021 15:47:49 +0000
(15:47 +0000)
src/gromacs/gmxpreprocess/toppush.cpp
patch
|
blob
|
history
diff --git
a/src/gromacs/gmxpreprocess/toppush.cpp
b/src/gromacs/gmxpreprocess/toppush.cpp
index 087695001b58e036ee755d07fde2825b2f7e4116..ebce88d3839e029fbb1ec5d80de1c1465a17ed95 100644
(file)
--- a/
src/gromacs/gmxpreprocess/toppush.cpp
+++ b/
src/gromacs/gmxpreprocess/toppush.cpp
@@
-1970,7
+1970,7
@@
void push_bond(Directive d,
}
// These are the atom indices for this interaction
-
gmx::ArrayRef<int> atomIndices(aa.begin(), aa.begin() +
nral);
+
auto atomIndices = gmx::ArrayRef<const int>(aa).subArray(0,
nral);
// Look up the A-state atom types for this interaction
std::vector<int> atomTypes(atomIndices.size());