Skip to content

Commit

Permalink
Don't use deprecated boost::uniform_real
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed May 24, 2024
1 parent 26c9da6 commit 2c9672c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/TransformMover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
* \file TransformMover.cpp
* \brief A mover that transforms a rigid body
*
* Copyright 2007-2022 IMP Inventors. All rights reserved.
* Copyright 2007-2024 IMP Inventors. All rights reserved.
*
*/
#include <IMP/pmi/TransformMover.h>
#include <IMP/core/XYZ.h>
#include <IMP/random.h>
#include <IMP/algebra/vector_generators.h>
#include <boost/random/uniform_real_distribution.hpp>

IMPPMI_BEGIN_NAMESPACE

TransformMover::TransformMover(Model *m,
Expand Down Expand Up @@ -84,7 +86,7 @@ core::MonteCarloMoverResult TransformMover::do_propose() {
axis_=(d2.get_coordinates()-d1.get_coordinates()).get_unit_vector();
}

::boost::uniform_real<> rand(-max_angle_, max_angle_);
::boost::random::uniform_real_distribution<> rand(-max_angle_, max_angle_);
Float angle = rand(random_number_generator);
algebra::Rotation3D r = algebra::get_rotation_about_axis(axis_, angle);
algebra::Transformation3D t(r, translation);
Expand Down

0 comments on commit 2c9672c

Please sign in to comment.