Skip to content

Commit

Permalink
Fix bug with particle properties of new stars in SeBa (#1125)
Browse files Browse the repository at this point in the history
* Use all arguments of addstar in new_particle for ZAMS stars
  • Loading branch information
cournoyercloutierc authored Feb 27, 2025
1 parent b5b444e commit 2fcce97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/amuse/community/seba/interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ int new_particle(int * index_of_the_star, double mass){
new_node->set_elder_sister(seba_insertion_point);
seba_insertion_point = new_node;
}
addstar(new_node, seba_time, start_type, seba_metallicity, 0, false);

addstar(new_node, seba_time, start_type, seba_metallicity, 0, false, start_type, mass, mass, 0, 0, 0);
new_node->get_starbase()->set_time_offset(seba_time);
*index_of_the_star = next_seba_id;

Expand Down

0 comments on commit 2fcce97

Please sign in to comment.