From 0866dc932e031f2edb947076c87077f5878de269 Mon Sep 17 00:00:00 2001 From: Andreas Schenk <andreas_schenk@hms.harvard.edu> Date: Sun, 10 Jun 2012 22:52:39 -0400 Subject: [PATCH] switched two integer divisions to floating point divisions in trajectory_analysis.cc, because otherwise enclosing ceil() doesn't make sense --- modules/mol/alg/src/trajectory_analysis.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mol/alg/src/trajectory_analysis.cc b/modules/mol/alg/src/trajectory_analysis.cc index 1ef9b5651..96dd5fabb 100644 --- a/modules/mol/alg/src/trajectory_analysis.cc +++ b/modules/mol/alg/src/trajectory_analysis.cc @@ -331,7 +331,7 @@ std::vector<Real> AnalyzeAromaticRingInteraction(const CoordGroupHandle& traj, c if (to<from) { throw Error("to smaller than from"); } - unsigned int n_frames=ceil((to-from)/stride); + unsigned int n_frames=ceil((to-from)/static_cast<Real>(stride)); if (n_atoms==0){ throw Error("EntityView is empty"); } @@ -370,7 +370,7 @@ std::vector<Real> AnalyzeAromaticRingInteraction(const CoordGroupHandle& traj, c if (to<from) { throw Error("to smaller than from"); } - unsigned int n_frames=ceil((to-from)/stride); + unsigned int n_frames=ceil((to-from)/static_cast<Real>(stride)); if (n_atoms==0){ throw Error("EntityView is empty"); } -- GitLab