forked from pool/python3-espressomd
Matej Cepl
4bb6cb65fd
Fix LB inertialess tracers bug, fix compiler warnings OBS-URL: https://build.opensuse.org/request/show/1084332 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python3-espressomd?expand=0&rev=47
20 lines
903 B
Diff
20 lines
903 B
Diff
diff --git a/src/core/p3m/interpolation.hpp b/src/core/p3m/interpolation.hpp
|
|
index a25b0d8f66..0573648938 100644
|
|
--- a/src/core/p3m/interpolation.hpp
|
|
+++ b/src/core/p3m/interpolation.hpp
|
|
@@ -109,10 +109,10 @@ class p3m_interpolation_cache {
|
|
InterpolationWeights<cao> ret;
|
|
ret.ind = ca_fmp[i];
|
|
|
|
- auto const offset = ca_frac.data() + 3 * i * m_cao;
|
|
- boost::copy(make_const_span(offset + 0 * m_cao, m_cao), ret.w_x.begin());
|
|
- boost::copy(make_const_span(offset + 1 * m_cao, m_cao), ret.w_y.begin());
|
|
- boost::copy(make_const_span(offset + 2 * m_cao, m_cao), ret.w_z.begin());
|
|
+ auto const offset = ca_frac.data() + 3 * i * cao;
|
|
+ boost::copy(make_const_span(offset + 0 * cao, cao), ret.w_x.begin());
|
|
+ boost::copy(make_const_span(offset + 1 * cao, cao), ret.w_y.begin());
|
|
+ boost::copy(make_const_span(offset + 2 * cao, cao), ret.w_z.begin());
|
|
|
|
return ret;
|
|
}
|