Skip to content

Commit

Permalink
Fixing mistake in automatic process grid formation
Browse files Browse the repository at this point in the history
  • Loading branch information
poulson committed Mar 15, 2013
1 parent 06f0eb5 commit 691a055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Jack Poulson:
The complement of the following contributions.

Matthias Petschow, Paolo Bientinesi, and RWTH Aachen University:
The PMRRR library for hybrid symmetric tridiagonal eigensolutions.
The PMRRR library for hybrid symmetric tridiagonal eigensolutions and a bug
fix for the Grid class.

Univ. of Tennessee, Univ. of California Berkeley, and NAG Ltd.:
The serial code for the safe inversion process during the calculation of
Expand Down
2 changes: 1 addition & 1 deletion include/elemental/core/grid_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inline int
Grid::FindFactor( int p )
{
int factor = int(sqrt(double(p)));
while( factor % p != 0 )
while( p % factor != 0 )
++factor;
return factor;
}
Expand Down

0 comments on commit 691a055

Please sign in to comment.