--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-users+unsubscribe@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/6729d70b-287c-4911-bd7b-c1cd4e5ad8c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ayse,The trick that we use for this is to add a checkpointing file handler at the end of the simulation run, then force it to take *one* more timestep to trigger the file handler to save the state. We use a Checkpointing wrapper on the file handler class (attached, largely coded by Jeff Oishi a year+ ago), import the Checkpoint class from this file, and then add some lines like this at the end of the simulation:final_checkpoint = Checkpoint(data_dir, checkpoint_name='final_checkpoint')final_checkpoint.set_checkpoint(solver, wall_dt=1, mode="overwrite") # can also use mode='append' if you want to store multiplesolver.step(dt)This works for us, and is how we restart our simulations. If there's a more elegant way, I'd love to know about it too!Best,Evan
On Fri, Jan 12, 2018 at 6:18 AM, Ayse <ays...@gmail.com> wrote:
Hi guys,
Is there any function in Dedalus which can save the state of the system after a simulation ends? I am thinking of something compatible with the load_state function, which saves distributed field and writes down all the information about the state of the system.
For to clarify more, something as adding a file_handler and setting it to the last iteration does not help me since I need to save the state after another function ask the state to be saved. So this other function may skip many full simulations and decide to save after a certain condition is met.
Thank you in advance,
Ayse
--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-users+unsubscribe@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/73c7e48f-9098-4b63-ba01-9514daff79f1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/554c4eeb-61e3-4398-95ed-6d7b3f7443da%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Dedalus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dedalus-users/fUj_q91F9bo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dedalus-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/CAAOZTN-hyZ0kTWBXjqcVCW_%2B5CEU_MmUQEvY%2BWzC%2BRE64EiC9Q%40mail.gmail.com.