Skip to content
Snippets Groups Projects
Commit 0866dc93 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

switched two integer divisions to floating point divisions in

trajectory_analysis.cc, because otherwise enclosing ceil() doesn't make
sense
parent 4b773550
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment