Small fixes
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
parent
c18124b066
commit
3d95ec4b0a
@ -76,27 +76,27 @@ extern int readAtom_in(Atom*, Parameter*);
|
|||||||
extern void growAtom(Atom*);
|
extern void growAtom(Atom*);
|
||||||
|
|
||||||
#ifdef AOS
|
#ifdef AOS
|
||||||
#define POS_DATA_LAYOUT "AoS"
|
# define POS_DATA_LAYOUT "AoS"
|
||||||
#define atom_x(i) atom->x[(i) * 3 + 0]
|
# define atom_x(i) atom->x[(i) * 3 + 0]
|
||||||
#define atom_y(i) atom->x[(i) * 3 + 1]
|
# define atom_y(i) atom->x[(i) * 3 + 1]
|
||||||
#define atom_z(i) atom->x[(i) * 3 + 2]
|
# define atom_z(i) atom->x[(i) * 3 + 2]
|
||||||
#define atom_vx(i) atom->vx[(i) * 3 + 0]
|
# define atom_vx(i) atom->vx[(i) * 3 + 0]
|
||||||
#define atom_vy(i) atom->vx[(i) * 3 + 1]
|
# define atom_vy(i) atom->vx[(i) * 3 + 1]
|
||||||
#define atom_vz(i) atom->vx[(i) * 3 + 2]
|
# define atom_vz(i) atom->vx[(i) * 3 + 2]
|
||||||
#define atom_fx(i) atom->fx[(i) * 3 + 0]
|
# define atom_fx(i) atom->fx[(i) * 3 + 0]
|
||||||
#define atom_fy(i) atom->fx[(i) * 3 + 1]
|
# define atom_fy(i) atom->fx[(i) * 3 + 1]
|
||||||
#define atom_fz(i) atom->fx[(i) * 3 + 2]
|
# define atom_fz(i) atom->fx[(i) * 3 + 2]
|
||||||
#else
|
#else
|
||||||
#define POS_DATA_LAYOUT "SoA"
|
# define POS_DATA_LAYOUT "SoA"
|
||||||
#define atom_x(i) atom->x[i]
|
# define atom_x(i) atom->x[i]
|
||||||
#define atom_y(i) atom->y[i]
|
# define atom_y(i) atom->y[i]
|
||||||
#define atom_z(i) atom->z[i]
|
# define atom_z(i) atom->z[i]
|
||||||
#define atom_vx(i) atom->vx[i]
|
# define atom_vx(i) atom->vx[i]
|
||||||
#define atom_vy(i) atom->vy[i]
|
# define atom_vy(i) atom->vy[i]
|
||||||
#define atom_vz(i) atom->vz[i]
|
# define atom_vz(i) atom->vz[i]
|
||||||
#define atom_fx(i) atom->fx[i]
|
# define atom_fx(i) atom->fx[i]
|
||||||
#define atom_fy(i) atom->fy[i]
|
# define atom_fy(i) atom->fy[i]
|
||||||
#define atom_fz(i) atom->fz[i]
|
# define atom_fz(i) atom->fz[i]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,14 +22,6 @@ extern double computeForceLJFullNeigh_simd(Parameter*, Atom*, Neighbor*, Stats*)
|
|||||||
extern double computeForceLJHalfNeigh(Parameter*, Atom*, Neighbor*, Stats*);
|
extern double computeForceLJHalfNeigh(Parameter*, Atom*, Neighbor*, Stats*);
|
||||||
extern double computeForceEam(Eam*, Parameter*, Atom*, Neighbor*, Stats*);
|
extern double computeForceEam(Eam*, Parameter*, Atom*, Neighbor*, Stats*);
|
||||||
|
|
||||||
#ifdef USE_SIMD_KERNEL
|
|
||||||
# define KERNEL_NAME "SIMD"
|
|
||||||
# define computeForceLJFullNeigh computeForceLJFullNeigh_simd
|
|
||||||
#else
|
|
||||||
# define KERNEL_NAME "plain-C"
|
|
||||||
# define computeForceLJFullNeigh computeForceLJFullNeigh_plain_c
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Patterns
|
// Patterns
|
||||||
#define P_SEQ 0
|
#define P_SEQ 0
|
||||||
#define P_FIX 1
|
#define P_FIX 1
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
* with MD-Bench. If not, see <https://www.gnu.org/licenses/>.
|
* with MD-Bench. If not, see <https://www.gnu.org/licenses/>.
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
|
|
||||||
/* Park/Miller RNG w/out MASKING, so as to be like f90s version */
|
/* Park/Miller RNG w/out MASKING, so as to be like f90s version */
|
||||||
|
Loading…
Reference in New Issue
Block a user