One mod file, many shock blocks

Hi all,
I have a mod file in which I would like to have many different shock blocks. I call perfect_foresight_setup and perfect_foresight_solver after each block but in the end, only the results from the last shock block and perfect foresight simulation are saved in a mat file. I want the results from each simulation saved in a separate mat file. How can I do that?

Thank you in advance!
Andromachi

After each call to perfect_foresight_solver, you can manually save the oo_-structure.

Got it! Thank you!