--- trunk/src/applications/staticProps/GofRAngle.cpp 2006/05/17 21:51:42 963 +++ trunk/src/applications/staticProps/GofRAngle.cpp 2006/10/18 21:58:48 1078 @@ -106,7 +106,8 @@ namespace oopse { Vector3d pos1 = sd1->getPos(); Vector3d pos2 = sd2->getPos(); Vector3d r12 = pos2 - pos1; - currentSnapshot_->wrapVector(r12); + if (usePeriodicBoundaryConditions_) + currentSnapshot_->wrapVector(r12); RealType distance = r12.length(); int whichRBin = distance / deltaR_; @@ -153,7 +154,10 @@ namespace oopse { Vector3d pos1 = sd1->getPos(); Vector3d pos2 = sd2->getPos(); Vector3d r12 = pos2 - pos1; - currentSnapshot_->wrapVector(r12); + + if (usePeriodicBoundaryConditions_) + currentSnapshot_->wrapVector(r12); + r12.normalize(); Vector3d dipole = sd1->getElectroFrame().getColumn(2); dipole.normalize();