Skip to content

Commit 2fcce97

Browse files
Fix bug with particle properties of new stars in SeBa (#1125)
* Use all arguments of addstar in new_particle for ZAMS stars
1 parent b5b444e commit 2fcce97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/amuse/community/seba/interface.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ int new_particle(int * index_of_the_star, double mass){
456456
new_node->set_elder_sister(seba_insertion_point);
457457
seba_insertion_point = new_node;
458458
}
459-
460-
addstar(new_node, seba_time, start_type, seba_metallicity, 0, false);
459+
460+
addstar(new_node, seba_time, start_type, seba_metallicity, 0, false, start_type, mass, mass, 0, 0, 0);
461461
new_node->get_starbase()->set_time_offset(seba_time);
462462
*index_of_the_star = next_seba_id;
463463

0 commit comments

Comments
 (0)