diff --git a/qpms/ewald.c b/qpms/ewald.c index cebf428..943a37a 100644 --- a/qpms/ewald.c +++ b/qpms/ewald.c @@ -562,7 +562,7 @@ int ewald3_1_z_sigma_long ( assert(beta.x == 0 && beta.y == 0); assert(particle_shift.x == 0 && particle_shift.y == 0); const double beta_z = beta.z; - const double particle_shift_z = particle_shift_z; + const double particle_shift_z = particle_shift.z; const qpms_y_sc_t nelem_sc = c->nelem_sc; const qpms_l_t lMax = c->lMax; diff --git a/qpms/latticegens.c b/qpms/latticegens.c index 36559ec..f369e42 100644 --- a/qpms/latticegens.c +++ b/qpms/latticegens.c @@ -621,10 +621,10 @@ typedef struct PGen_LatticeRadialHeap_StateData { size_t heap_capacity; double *r_heap; int *coord_heap; - double b[0]; // basis vectors and offset double offset_r; double minR, maxR; bool inc_minR, inc_maxR; + double b[0]; // basis vectors and offset } PGen_LatticeRadialHeap_StateData; static inline double nd2norm(const double a[], int d) {