golosio / xrmc

17 stars 10 forks source link

slowdown fixed #16

Closed tschoonj closed 10 years ago

tschoonj commented 10 years ago

had to do with NIST database addition: I didn't realize that at any given moment the complete Comp.Ph array would be used for the Mu calculation: so the slowdown was because the code was calculating attenuation coefficients for all 180 NIST compounds + the user defined ones.

I have introduced code that fixes this: in geom3d's RunInit I am now calling ReduceMap, which will shrink the Ph array to what is actually need based on the required phases.