Removed debug prints, only zero atom forces and not copy them, added measurements
This commit is contained in:
13
src/main.c
13
src/main.c
@@ -111,20 +111,13 @@ double reneighbour(
|
||||
{
|
||||
double S, E;
|
||||
|
||||
printf("10.1\r\n");
|
||||
|
||||
S = getTimeStamp();
|
||||
LIKWID_MARKER_START("reneighbour");
|
||||
printf("10.2\r\n");
|
||||
updateAtomsPbc(atom, param);
|
||||
printf("10.3\r\n");
|
||||
setupPbc(atom, param);
|
||||
printf("10.4\r\n");
|
||||
updatePbc(atom, param);
|
||||
printf("10.5\r\n");
|
||||
//sortAtom(atom);
|
||||
buildNeighbor(atom, neighbor);
|
||||
printf("10.6\r\n");
|
||||
LIKWID_MARKER_STOP("reneighbour");
|
||||
E = getTimeStamp();
|
||||
|
||||
@@ -288,18 +281,12 @@ int main(int argc, char** argv)
|
||||
const bool doReneighbour = (n + 1) % param.every == 0;
|
||||
const bool doesReneighbourNextRound = (n + 2) % param.every == 0;
|
||||
|
||||
printf("Run %d does reneighbour: %d\r\n", n, doReneighbour);
|
||||
|
||||
printf("10\r\n");
|
||||
|
||||
if(doReneighbour) {
|
||||
timer[NEIGH] += reneighbour(¶m, &atom, &neighbor);
|
||||
} else {
|
||||
updatePbc(&atom, ¶m);
|
||||
}
|
||||
|
||||
printf("11\r\n");
|
||||
|
||||
if(param.force_field == FF_EAM) {
|
||||
timer[FORCE] += computeForceEam(&eam, ¶m, &atom, &neighbor, &stats, 0, n + 1);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user