more typecasts to double to avoid 32-bit int overflows when computing memory usage
This commit is contained in:
@ -261,7 +261,7 @@ double FixTISpring::compute_vector(int n)
|
||||
|
||||
double FixTISpring::memory_usage()
|
||||
{
|
||||
double bytes = atom->nmax*3 * sizeof(double);
|
||||
double bytes = (double)atom->nmax*3 * sizeof(double);
|
||||
return bytes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user