Skip to content

Conversation

@KatrinKoesler
Copy link
Collaborator

@KatrinKoesler KatrinKoesler commented Oct 24, 2025

Split Solver.run() function to be able to run simulations with multiple different time scales

Current situation

It is only possible to have one integrator per simulation, so setting up of simulations that require multiple time scales cannot be implemented.

Release Notes

  • split up the functionalities of the former Solver.run() function in three smaller functions (functionalities: setting up the initial state, setting up the integrator, and running the integration)
  • new Solver.run() function calls the three smaller functions

Testing

All tests run

Code of Conduct & Contributing Guidelines

Copy link
Member

@mrp089 mrp089 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some minor things

.def("run", &Solver::run)
.def("setup_initial", &Solver::setup_initial)
.def("setup_integrator", &Solver::setup_integrator)
.def("run_integration", &Solver::run_integration)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use run function instead

// *
// */
// void run();

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code

std::vector<double> times;
State initial_state;

// Time integration variables added as class variables
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comment and group new variables with the ones above (e.g. put the states together)

@mrp089 mrp089 mentioned this pull request Oct 24, 2025
1 task
@KatrinKoesler KatrinKoesler deleted the sphere_kinematic_gr branch October 28, 2025 14:43
@KatrinKoesler KatrinKoesler restored the sphere_kinematic_gr branch October 29, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants