qB = qA;
}
+ bool havePerturbedInteractions = false;
+
iabuf_nalloc = 0;
iabuf = nullptr;
{
iabuf[ib++] = iatoms[i++];
}
+
+ havePerturbedInteractions = true;
}
else
{
sfree(iabuf);
- idef->ilsort = ilsortFE_SORTED;
+ idef->ilsort = (havePerturbedInteractions ? ilsortFE_SORTED : ilsortNO_FE);
}