Remove memory leak and unnecessary allocation

(cherry picked from commit c998f7b81f)
This commit is contained in:
Richard Berger 2016-08-15 22:51:41 -04:00 committed by Axel Kohlmeyer
parent c8fe3799ed
commit 587bafdf2d
1 changed files with 0 additions and 8 deletions

View File

@ -90,14 +90,6 @@ void FixQEqSlater::init()
void FixQEqSlater::extract_streitz()
{
int ntypes = atom->ntypes;
memory->create(chi,ntypes+1,"qeq:chi");
memory->create(eta,ntypes+1,"qeq:eta");
memory->create(gamma,ntypes+1,"qeq:gamma");
memory->create(zeta,ntypes+1,"qeq:zeta");
memory->create(zcore,ntypes+1,"qeq:zcore");
Pair *pair = force->pair_match("coul/streitz",1);
if (pair == NULL) error->all(FLERR,"No pair coul/streitz for fix qeq/slater");
int tmp;