From 8a8e506ab5adc7c66a19232e1f955c755ccf82cc Mon Sep 17 00:00:00 2001 From: David A Minton Date: Fri, 19 May 2023 13:33:08 -0400 Subject: [PATCH] Simplified initial conditions of basic simulation to run from the Python script --- examples/Basic_Simulation/initial_conditions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Basic_Simulation/initial_conditions.py b/examples/Basic_Simulation/initial_conditions.py index 564c2ebee..1e7cd5cd6 100755 --- a/examples/Basic_Simulation/initial_conditions.py +++ b/examples/Basic_Simulation/initial_conditions.py @@ -74,10 +74,10 @@ capm_tp = default_rng().uniform(0.0, 360.0, ntp) sim.add_body(name=name_tp, a=a_tp, e=e_tp, inc=inc_tp, capom=capom_tp, omega=omega_tp, capm=capm_tp) - -# Run the simulation. Arguments may be defined here or thorugh the swiftest.Simulation() method. -#sim.run(tstart=0.0, tstop=1.0e3, dt=0.01, istep_out=100, dump_cadence=10) sim.set_parameter(tstart=0.0, tstop=1.0e3, dt=0.01, istep_out=100, dump_cadence=0) # Display the run configuration parameters. sim.get_parameter() sim.save() + +# Run the simulation. Arguments may be defined here or thorugh the swiftest.Simulation() method. +sim.run()