Commit 7a423aec by maarten

fix voor symmetrie

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@303 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 91f7f9c2
......@@ -12,7 +12,7 @@
using namespace std;
#define DEBUG_VOOR_BART
//#define DEBUG_VOOR_BART
namespace mmcif
{
......@@ -118,9 +118,9 @@ DistanceMap::DistanceMap(const Structure& p, const clipper::Spacegroup& spacegro
auto calculateD = [&](float m, float c)
{
float d = 0;
while (d < -(c / 2))
while (m + d < -(c / 2))
d += c;
while (d > (c / 2))
while (m + d > (c / 2))
d -= c;
return d;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment