forked from lijiext/lammps
Simplify access to error in reax/c/omp
This commit is contained in:
parent
501558743b
commit
d4a495151e
|
@ -113,7 +113,7 @@ PairReaxCOMP::~PairReaxCOMP()
|
||||||
if (setup_flag) {
|
if (setup_flag) {
|
||||||
reax_list * bonds = lists+BONDS;
|
reax_list * bonds = lists+BONDS;
|
||||||
for (int i=0; i<bonds->num_intrs; ++i)
|
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);
|
memory->destroy(num_nbrs_offset);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue