<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Magyar,
<div class=""><br class="">
</div>
<div class="">I think what you’ve proposed is actually to evolve the outflow BC sim to some checkpoint file first, and then use the data of the checkpoint file as your new initial condition to start a new simulation with periodic BC. </div>
<div class=""><br class="">
</div>
<div class="">This is definitely doable, while the tricky thing is to code up the Simulation_initBlock to read in the AMR data at different refinement levels. You might want to mark some blocks as “to be refined”  in Simulation_initBlock based on your new initial
 condition in order to get the identical grid structure.</div>
<div class=""><br class="">
</div>
<div class="">A uniform grid setup would be very easy.</div>
<div class="">
<div class=""><br class="">
Best wishes,<br class="">
—<br class="">
Suoqing Ji<br class="">
Sherman Fairchild Fellow<br class="">
TAPIR & Walter Burke Institute for Theoretical Physics<br class="">
California Institute of Technology<br class="">
<a href="http://www.tapir.caltech.edu/~suoqing" class="">http://www.tapir.caltech.edu/~suoqing</a>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On May 7, 2019, at 12:51 AM, Magyar Norbert <<a href="mailto:magyar.f.norbert@gmail.com" class="">magyar.f.norbert@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Dear Klaus, Ryan,
<div class=""><br class="">
</div>
<div class="">Thank you for your answers, suggestions. Ryan, in light of what Klaus wrote, I believe that there is not much hope to switch to periodic boundaries once the block connections are not set up that way initially. </div>
<div class="">What if I initialize a dummy simulation, with the same amount of blocks/refinement, but initially periodic. Then, I just replace the variables in this periodic checkpoint file with my variables from the checkpoint file at time t. Would that work?
 Is the topology consistent between identical "looking" checkpoint files (same number,size,refinement of blocks) coming from two separate setups?</div>
<div class=""><br class="">
</div>
<div class="">Thank you very much,</div>
<div class=""><br class="">
</div>
<div class="">Norbert</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Ryan Farber <<a href="mailto:rjfarber@umich.edu" class="">rjfarber@umich.edu</a>> ezt írta (időpont: 2019. máj. 6., H, 18:18):<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr" class="">
<div class="">Hi Norbert,</div>
<div class=""><br class="">
</div>
<div class="">Which version of FLASH are you using? I'm using 4.2.2, which is rather old but I have Grid_init.F90 call RuntimeParameters_get() for the boundary types and it looks to me that Grid_init.F90 should do that whether or not restarting. Also, Driver_initFlash.F90
 calls Grid_init independent of restarting. So, I haven't tested it on my end but I would expect what you're trying to do to work for me.</div>
<div class=""><br class="">
</div>
<div class="">If you're using a more recent FLASH version and things have changed then you can "grep -in zl_boundary_type *.F90" in your object directory to see where the code reads the value from flash.par and either modify that subroutine to do it even if
 restarting or place a call to RuntimeParameters_get() for the boundary types near the bottom of Driver_initFlash.F90.</div>
<div class=""><br class="">
</div>
<div class="">Best,<br class="">
</div>
<div class="">
<div class="">
<div dir="ltr" class="gmail-m_-4456206534123753394gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">--------
<div class="">Ryan</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, May 4, 2019 at 2:36 PM Magyar Norbert <<a href="mailto:magyar.f.norbert@gmail.com" target="_blank" class="">magyar.f.norbert@gmail.com</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr" class="">Dear FLASH developers,
<div class=""><br class="">
</div>
<div class="">I want to run a simulation until some time t. Then, using the checkpoint file at time t, I would like to restart the simulation, but instead of user or outflow boundary conditions as until time t, now with periodic boundaries. Is there a way to
 do this? The flash.par file info is not accounted for when doing a restart from a checkpoint file. I tried to manually change the string in the 'runtimeparameters' in the hdf5 file, but apparently it does not work. Any suggestions?</div>
<div class=""><br class="">
</div>
<div class="">All the best,</div>
<div class=""><br class="">
</div>
<div class="">Norbert </div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>