ydluo / qdyn

A Quasi-DYNamic earthquake simulator
56 stars 28 forks source link

Implementation restart model #77

Closed crpiceda closed 1 year ago

crpiceda commented 1 year ago

The idea of this implementation is to simplify the workflow to restart a simulation without having to starting at 0s. Before, if we wanted to the restart a model, we needed different folders for the different runs; otherwise, the outputs would be overwritten with each new run. This would mean having multiple output files spread over multiple folders, which might be cumbersome to post-process. The spirit of this new implementation is to have the flexibility to choose between starting a simulation at 0s (aka “scratch model”) and at any time-step from a previous simula-tion (aka “restart model”). When restarting a model, all the outputs are appended at the end of the files of the previous simulation instead of rewritten, which allows the user to have a unique folder with all the model runs.

Major changes introduced:

martijnende commented 1 year ago

Thanks Constanza, this is a great idea. I'm going to spend some time of finalising a new version (currently labelled 2.4.0, but could be 3.0.0 if we introduce any compatibility-breaking changes). Could you change the PR to merge into #70 instead? #71 has already been merged into #70, so I don't think it's a good idea to stack merges.

martijnende commented 1 year ago

Superseded by #83