1. 26 Mar, 2019 1 commit
    • Enrico Bothmann's avatar
      Replace C++ MPI bindings with C MPI bindings · f4e3273e
      Enrico Bothmann authored
      The C++ MPI bindings have been deprecated a long time ago and are e.g.
      not enabled per default in OpenMPI 4 (or even present, since I found the
      open-mpi configure flag to be defunct for me). Custom wrapper functions
      are now defined in My_MPI class.
  2. 11 Feb, 2019 1 commit
  3. 24 Jan, 2019 1 commit
    • Enrico Bothmann's avatar
      Rewrite settings input using YAML · eb96f45c
      Enrico Bothmann authored
      This commit closes #10.
      - Replace custom configuration parsing and format with a YAML-based
      - Improve implementation of settings handling to enable features such
        - Generally only specify defaults once in the code, not scattered
          throughout with possibly different values
        - Print comprehensive report of values used for each setting at the
          end of a run
        - Warn when a setting is specified that is not used during a run (this
          is foreseen and now possible, but not implemented yet)
      NOTE: This is a squashed commit to keep the commit history of master
      simple. The full history of the development branch will be retained as
      10-rewrite-settings-input+commit-history in case it is needed, e.g. to
      find a (small) changeset that introduced a bug using git-bisect.
      A good example for new syntax is:
      The command line can process words using the YAML syntax, but also
      supports the old legacy syntax, at least for scalar settings.
      In the code, setting default settings and getting the resolved value
      for a setting can be done e.g. as follows:
      auto hds = Settings::GetMainSettings()["HARD_DECAYS"];
      const auto apply_br
        = hds["Apply_Branching_Ratios"].SetDefault(true).Get<bool>();
      Note also that Sherpa can now process several configuration files:
      `Sherpa "RUNDATA: [1.yaml, 2.yaml, ...]"`, with settings in files to the
      right taking precedence over settings in files to the left. This can be
      useful for specifying base set-ups and then deriving specialisations.
      A more detailed discussion of the new settings architecture is given
      (accessing this link might require developer access to the repository).
      Lastly, note that physics results are guaranteed to stay the same after
      this commit. If you find that to be not true, please contact me. When
      soft physics is used, numerics sometimes causes the statistics not to be
      the same after this commit. However, I've got some patches to mitigate
      this to some degree. So in any case, contact me if you find differences
      between results generated with this commit and the preceding one.
  4. 17 Jan, 2019 1 commit
  5. 06 Jan, 2019 1 commit
    • Enrico Bothmann's avatar
      Fix (limited) Gaussian random number generation · de30ff96
      Enrico Bothmann authored
      ... for the primordial kT determination. The Marsaglia algorithm was
      wrongly implemented (and missed an opportunity for optimisation by not
      storing the second Gaussian random number for later use), and the
      LimitedWeight function did not rescale its hit-or-miss comparison
      function to a maximum of 1, which was extremely inefficient for low
      kTmax, where basically every kT candidate was unnecessarily rejected by
      Other changes
      The Gaussian random number algorithm is now implemented in Random.H and
      supersedes the previous one, which was less efficient. At that
      opportunity, I have also removed superfluous `inline` keyword uses in
      front of member function definitions.
      Observations in performance measurements
      - When running 10k events for Examples/CI/LO_Z, this will increase event
        generation speed by ~50% when using -O3. This measurement will vary
        strongly, because events with very low kTmax seem to occur only every
        few thousand events.
      - There is however a significant increase in Retried events from
        Hadron_Decays (before 9, after 38).
      Further remarks
      - Note that there is a chance that this fix renders previous tuning partly
      - Note that the Primordial kT generation using a Gaussian with a fixed
        width and an a-posteriori hit-or-miss Monte-Carlo that can have a
        width that is way smaller might still be very inefficient. The Gaussian
        generates a lot of large numbers before being accepted by the
        LimitedWeight. The Gaussian takes a kTmax argument but does not use it.
        This raises the question if perhaps this is not intended behaviour in
        the first place.
  6. 04 Jan, 2019 1 commit
  7. 12 Sep, 2018 1 commit
  8. 13 Apr, 2018 1 commit
    • Frank Siegert's avatar
      Update Decaydata · 107e2fc3
      Frank Siegert authored
      - Update neutral meson mixing constants and enable mixing by default.
      - New Lamdab decay modes
  9. 12 Apr, 2018 1 commit
  10. 17 Mar, 2018 1 commit
  11. 14 Mar, 2018 1 commit
  12. 02 Mar, 2018 1 commit
  13. 26 Feb, 2018 1 commit
  14. 12 Feb, 2018 1 commit
  15. 19 Jan, 2018 1 commit
  16. 27 Nov, 2017 1 commit
  17. 22 May, 2017 1 commit
  18. 28 Feb, 2017 1 commit
  19. 09 Feb, 2017 2 commits
  20. 10 Jan, 2017 1 commit
  21. 09 Jan, 2017 1 commit
    • Enrico Bothmann's avatar
      svn merge ^/trunk/SHERPA@29448 ^/branches/readin@29448 · 1cb90c9e
      Enrico Bothmann authored
      This reintegrates the readin branch, replacing Data_Reader with its new
      subclass Default_Reader, wherever parameters are read from the run card(s) or
      the command line. This simplifies this use case and and enforces consistency.
      A lot of duplicate code is removed, too. Data_Reader is still used for more
      low-level string parsing.
  22. 17 Nov, 2016 1 commit
  23. 31 Oct, 2016 1 commit
  24. 13 Oct, 2016 2 commits
  25. 24 Jun, 2016 1 commit
  26. 12 Jan, 2016 1 commit
  27. 04 Sep, 2015 1 commit
  28. 29 Jun, 2015 1 commit
  29. 24 Apr, 2015 1 commit
  30. 12 Apr, 2015 1 commit
  31. 08 Apr, 2015 1 commit
  32. 30 Mar, 2015 1 commit
  33. 28 Mar, 2015 1 commit
  34. 25 Sep, 2014 1 commit
  35. 28 Jan, 2014 1 commit
  36. 10 Jan, 2014 1 commit
  37. 07 Jan, 2014 1 commit
  38. 31 Dec, 2013 1 commit