make certain that the vector storage and the size_vector variable are consistent in computes

This commit is contained in:
Axel Kohlmeyer
2019-07-01 17:10:21 -04:00
parent 5e3a705911
commit 7547e1dae6
25 changed files with 27 additions and 27 deletions

View File

@ -101,7 +101,7 @@ ComputePressure::ComputePressure(LAMMPS *lmp, int narg, char **arg) :
error->all(FLERR,"Compute pressure requires temperature ID "
"to include kinetic energy");
vector = new double[6];
vector = new double[size_vector];
nvirial = 0;
vptr = NULL;
}