Fix obvious errors caught by compiler

This commit is contained in:
Marek Nečada 2022-10-22 17:28:40 +03:00
parent 3a2fc6685c
commit 24c3ff386c
2 changed files with 2 additions and 2 deletions

View File

@ -562,7 +562,7 @@ int ewald3_1_z_sigma_long (
assert(beta.x == 0 && beta.y == 0); assert(beta.x == 0 && beta.y == 0);
assert(particle_shift.x == 0 && particle_shift.y == 0); assert(particle_shift.x == 0 && particle_shift.y == 0);
const double beta_z = beta.z; 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_y_sc_t nelem_sc = c->nelem_sc;
const qpms_l_t lMax = c->lMax; const qpms_l_t lMax = c->lMax;

View File

@ -621,10 +621,10 @@ typedef struct PGen_LatticeRadialHeap_StateData {
size_t heap_capacity; size_t heap_capacity;
double *r_heap; double *r_heap;
int *coord_heap; int *coord_heap;
double b[0]; // basis vectors and offset
double offset_r; double offset_r;
double minR, maxR; double minR, maxR;
bool inc_minR, inc_maxR; bool inc_minR, inc_maxR;
double b[0]; // basis vectors and offset
} PGen_LatticeRadialHeap_StateData; } PGen_LatticeRadialHeap_StateData;
static inline double nd2norm(const double a[], int d) { static inline double nd2norm(const double a[], int d) {