Skip to content

Commit

Permalink
Increased size paramlog
Browse files Browse the repository at this point in the history
  • Loading branch information
nelemans committed Nov 14, 2024
1 parent 3ad5679 commit e403180
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dstar/SeBa.C
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ int main(int argc, char ** argv) {

int input_seed=0;
char seedlog[64];
char paramlog[90];
char paramlog[110];

//check_help();

Expand Down Expand Up @@ -349,13 +349,15 @@ int main(int argc, char ** argv) {

int actual_seed = srandinter(input_seed);
cerr << "random number generator seed = " << actual_seed << endl;
sprintf(paramlog,
" alpha = %3.1f\n lambda = %3.1f\n beta = %3.1f\n gamma = %4.2f\n CE_method = %d",
sprintf(paramlog,
" alpha = %3.1f\n lambda = %3.1f\n beta = %3.1f\n gamma = %4.2f\n CE_method = %d\n Jloss_method = %d \n",
cnsts.parameters(common_envelope_efficiency),
cnsts.parameters(envelope_binding_energy),
cnsts.parameters(specific_angular_momentum_loss),
cnsts.parameters(dynamic_mass_transfer_gamma)),
cnsts.use_common_envelope_method();
cnsts.use_common_envelope_method(),
cnsts.use_jloss_method()
);

if (n <= 0) err_exit("mknodes: N > 0 required!");

Expand Down

1 comment on commit e403180

@rieder
Copy link
Member

@rieder rieder commented on e403180 Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit of code probably needs rewriting, see #24. Here, paramlog is only extended to accommodate the new Jloss_method, but it was already too short in some cases.

Please sign in to comment.