projectchrono/chrono-flex

Spike::GPU Options

melanz opened this issue · 1 comments

Spike::GPU needs to be reset if any of the options are changed. The solver is currently created in the system constructor, so any changes to the solver options will required the solver to be reset.

The code should be changed so that setup() is called during the initialize() function.

The solver is now created and setup during the initialize() function. This means that any changes made to the solver before the initialize function will be saved. However, if the user wants to change the solver during the simulation, the solver must be reset.