remove meaningless typecast

This commit is contained in:
Axel Kohlmeyer
2021-02-02 14:36:37 -05:00
parent 1da3ba87f4
commit 5196926c28
2 changed files with 8 additions and 8 deletions

View File

@ -849,11 +849,11 @@ void Force::set_special(int narg, char **arg)
double Force::memory_usage()
{
double bytes = 0;
if (pair) bytes += static_cast<bigint> (pair->memory_usage());
if (bond) bytes += static_cast<bigint> (bond->memory_usage());
if (angle) bytes += static_cast<bigint> (angle->memory_usage());
if (dihedral) bytes += static_cast<bigint> (dihedral->memory_usage());
if (improper) bytes += static_cast<bigint> (improper->memory_usage());
if (kspace) bytes += static_cast<bigint> (kspace->memory_usage());
if (pair) bytes += pair->memory_usage();
if (bond) bytes += bond->memory_usage();
if (angle) bytes += angle->memory_usage();
if (dihedral) bytes += dihedral->memory_usage();
if (improper) bytes += improper->memory_usage();
if (kspace) bytes += kspace->memory_usage();
return bytes;
}

View File

@ -1697,8 +1697,8 @@ double Modify::memory_usage()
{
double bytes = 0;
for (int i = 0; i < nfix; i++)
bytes += static_cast<bigint> (fix[i]->memory_usage());
bytes += fix[i]->memory_usage();
for (int i = 0; i < ncompute; i++)
bytes += static_cast<bigint> (compute[i]->memory_usage());
bytes += compute[i]->memory_usage();
return bytes;
}