Skip to content
Snippets Groups Projects
Commit 0dea0e91 authored by Gareth Tribello's avatar Gareth Tribello
Browse files

Fixed bug that affects fibonacci grid on some machines

parent 4a77088a
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ unsigned GridVessel::getIndex( const std::vector<double>& point ) const {
unsigned GridVessel::getFibonacciIndex( const std::vector<double>& p ) const {
plumed_dbg_assert( gtype==fibonacci );
// Convert input point to coordinates on cylinder
unsigned k=2; double phi = atan2( p[2], p[0] ), sinthet2 = 1 - p[1]*p[1];
int k=2; double phi = atan2( p[2], p[0] ), sinthet2 = 1 - p[1]*p[1];
// Calculate power to raise golden ratio
if( sinthet2<epsilon ) { k = 2; }
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment