make sure array is initialized

This commit is contained in:
Axel Kohlmeyer
2022-09-22 12:24:09 -04:00
parent e3729e51e8
commit 4a072d10db

View File

@ -376,7 +376,7 @@ void FixChargeRegulation::forward_acid() {
double energy_before = energy_stored;
double factor;
double dummyp[3];
double dummyp[3] = {0.0, 0.0, 0.0};
double pos[3] = {0.0, 0.0, 0.0}; // acid/base particle position
double pos_all[3] = {0.0, 0.0, 0.0};
int m1 = -1, m2 = -1;