Skip to content

Commit

Permalink
Put setters back in new_advanced_particle
Browse files Browse the repository at this point in the history
  • Loading branch information
cournoyercloutierc committed Jan 21, 2025
1 parent e6f3277 commit 09bd76b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/amuse/community/seba/interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -484,14 +484,19 @@ int new_advanced_particle(int * index_of_the_star, double mass, double relative
seba_insertion_point = new_node;
}

stellar_type seba_stellar_type = translate_int_to_stellar_type(type_number);
stellar_type seba_stellar_type = translate_int_to_stellar_type(type_number);

addstar(new_node, seba_time, seba_stellar_type, seba_metallicity, 0, false, seba_stellar_type, relative_mass, mass - core_mass, core_mass, COcore_mass, relative_age);
new_node->get_starbase()->set_time_offset(seba_time);
*index_of_the_star = next_seba_id;

next_seba_id++;

new_node->get_starbase()->set_relative_age(relative_age);
new_node->get_starbase()->set_core_mass(core_mass);
new_node->get_starbase()->set_COcore_mass(COcore_mass);
new_node->get_starbase()->set_effective_radius(radius);

return 0;
}

Expand Down

0 comments on commit 09bd76b

Please sign in to comment.