Simplify access to error in reax/c/omp

This commit is contained in:
mkanski 2019-04-03 19:40:40 +02:00
parent 501558743b
commit d4a495151e
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ PairReaxCOMP::~PairReaxCOMP()
if (setup_flag) {
reax_list * bonds = lists+BONDS;
for (int i=0; i<bonds->num_intrs; ++i)
sfree(LAMMPS_NS::Pointers::lmp->error, bonds->select.bond_list[i].bo_data.CdboReduction, "CdboReduction");
sfree(error, bonds->select.bond_list[i].bo_data.CdboReduction, "CdboReduction");
}
memory->destroy(num_nbrs_offset);