Closed adhishm closed 11 years ago
Look at SlipPlane::dislocation_dislocationInteraction
.
In the annihilation event, the call SlipPlane::defects.erase(d0,d1)
erases d0 but not d1. See vector::erase. The call erase(first, last)
erases all elements in [first, last)
.
Error with defects resolved by using SlipPlane::defects.erase(d0, d1+1)
.
Error with dislocations resolved by using SlipPlane::dislocations.erase(dislocation0_iterator, dislocation1_iterator+1)
.
After the annihilation event, when the function
SlipPlane::calculateDislocationStresses
callsDefect::stressField
, the program throws a segmentation fault at the call for the dislocation.