From 7e8fd96fa4501bf34af4da83dd70bfa9c844cd10 Mon Sep 17 00:00:00 2001 From: Martin Bauernfeind Date: Sun, 3 Jul 2022 21:14:33 +0200 Subject: [PATCH] Fixed some compiler errors - the simulation seems to be off regarding how many ghost atoms are used -> some bugfixing might be needed --- src/includes/pbc.h | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/includes/pbc.h b/src/includes/pbc.h index 697ea4b..10234be 100644 --- a/src/includes/pbc.h +++ b/src/includes/pbc.h @@ -25,7 +25,7 @@ #ifndef __PBC_H_ #define __PBC_H_ -extern void initPbc(); +extern void initPbc(Atom*); extern void updatePbc(Atom*, Parameter*); extern void updatePbc_cuda(Atom*, Parameter*, Atom*, bool, const int); extern void updateAtomsPbc(Atom*, Parameter*); diff --git a/src/main.c b/src/main.c index ef9e6eb..19efda9 100644 --- a/src/main.c +++ b/src/main.c @@ -347,7 +347,7 @@ int main(int argc, char** argv) if(doReneighbour) { timer[NEIGH] += reneighbour(¶m, &atom, &neighbor, &c_atom, &c_neighbor, num_threads_per_block); } else { - updatePbc(&atom, ¶m, &c_atom, false, num_threads_per_block); + updatePbc_cuda(&atom, ¶m, &c_atom, false, num_threads_per_block); } if(param.force_field == FF_EAM) {