<div dir="ltr"><div dir="ltr"><div>This is how I run it:</div><div><br></div><div>-ksp_type bcgs -pc_type gamg -mattransposematmult_via scalable -build_twosided allreduce -ksp_monitor_true_residual -ksp_monitor_if_not_converged -log_view -ksp_max_it 100000 -ksp_rtol 1.0e-7</div><div><br></div><div>so BCGS with GAMG as preconditioner. I am guessing writing at every timestep would be expensive, maybe every hour? I am not sure what would be a good number here if the simulations lasts more than a day. <br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 18, 2019 at 4:10 PM Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What kind of solver are you using and how often do you want to write?<br>
<br>
Sal Am via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> writes:<br>
<br>
> Is there a function/command line option to save the solution as it is<br>
> solving (and read in the file from where it crashed and keep iterating from<br>
> there perhaps)?<br>
> Had a seg fault and all the results until that point seems to have been<br>
> lost.<br>
</blockquote></div>