From a53202bad2277ae4a02ec9a7c16fa9a9a342b419 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 16 Jan 2020 17:23:57 -0500 Subject: [PATCH] removing the time estimate code for create_atoms completely, as we'll have linear scaling soon. --- src/create_atoms.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/create_atoms.cpp b/src/create_atoms.cpp index 868345e149..64c791ea22 100644 --- a/src/create_atoms.cpp +++ b/src/create_atoms.cpp @@ -776,24 +776,6 @@ void CreateAtoms::add_lattice() const double * const * const basis = domain->lattice->basis; - // rough estimate of total time used for create atoms. - // for a large number of atoms, one inner loop iteration - // takes about 25us on a typical desktop CPU core in 2020. - double testimate = 2.5e-5/3600.0; // convert seconds to hours - testimate *= static_cast(khi-klo+1); - testimate *= static_cast(jhi-jlo+1); - testimate *= static_cast(ihi-ilo+1); - testimate *= static_cast(nbasis); - double maxestimate = 0.0; - MPI_Reduce(&testimate,&maxestimate,1,MPI_DOUBLE,MPI_MAX,0,world); - - if ((comm->me == 0) && (maxestimate > 0.01)) { - if (screen) fprintf(screen,"WARNING: create_atoms will take " - "approx. %.2f hours to complete\n",maxestimate); - if (logfile) fprintf(logfile,"WARNING: create_atoms will take " - "approx. %.2f hours to complete\n",maxestimate); - } - int i,j,k,m; for (k = klo; k <= khi; k++) { for (j = jlo; j <= jhi; j++) {