remove meaningless typecast
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user