remove double delete[]

This commit is contained in:
Axel Kohlmeyer
2024-08-30 23:22:29 -04:00
parent 0cdf8f2658
commit cdd2640101

View File

@ -295,7 +295,6 @@ void PairQUIP::coeff(int narg, char **arg)
// the location of the previously initialised potential to the quip_potential
// variable, and we will use it as a handle when calling the actual calculation
// routine. We return the cutoff as well.
delete[] quip_potential;
quip_potential = new int[n_quip_potential];
quip_lammps_potential_initialise(quip_potential, &n_quip_potential, &cutoff, quip_file,
&n_quip_file, quip_string, &n_quip_string);