<div dir="auto"><div dir="auto">Dear Klaus,<div dir="auto"><br></div><div dir="auto">Thank you for your suggestions. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019, 10:01 PM Klaus Weide <<a href="mailto:klaus@flash.uchicago.edu" target="_blank" rel="noreferrer">klaus@flash.uchicago.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 18 Jun 2019, Sai Siva wrote:<br>
<br>
> I want to track one particular cell value at all the times during the<br>
> simulation.<br>
> <br>
> I could able to get it from *ViSit--> Query options. *However this gives a<br>
> desired cell value at *output times* only. As a result values at other<br>
> times are unknown.<br>
> <br>
> Is there any way in the FLASH code so that I can get one cell value at all<br>
> the times.<br>
<br>
There are some routines included with FLASH that should help you do this.<br>
Have a look at<br>
<br>
Driver_computeCellLocations.F90<br>
<br>
and, especially if you just want to write out certain values after each <br>
time step,<br>
<br>
IO_writeSingleCells.F90 .<br>
<br>
The existing implementations are examples, they have some hardcoded values<br>
(positions) in them and were originally written for 1 1D case. So you will<br>
have to make some changes.<br>
<br>
Note that Driver_computeCellLocations needs to be called collectively by <br>
all MPI ranks.<br>
<br>
This may look overly complicated. The advantage is that you get a <br>
mechanism for tracking the same physical location across multiple changes <br>
of the grid during refinement and movement of blocks between ranks.<br>
<br>
Klaus<br>
</blockquote></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019, 10:01 PM Klaus Weide <<a href="mailto:klaus@flash.uchicago.edu" target="_blank" rel="noreferrer">klaus@flash.uchicago.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 18 Jun 2019, Sai Siva wrote:<br>
<br>
> I want to track one particular cell value at all the times during the<br>
> simulation.<br>
> <br>
> I could able to get it from *ViSit--> Query options. *However this gives a<br>
> desired cell value at *output times* only. As a result values at other<br>
> times are unknown.<br>
> <br>
> Is there any way in the FLASH code so that I can get one cell value at all<br>
> the times.<br>
<br>
There are some routines included with FLASH that should help you do this.<br>
Have a look at<br>
<br>
Driver_computeCellLocations.F90<br>
<br>
and, especially if you just want to write out certain values after each <br>
time step,<br>
<br>
IO_writeSingleCells.F90 .<br>
<br>
The existing implementations are examples, they have some hardcoded values<br>
(positions) in them and were originally written for 1 1D case. So you will<br>
have to make some changes.<br>
<br>
Note that Driver_computeCellLocations needs to be called collectively by <br>
all MPI ranks.<br>
<br>
This may look overly complicated. The advantage is that you get a <br>
mechanism for tracking the same physical location across multiple changes <br>
of the grid during refinement and movement of blocks between ranks.<br>
<br>
Klaus<br>
</blockquote></div>