Update stubbed force calculation

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti
2021-04-07 00:46:51 +02:00
parent 77a0774208
commit 706f1c38f2
5 changed files with 43 additions and 42 deletions

View File

@@ -47,7 +47,7 @@ typedef enum {
NUMTIMER
} timertype;
extern double computeForce( Parameter*, Atom*, Neighbor*, int);
extern double computeForce( Parameter*, Atom*, Neighbor*, int, int);
void init(Parameter *param)
{
@@ -205,7 +205,7 @@ int main (int argc, char** argv)
setup(&param, &atom, &neighbor);
computeThermo(0, &param, &atom);
computeForce(&param, &atom, &neighbor, 1);
computeForce(&param, &atom, &neighbor, 1, 1);
timer[FORCE] = 0.0;
timer[NEIGH] = 0.0;
@@ -221,7 +221,7 @@ int main (int argc, char** argv)
timer[NEIGH] += reneighbour(&param, &atom, &neighbor);
}
timer[FORCE] += computeForce(&param, &atom, &neighbor, 1);
timer[FORCE] += computeForce(&param, &atom, &neighbor, 1, 1);
finalIntegrate(&param, &atom);
if(!((n + 1) % param.nstat) && (n+1) < param.ntimes) {