adhishm / dd2d_Matryoshka

A set of classes defining the behaviour of crystalline defects, with the final goal of carrying out dislocation dynamics simulations in two dimensions.
Other
5 stars 4 forks source link

Use pointers #7

Closed adhishm closed 11 years ago

adhishm commented 11 years ago

Take care to use Defect* as the type for the std::vector. When Defect is used, and a virtual function is called, the implementation of the base class, Defect in this case, is carried out instead of the one from the derived classes such as Dislocation, etc.

adhishm commented 11 years ago

All vectors are now using pointers.