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:
cc8c113
)
Use std::swap in LINCS
author
Szilárd Páll
<pall.szilard@gmail.com>
Thu, 13 Dec 2018 15:22:19 +0000
(16:22 +0100)
committer
David van der Spoel
<spoel@xray.bmc.uu.se>
Thu, 27 Dec 2018 21:53:47 +0000
(22:53 +0100)
Change-Id: I1604183ec39cd4f4ff6fdc7b6aecd90dd5efb02e
src/gromacs/mdlib/lincs.cpp
patch
|
blob
|
history
diff --git
a/src/gromacs/mdlib/lincs.cpp
b/src/gromacs/mdlib/lincs.cpp
index faa180b1e02aac8fabb15a9b4398a592b5244acb..193487a3b98da1fffea106c7230e18f483232e6d 100644
(file)
--- a/
src/gromacs/mdlib/lincs.cpp
+++ b/
src/gromacs/mdlib/lincs.cpp
@@
-278,11
+278,7
@@
static void lincs_matrix_expand(const Lincs &lincsd,
sol[b] = sol[b] + mvb;
}
- gmx::ArrayRef<real> swap;
-
- swap = rhs1;
- rhs1 = rhs2;
- rhs2 = swap;
+ std::swap(rhs1, rhs2);
} /* nrec*(ncons+2*nrtot) flops */
if (lincsd.ntriangle > 0)
@@
-335,11
+331,7
@@
static void lincs_matrix_expand(const Lincs &lincsd,
sol[b] = sol[b] + mvb;
}
- gmx::ArrayRef<real> swap;
-
- swap = rhs1;
- rhs1 = rhs2;
- rhs2 = swap;
+ std::swap(rhs1, rhs2);
} /* nrec*(ntriangle + ncc_triangle*2) flops */
if (lincsd.bTaskDepTri)