mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6391 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
cb50d5d933
commit
857b143b58
|
@ -840,7 +840,7 @@ void bifactor(int n, int *factor1, int *factor2)
|
|||
{
|
||||
int n1,n2,facmax;
|
||||
|
||||
facmax = static_cast<int> (sqrt(n));
|
||||
facmax = static_cast<int> (sqrt((double) n));
|
||||
|
||||
for (n1 = facmax; n1 > 0; n1--) {
|
||||
n2 = n/n1;
|
||||
|
|
Loading…
Reference in New Issue