forked from pool/python3-espressomd
Accepting request 1084332 from home:jngrad:branches:devel:languages:python:numeric
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
This commit is contained in:
parent
b957f3899e
commit
4bb6cb65fd
19
array-bounds.patch
Normal file
19
array-bounds.patch
Normal file
@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 26 18:06:17 UTC 2023 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de>
|
||||
|
||||
- Fix LB inertialess tracers bug, fix compiler warnings
|
||||
- Add tracers.patch to fix LB inertialess tracers (gh#espressomd/espresso#4714)
|
||||
- Add array-bounds.patch to fix compiler warnings (gh#espressomd/espresso#4715)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 18 10:43:03 UTC 2023 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de>
|
||||
|
||||
|
@ -44,6 +44,10 @@ URL: http://espressomd.org
|
||||
Source: https://github.com/%{modname}/%{pkgname}/releases/download/%{version}/%{pkgname}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM setuptools.patch gh#espressomd/espresso#4709
|
||||
Patch0: setuptools.patch
|
||||
# PATCH-FIX-UPSTREAM tracers.patch gh#espressomd/espresso#4714
|
||||
Patch1: tracers.patch
|
||||
# PATCH-FIX-UPSTREAM array-bounds.patch gh#espressomd/espresso#4715
|
||||
Patch2: array-bounds.patch
|
||||
# According to gh#espressomd/espresso#4537 32bit architectures are not supported any more
|
||||
ExcludeArch: %{ix86}
|
||||
BuildRequires: cmake
|
||||
|
13
tracers.patch
Normal file
13
tracers.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/core/virtual_sites/lb_inertialess_tracers.cpp b/src/core/virtual_sites/lb_inertialess_tracers.cpp
|
||||
index 5aae5af66c..b87b2d4232 100644
|
||||
--- a/src/core/virtual_sites/lb_inertialess_tracers.cpp
|
||||
+++ b/src/core/virtual_sites/lb_inertialess_tracers.cpp
|
||||
@@ -92,7 +92,7 @@ void IBM_UpdateParticlePositions(ParticleRange const &particles,
|
||||
// Euler integrator
|
||||
for (auto &p : particles) {
|
||||
if (p.is_virtual()) {
|
||||
- for (int axis = 0; axis < 2; axis++) {
|
||||
+ for (int axis = 0; axis < 3; axis++) {
|
||||
#ifdef EXTERNAL_FORCES
|
||||
if (not p.is_fixed_along(axis))
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user