Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • SWIFTsim SWIFTsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 56
    • Issues 56
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • SWIFT
  • SWIFTsimSWIFTsim
  • Merge requests
  • !1040

SF split: update s->mass_*_min and small fixes

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Loic Hausammann requested to merge update_sf_split into master Mar 17, 2020
  • Overview 13
  • Commits 3
  • Changes 4
  • When you form a star, GEAR's model decreases the mass of the part. Therefore s->min_part_mass needs to be updated.
  • When exchanging the particles (in the strays), you can exchange the lightest particle and therefore have a wrong s->min_*_mass. Therefore after the exchange, we need to recompute it.
  • In star_formation_copy_properties, I forgot to inverse spawn_part when providing the argument (due to the API change).
  • In GEAR's model, I forgot to divide by the number of stars per part.

For s->min_*mass, I think we are using it only for debugging checks. Should I put all the new code between #ifdef SWIFT_DEBUG_CHECKS?

I am still running the SmallCosmoVolume example with the full physics (4 ranks and currently at z=5.5) but I think it should be fine for the end of the simulation.

Edited Mar 17, 2020 by Loic Hausammann
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: update_sf_split