<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>I tried it but that parameter seems to work only for checkpoint
files because flash keeps overwriting my snapshots. Is it there a
similar parameter for plot files ? <br>
</p>
<p>Regards, <br>
</p>
<div class="moz-cite-prefix">On 12/11/19 15:54, Eddie Hansen wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAN+jpwTSgWa6N7317ZQSFu9QwLFPjT7q59oCB_4a2ZkRKDdGaA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Try adding the runtime parameter
'rolling_checkpoint' to your flash.par and set it > 10000.
The default value is 10000, which means the code will only
generate 10000 checkpoint files, and when it gets to the 10000th
file output it will reset back to 0 and start overwriting old
checkpoint files. The feature is intended to safeguard against
using too much disk space, but if this is not a concern for you
then set it > 10000.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Nov 12, 2019 at 3:15
PM guido <<a href="mailto:g.granda@irya.unam.mx"
target="_blank" moz-do-not-send="true">g.granda@irya.unam.mx</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">Hello,<br>
<br>
I guess this happens because flash only allows snapshots
numbers of 4 <br>
digits.<br>
<br>
Cheers,<br>
<br>
On 12/11/19 14:29, guido wrote:<br>
> Hello Flash users,<br>
><br>
> I found out that one simulation is overwriting the last
snapshot <br>
> instead of writing new ones. I think this very strange
because this <br>
> did not happen with previous snapshots.<br>
><br>
> The code keeps writing the snapshot 9999 instead of
creating the 10000 <br>
> one.<br>
><br>
> The flash.par used for this simulation is the following:<br>
><br>
> # Runtime parameters for a generic problem<br>
> # check the online documentation for runtime parameter
descriptions<br>
> # or look at the setup_params file in the object
directory for<br>
> # descriptions of parameters specific to your simulation<br>
><br>
> # Computational volume parameters<br>
> # Grid parameters<br>
> geometry = "cartesian"<br>
> # Size of computational volume<br>
> xmin = -10.0<br>
> xmax = 10.0<br>
> ymin = -0.6<br>
> ymax = 0.6<br>
> #zmin = -0.6<br>
> #zmax = 0.6<br>
> # Runtime Parameters<br>
> sim_rho =1.0<br>
> sim_vy =0.0<br>
> sim_vz =0.0<br>
> sim_by =0.0<br>
> sim_bz =1.0 # this is just a factor<br>
> sim_x_cent =0.0<br>
> sim_y_cent =0.0<br>
> sim_z_cent =0.0<br>
> sim_p =1.0<br>
> sim_cs =1.0 # check polytropic constant<br>
><br>
> #sim_z_cent =0.0<br>
> # Boundary conditions<br>
> zl_boundary_type = "periodic"<br>
> zr_boundary_type = "periodic"<br>
> xl_boundary_type = "outflow"<br>
> xr_boundary_type = "outflow"<br>
> yl_boundary_type = "periodic"<br>
> yr_boundary_type = "periodic"<br>
><br>
> # Simulation (time, I/O) parameters<br>
><br>
> cfl = 0.8<br>
> basenm = "ha_iso_"<br>
> stats_file = "ha_iso.dat"<br>
> nend = 1000000<br>
> tmax = 3.155760e14 #10 Myr<br>
> dtinit = 1.0e-3 #e-3 Myr<br>
> dtmax = 3.155760e12 #e-1 Myr<br>
> dtmin = 3.155760e-70 #<br>
><br>
> #to write a checkpoint when dt< dtmin<br>
> dr_dtMinBelowAction = 1<br>
><br>
> restart = .true.<br>
> checkpointFileNumber= 188<br>
> plotfileNumber= 941<br>
> # checkpoint file output parameters<br>
> checkpointFileIntervalTime = 3.155760e13 # 1Myr<br>
> checkpointFileIntervalStep = 50<br>
> # plotfile output parameters<br>
> plotfileIntervalTime = 3.155760e12 #0.1 Myr<br>
> plotfileIntervalStep = 10<br>
><br>
> # variables to output to plotfiles<br>
> plot_var_1 = "dens"<br>
> plot_var_2 = "pres"<br>
> plot_var_4 = "eint"<br>
> plot_var_5 = "velx"<br>
> plot_var_6 = "vely"<br>
> plot_var_7 = "velz"<br>
> plot_var_8 = "magx"<br>
> plot_var_9 = "magy"<br>
> plot_var_10= "magz"<br>
><br>
> # small variables<br>
> small = 1.0e-40<br>
> smlrho = 1.0E-40<br>
> smallp = 1.0E-22<br>
> smalle = 1.0e-10<br>
> smallt = 1.<br>
> smallu = 1.0E-40<br>
> smallx = 1.0E-10<br>
> # logfile parameters<br>
> run_comment = "harris current sheet"<br>
> log_file = "ha_iso.log"<br>
><br>
> # common eos parameters<br>
> eintSwitch = 1.0E-4<br>
> eosMode ="dens_pres"<br>
><br>
> # AMR refinement parameters<br>
> lrefine_max =6<br>
> lrefine_min =6<br>
> refine_var_1 = "dens"<br>
> #delta_ref =0.01<br>
> #delta_deref =-0.01<br>
> #reference_density =2.12e-24 # unperturbed initial
density<br>
> refine_var_thresh = "dens"<br>
> #USM parameters<br>
> killdivb = .true. # default true<br>
> flux_correct = .true.<br>
> Nblockx = 1<br>
> Nblocky = 1<br>
> Nblockz = 1<br>
><br>
> # === Polytropic EOS ===<br>
> usePolytrope = .true.<br>
> PolytropeDens1 = 0.0<br>
> #PolytropeDens2 = 1e99<br>
> #PolytropeDens3 = 1e99<br>
> #PolytropeDens4 = 1e99<br>
> #PolytropeDens5 = 1e99<br>
> PolytropeGamma1 = 1.0<br>
> #PolytropeGamma2 = 1.0<br>
> #PolytropeGamma3 = 1.0<br>
> #PolytropeGamma4 = 1.0<br>
> #PolytropeGamma5 = 1.0<br>
> PolytropeKonst = 1.0 # sound speed squared (cs^2)<br>
><br>
> Do you see anything in my flash.par that might cause this
error? I'm <br>
> using flash 4.5 by the way.<br>
><br>
> Kind Regards,<br>
><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>Eddie Hansen, PhD<br>
Postdoctoral Scholar</div>
<div>University of Chicago</div>
<div>607-341-6126 | Flash Center</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>