Skip to content

Commit

Permalink
Merge pull request #102 from hannorein/no_reb_max_messages
Browse files Browse the repository at this point in the history
Minor changes
  • Loading branch information
matthewholman committed Mar 29, 2024
2 parents 5b750b2 + 38e8428 commit 9d0dfcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/assist.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
#include "planets.h"
#include "forces.h"

const int reb_max_messages_length = 1024; // needs to be constant expression for array size
const int reb_max_messages_N = 10;

#define STRINGIFY(s) str(s)
#define str(s) #s

Expand Down Expand Up @@ -308,6 +305,7 @@ void assist_init(struct assist_extras* assist, struct reb_simulation* sim, struc
sim->extras_cleanup = assist_extras_cleanup;
sim->additional_forces = assist_additional_forces;
sim->force_is_velocity_dependent = 1;
sim->ri_ias15.adaptive_mode = 1; // Use legacy IAS15 timestepping mode
}

void assist_free_pointers(struct assist_extras* assist){
Expand Down
2 changes: 2 additions & 0 deletions src/forces.c
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,7 @@ static void assist_additional_force_eih_GR(struct reb_simulation* sim,
}
}

#if 0
static void assist_additional_force_eih_GR_orig(struct reb_simulation* sim,
int eih_loop_limit,
double xo, double yo, double zo,
Expand Down Expand Up @@ -2506,3 +2507,4 @@ static void assist_additional_force_eih_GR_orig(struct reb_simulation* sim,
}
}
}
#endif

0 comments on commit 9d0dfcc

Please sign in to comment.