Skip to content

Commit

Permalink
simple shearing sheet example works
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Apr 11, 2021
1 parent e2d198f commit ca0e705
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/shearing_sheet/problem.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ int main(int argc, char* argv[]) {
// Setup constants
r->opening_angle2 = .5; // This determines the precission of the tree code gravity calculation.
reb_simulation_set_integrator(r, "sei");
r->integrator = REB_INTEGRATOR_SEI; // old TODO REMOVE
r->boundary = REB_BOUNDARY_SHEAR;
r->gravity = REB_GRAVITY_TREE;
r->collision = REB_COLLISION_TREE;
Expand Down
2 changes: 1 addition & 1 deletion src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ void reb_display_init(struct reb_simulation * const r){
data->spheres = 0;
data->pause = 0;
data->multisample = 1;
if (data->r->integrator==REB_INTEGRATOR_WHFAST){
if (strcmp(data->r->integrator_selected->name,"whfast")==0){
data->wire = 1;
}else{
data->wire = 0;
Expand Down

0 comments on commit ca0e705

Please sign in to comment.