Skip to content

Commit

Permalink
Fix missing exit(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alseïdon committed Jan 20, 2025
1 parent 81bd474 commit 5100395
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ int flow(double endtime, MY_FLOAT *x, MY_FLOAT *y, MY_FLOAT *df)
{
case -1:
puts("Encountered error; exiting");
exit(1);
// exit(1);
return -1;
break;

case 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ int flow(double endtime, MY_FLOAT *x, MY_FLOAT *y, MY_FLOAT *df)
{
case -1:
puts("Encountered error; exiting");
exit(1);
// exit(1);
return -1;
break;

case 0:
Expand Down
3 changes: 2 additions & 1 deletion src/models/taylor_rpb_sun_earth/src/wrapper-rpb_sun_earth.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ int flow(double endtime, MY_FLOAT *x, MY_FLOAT *y, MY_FLOAT *df)
{
case -1:
puts("Encountered error; exiting");
exit(1);
// exit(1);
return -1;
break;

case 0:
Expand Down
3 changes: 2 additions & 1 deletion src/original_wrappers/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ int flow(double endtime, MY_FLOAT *x, MY_FLOAT *y, MY_FLOAT *df)
{
case -1:
puts("Encountered error; exiting");
exit(1);
// exit(1);
return -1;
break;

case 0:
Expand Down

0 comments on commit 5100395

Please sign in to comment.