Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/mantidproject/mantid.git. Pull mirroring updated .
  1. Apr 08, 2020
  2. Apr 07, 2020
    • Giovanni Di Siena's avatar
      Replace boost::shared with std::shared · 11994bc3
      Giovanni Di Siena authored and Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony committed
      In places other substitutions have been made, e.g
      Clang does not yet specialize std::shared_ptr for T[]. Vector
      has been used instead. The operator[] methods were incorrectly
      marked const but returning a non-const reference - this has been fixed.
      Refs #25842
      11994bc3
  3. Apr 02, 2020
  4. Mar 31, 2020
  5. Mar 30, 2020
  6. Mar 26, 2020
  7. Mar 25, 2020
  8. Mar 20, 2020
    • Danny Hindson's avatar
      Add ability to load measured attenuation profile for material · 74316a4b
      Danny Hindson authored
      Add feature where an externally generated attenuation profile can be loaded into
      the material definition from a .DAT text file. This will override the normal
      exp(-alpha*thickness) calculation of the attenuation. The new feature was requested
      as part of the absorption calculation for the Pearl instrument where some parts
      of the environment are crystalline
      
      Found the lookup\interpolation on the loaded profile was slowing down the absorption
      Monte Carlo calculation.
      So improved performance of Kernel::Interpolation. Changed it to use vector of pairs
      instead of two separate vectors to reduce amount of navigation around vectors
      
      Considered adding feature into AttenuationProfile where I add any interpolated points
      into the override attenuation profile to prevent interpolation next iteration of
      Monte Carlo simulation. However wasn't convinced this was going to be thread-safe
      during the parallel part of the absorption calculation - may revisit this. While doing
      this investigation I fixed the following issues with the function Interpolation::AddPoint:
      
      a) it doesn't add the same point twice
      b) it reuses the lower_bound function rather than stepping through the vector sequentially
      
      I removed the exception from findIndexOfNextLargerValue because the end()
      iterator is a valid result if the x value supplied equals the last x value
      already in the vector. Could have left check in for begin() but didn't seem
      much point
      
      Finally - the interpolation outside the range is not v good. The data at the extremes
      is noisy so we end up extrapolating based on random gradient in extreme 2 points. Need
      to either fit or use more points to determine gradient
      74316a4b
    • Nick Draper's avatar
      Updated mantid copyright statement to add CSNS · 98cdc389
      Nick Draper authored
      Also updated class_maker.py
      98cdc389
  9. Mar 13, 2020
  10. Mar 06, 2020
  11. Mar 02, 2020
  12. Feb 03, 2020
    • Danny Hindson's avatar
      Only use NumberOfWavelengthPoints if resimulating tracks · d48169a8
      Danny Hindson authored
      A new boolean parameter SimulateTracksForEachWavelength has been added to
      the MonteCarloAbsorption algorithm. This exposes a switch on the MCAbsorptionStrategy
      that was present before this change but was hardcoded to False.
      
      The parameter NumberOfWavelengthPoints is only required if SimulateTracksForEachWavelength
      is set to True. This change means that an attenuation factor is calculated for all wavelength
      bins if SimulateTracksForEachWavelength=false. To facilitate this a performance enhancement
      has been made to the Material class to calculate the total scatter cross section and the
      absorption cross section once when the Material rather than every time these cross sections
      are retrieved by the MonteCarloAbsorption calculation.
      
      This change required some unit and system tests to be updated eg ILLDirectGeometryReductionTest
      has been changed to remove the NumberOfWavelengthPoints parameter and the reference file to be
      updated. To make this test more robust I have increased the number of scenarios used in the MC
      simulation from 5000 to 20000
      d48169a8
  13. Jan 29, 2020
  14. Jan 28, 2020
  15. Jan 23, 2020
  16. Jan 22, 2020
  17. Jan 09, 2020
  18. Jan 06, 2020
  19. Dec 24, 2019
  20. Dec 13, 2019
    • Conor Finn's avatar
      RE #27582 Make config threads compiler dependent · 2933b705
      Conor Finn authored
      Windows devices have been running into issues in places where calling
      the functions created to fix an issue on Unix machines in parallel
      regions was causing error messages to  appear.
      
      This is due to changes in implementation of omp_set_num_threads between
      OpenMP v2 and v2.5+. As MSVC uses the older version of OpenMP I have
      added a check that does not bother with the changes from the previous
      fix if compiled with MSVC, as the original issue only appeared on non
      MSVC compiled versions anyway.
      2933b705
  21. Dec 11, 2019
    • David Fairbrother's avatar
      Refactor TSP Split By Vector · 4884c907
      David Fairbrother authored
      TimeSeriesProperty::SplitByTimeVector has a potential bug were
      exploring, however it is currently very difficult to understand. This
      commit refactors the method to make it readable
      4884c907
    • Martyn Gigg's avatar
      Make convenience declareProperty methods to public · 6ae22870
      Martyn Gigg authored
      The main declareProperty that accepted a pointer to a new Property
      was public so having the others protected makes little sense
      as you could always achieve the same end result from the public
      method but with more verbosity at the call site.
      6ae22870
  22. Dec 09, 2019
  23. Dec 06, 2019
  24. Dec 04, 2019
  25. Dec 03, 2019
  26. Dec 02, 2019
  27. Nov 26, 2019
Loading