I have a simple question in "theory"
I have the following code, that is running for few thousands iterations, I am trying to add some restart loop or condition. Where I ask the code to restart from a very specific iteration that has been saved on my computer (data of the iteration is saved) instead of running the code from scratch every single time.
For example, if I want to restart the code from the following iteration, but add few changes to my code:
Iteration = 2874 t = 287.50000000 phi_iter = 9
Is this possible? Thanks!
sure, its possible. You need to save everything that matters to the file, though, every single variable's state. The more complex the program the harder it will be to ensure everything is in a resume state, but its always possible, computers are still finite and linear. Parallel processing of any sort could be a headache to unravel correctly.