Commit 05fbf934 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

skip deleting internal data before setup has been run

parent 7a4a5698
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -84,10 +84,11 @@ PairReaxCOMP::PairReaxCOMP(LAMMPS *lmp) : PairReaxC(lmp), ThrOMP(lmp, THR_PAIR)

PairReaxCOMP::~PairReaxCOMP()
{
  if (setup_flag) {
    reax_list * bonds = lists+BONDS;
    for (int i=0; i<bonds->num_intrs; ++i)
      sfree(bonds->select.bond_list[i].bo_data.CdboReduction, "CdboReduction");

  }
  memory->destroy(num_nbrs_offset);

#ifdef OMP_TIMING