Fix invalid values for cycles per neighbor
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
parent
11b2d4bcc1
commit
0a81407948
@ -201,7 +201,7 @@ int main(int argc, const char *argv[]) {
|
|||||||
double T_accum = E-S;
|
double T_accum = E-S;
|
||||||
const double atoms_updates_per_sec = atom->Nlocal * param.ntimes / T_accum;
|
const double atoms_updates_per_sec = atom->Nlocal * param.ntimes / T_accum;
|
||||||
const double cycles_per_atom = T_accum * freq / (atom->Nlocal * param.ntimes);
|
const double cycles_per_atom = T_accum * freq / (atom->Nlocal * param.ntimes);
|
||||||
const double cycles_per_neigh = cycles_per_atom / (atoms_per_unit_cell - 1);
|
const double cycles_per_neigh = cycles_per_atom / (double)(atoms_per_unit_cell - 1);
|
||||||
|
|
||||||
if(!csv) {
|
if(!csv) {
|
||||||
printf("Total time: %.4f, Mega atom updates/s: %.4f\n", T_accum, atoms_updates_per_sec / 1.E6);
|
printf("Total time: %.4f, Mega atom updates/s: %.4f\n", T_accum, atoms_updates_per_sec / 1.E6);
|
||||||
|
Loading…
Reference in New Issue
Block a user