@@ -27,14 +27,14 @@ The syntax is as follows:
2727=== "C"
2828 ```c
2929 struct reb_simulation* r = reb_simulation_create();
30- reb_simulation_configure_box(r, 10., 1, 1, 1); # confine the simulation to a box of size 10
30+ r->root_size = 10.0 # confine the simulation to a box of size 10
3131 r->boundary = REB_BOUNDARY_OPEN;
3232 ```
3333
3434=== "Python"
3535 ```python
3636 sim = rebound.Simulation()
37- sim.configure_box( 10.) # confine the simulation to a box of size 10
37+ sim.root_size = 10.0 # confine the simulation to a box of size 10
3838 sim.boundary = "open"
3939 ```
4040
@@ -46,14 +46,20 @@ The syntax is as follows:
4646=== "C"
4747 ```c
4848 struct reb_simulation* r = reb_simulation_create();
49- reb_simulation_configure_box(r, 10., 1, 2, 3); # confine the simulation to a box of size 10x20x30
49+ r->root_size = 10.0
50+ r->N_root_x = 1 // 1 is the default
51+ r->N_root_y = 2
52+ r->N_root_z = 3 // confine the simulation to a box of size 10x20x30
5053 r->boundary = reb_boundary_periodic;
5154 ```
5255
5356=== "python"
5457 ```python
5558 sim = rebound.simulation()
56- sim.configure_box(10., 1, 2, 3) # confine the simulation to a box of size 10x20x30
59+ sim.root_size = 10.0
60+ sim.N_root_x = 1 # 1 is the default
61+ sim.N_root_y = 2
62+ sim.N_root_z = 3 # confine the simulation to a box of size 10x20x30
5763 sim.boundary = "periodic"
5864 ```
5965
@@ -94,15 +100,15 @@ For more information on how to setup simulations of planetary rings in REBOUND,
94100=== "C"
95101 ```c
96102 struct reb_simulation* r = reb_simulation_create();
97- reb_simulation_configure_box(r, 10., 1, 1, 1);
103+ r->root_size = 10.0
98104 r->OMEGA = 1.0;
99105 r->boundary = REB_BOUNDARY_SHEAR;
100106 ```
101107
102108=== "Python"
103109 ```python
104110 sim = rebound.Simulation()
105- sim.configure_box( 10.)
111+ sim.root_size = 10.0
106112 sim.OMEGA = 1.0
107113 sim.boundary = "shear"
108114 ```
0 commit comments