From 841dfb9490424ab94bcea132d1019d715efe8285 Mon Sep 17 00:00:00 2001 From: Rafael Ravedutti Date: Tue, 9 Nov 2021 20:36:23 +0100 Subject: [PATCH] Fix data types for rdr and rdrho Signed-off-by: Rafael Ravedutti --- src/force_eam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/force_eam.c b/src/force_eam.c index a284e2e..c4d9fc7 100644 --- a/src/force_eam.c +++ b/src/force_eam.c @@ -43,7 +43,7 @@ double computeForceEam(Eam* eam, Parameter* param, Atom *atom, Neighbor *neighbo int* neighs; MD_FLOAT* fx = atom->fx; MD_FLOAT* fy = atom->fy; MD_FLOAT* fz = atom->fz; int ntypes = atom->ntypes; MD_FLOAT* fp = eam->fp; MD_FLOAT* rhor_spline = eam->rhor_spline; MD_FLOAT* frho_spline = eam->frho_spline; MD_FLOAT* z2r_spline = eam->z2r_spline; - int rdr = eam->rdr; int nr = eam->nr; int nr_tot = eam->nr_tot; int rdrho = eam->rdrho; + MD_FLOAT rdr = eam->rdr; int nr = eam->nr; int nr_tot = eam->nr_tot; MD_FLOAT rdrho = eam->rdrho; int nrho = eam->nrho; int nrho_tot = eam->nrho_tot; double S = getTimeStamp();