disorderedmaterials / dissolve

Structure refinement software for total scattering data
GNU General Public License v3.0
9 stars 16 forks source link

refactor: Tidy site generation #1910

Closed trisyoungs closed 4 months ago

trisyoungs commented 4 months ago

This PR tidies "unique site" generation - these are instances of a SpeciesSite description occurring in the same Species. These instances are generated from either dynamic element / atom type selection, or via NETA fragment description. Previously, the generated vectors of indices corresponding to the origin, xAxis, yAxis, as well as "all involved atoms" were held in separate std::vectors of std::vectors which was a bit messy. Here we introduce a SpeciesSiteInstance class to knit the information corresponding to individual instances together more tightly.