Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trees issues fixes #15

Closed
wants to merge 27 commits into from
Closed

Trees issues fixes #15

wants to merge 27 commits into from

Commits on Sep 14, 2023

  1. Remove unused variables in gas_cooling

    These were producing warnings, and thus prevented us from turning on
    -Werror on CI, which is something we'd like to have. I checked with
    Claudia, and she said it was safe to remove these.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    0ee81fe View commit details
    Browse the repository at this point in the history
  2. Receive exceptions by reference, not by value

    This was issuing a warning, so let's get rid of it.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    72eb976 View commit details
    Browse the repository at this point in the history
  3. Add documentation for black_hole_histories.hdf5 outputs

    Also make sure our CI jobs check that it doesn't go out of sync.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    d429e1e View commit details
    Browse the repository at this point in the history
  4. Prefer histogram's "density" argument over "normed"

    The latter has been deprecated since numpy 1.6, and effectively removed
    in the latest versions of numpy. The "density" argument has equivalent
    semantics, and the documentation states that it should be used instead.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    8c773fa View commit details
    Browse the repository at this point in the history
  5. Deal with OpenMP_CXX_FLAGS correctly

    This flag contains the *space-separated* flags that are needed for
    compiling OpenMP programs. This is not the format expected by
    add_compile_options though, so we need to turn the string into a list
    before passing it on.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4199fb3 View commit details
    Browse the repository at this point in the history
  6. Improve OpenMP checks

    There were a few things that were not correctly done around OpenMP
    checks that are being corrected here, namely:
    
     * Change DECLARED -> DEFINED, since the former doesn't mean anything
       (so this code has been always wrong).
     * Change OPENMP_FOUND -> OpenMP_FOUND, with the latter being the more
       generic way of checking the result of find_package.
     * Use the correct casing for the rest of OpenMP* variable, which were
       previously uppercased in our code.
     * Add a check for the OpenMP_CXX_VERSION variable in particular, which
       might be set while OpenMP_VERSION might not.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4bf3cd5 View commit details
    Browse the repository at this point in the history
  7. Finish porting all tests to GitHub Actions

    This new port now tries to *not* rely too much on GitHub Actions
    conventions (which are not that many, anyway), and also splits the big
    test.sh script we used with Travis into smaller scripts in a new .ci
    directory that can be invoked separately, therefore allowing us to model
    each individual test as a different step on the GitHub Actions workflow.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    ab93cda View commit details
    Browse the repository at this point in the history
  8. Run build/tests on PRs too

    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    c887fff View commit details
    Browse the repository at this point in the history
  9. Add black hole histories output documentation to TOC

    The new file had been added to the tree, but wasn't included anywhere in
    the documentation, duh!
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4732bd6 View commit details
    Browse the repository at this point in the history
  10. Specify build.os to keep RTD happy

    The implicit build.image is deprecated, so let's use the new build.os
    key explicitly instead.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    e1d904a View commit details
    Browse the repository at this point in the history
  11. Add GitHub action to ensure docs are correctly built

    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    6176d6f View commit details
    Browse the repository at this point in the history
  12. Add build.tools section, needed by RTD

    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    fbe4fa7 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Bump dependency on Boost to >= 1.68

    We used to depend on >= 1.54, but in a809629 we accidentally raised the
    minimum required Boost version to 1.68 (boost::optional::has_value() was
    introduced in that version to align with std::optional). This version of
    Boost is 5 years old though, so instead of modifying our code to cope
    with older versions, we're probably better off declaring a higher
    minimum version.
    
    This was the original cause of #13, and thus it should prevent this
    issue from happening again in the near future.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    efa8b0a View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Fix documentation building in GHA

    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    e75f8ff View commit details
    Browse the repository at this point in the history
  2. Include cstdint to ensure std::int64_t is visibile

    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    0f5a785 View commit details
    Browse the repository at this point in the history
  3. Add spin_mass_dependence option to dark_matter_halo group

    The option defaults to false, and indicates whether the lognormal
    distribution used to draw lambda values should use a fix value of 0.03,
    or a dynamic value based on the halo spin distribution following Kim et
    al. (2015), as its m parameter (the natural logarithm of the
    distribution's mean).
    
    The Lagos et al. (2023) paper used this dependency, and therefore we're
    also updating the sample configuration file that reflects that paper to
    ensure reproducibility.
    
    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    0cf9462 View commit details
    Browse the repository at this point in the history
  4. Actually read new dark_matter_halo.spin_mass_dependence

    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    602e808 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Configuration menu
    Copy the full SHA
    c0a4f42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ea18ad View commit details
    Browse the repository at this point in the history
  3. Fix mass swapping: use host halo properties for central subhalos and …

    …current properties or at infall for satellites
    angel-chandro committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    896dc0f View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Mass swapping: use host halo properties for central subhalos and curr…

    …ent properties or at infall for satellites. Massive transients: read catalogue with halos affected by this
    angel-chandro committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    6282ba2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34507a6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2cdcedb View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Made transients_prefix optional for easier use

    Signed-off-by: Rodrigo Tobar <[email protected]>
    rtobar committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    bb2b39e View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Modifications to mass swapping cases

    - separated the function to redefine subhalo properties into centrals
    and satellites. This is done because the one for centrals needs to be
    called before the function that defines ages, while the satellite one
    needs to be called afterwards.
    
    - Fixed the calculation for satellite subhalos to use the infall
    redshift rather than the current redshift (given that it was using all
    the properties at infall).
    cdplagos committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    22d1216 View commit details
    Browse the repository at this point in the history
  2. Implementing the mass swap fix as an option

    This leads to many changes to make sure one can run the previous model
    without the fixing of mass swapping events (to help with
    reproduceability).
    
    Another change is to make sure the angular momentum vector L of subhalos
    is redefine in the cases where lambda_random is used.
    cdplagos committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    c666ece View commit details
    Browse the repository at this point in the history
  3. Fixed several small bugs

    I also changed added a bool input to evolve_galaxy to indicate whether
    we want to apply the fix for the mass swapping cases.
    cdplagos committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    3011fba View commit details
    Browse the repository at this point in the history