must use array delete and not scalar delete on char array

This commit is contained in:
Axel Kohlmeyer
2023-08-25 10:05:11 -04:00
parent 76c0632363
commit fee9a77fb4

View File

@ -659,7 +659,7 @@ void DynMat::Define_Conversion_Factor()
if (fabs(boltz - 1.) <= ZERO){ // LJ Unit
eml2f = eml2fc = 1.;
delete funit;
delete[] funit;
funit = new char[27];
strcpy(funit,"sqrt(epsilon/(m.sigma^2))");