Dear Marco,<br><br>Grid_fillGuardCells is a global operation which replaces the current values in the guard cells of<br>all blocks with values from interior cells of the neighboring blocks. When you get a pointer to a block <br>
you get access to all the variables in the block. In general, you should only be changing the <br>interior cells in the block because the next call to guard cell fill will destroy the values you <br>might have put in the guard cells. Any time you get a block through Grid_getBlkPtr, you<br>
should explicitly release it using Grid_releaseBlkPtr when you are done with it. <br><br>The one exception to the above scenario is in the use of active particles where mass of the<br>particles is mapped to their surrounding cells and some of those cells may be guard cells. <br>
A part of the routine Grid_mapParticlesToMesh makes sure that the values in guard cells<br>are communicated back to appropriate blocks, in what we call the reverse guard cell fill.<br><br>I hope that answers your basic question, please send me more details if you have a specific<br>
problem/approach in mind.<br><br>Anshu<br><br><div class="gmail_quote">On Fri, Feb 17, 2012 at 11:12 AM, Marco Mazzuoli <span dir="ltr"><<a href="mailto:marco.mazzuoli@unige.it">marco.mazzuoli@unige.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<br> Dear all,<br><div><div dir="ltr"><br>I am working on the FLASH code implementing the PARAMESH4 data/grid structure.<br>Could you clarify me some questions concerning the GuardCells (GC) filling?<br><br>I explain the problem:<br>
In order to work on such a local block (with for example 4 GC) I get the pointer to that block with the subroutine "Grid_getBlkPtr".<br>Then I could assign a new value to some GC variables.<br>Finally I call the subroutine "Grid_fillGuardCells<font><span></span></font>".<br>
<br>My questions are:<br>I) What happens to GC values I had changed?<br>II) Can I only read GC variables (like boundary conditions) or also write permanently a new value?<br><br>In other words:<br>i) Which variable I'm really pointing with "Grid_getBlkPtr"? <br>
ii) What I change indeed when I work on the GC of that pointer?<br>iii) Do GC communicate straightforwardly to the adjacent block?<br><br>Thank you to everybody.<br><br>Sincerely,<br> Marco Mazzuoli<br><pre><font style="font-size:10pt" color="#002060" size="2"><br>
<br>Ing. Marco Mazzuoli</font><font style="font-size:10pt" color="#002060" size="2"><br></font><font style="font-size:10pt" color="#002060" size="2">Dipartimento di Ingegneria</font><font style="font-size:10pt" color="#002060" size="2"><br>
</font><font style="font-size:10pt" color="#002060" size="2">delle Costruzioni, dell'Ambiente e</font><font style="font-size:10pt" color="#002060" size="2"><br></font><font style="font-size:10pt" color="#002060" size="2">del Territorio (DICAT)</font><font style="font-size:10pt" color="#002060" size="2"><br>
</font><font style="font-size:10pt" color="#002060" size="2">via Montallegro 1</font><font style="font-size:10pt" color="#002060" size="2"><br></font><font style="font-size:10pt" color="#002060" size="2">16145 GENOVA-ITALY</font><font style="font-size:10pt" color="#002060" size="2"><br>
</font><font style="font-size:10pt" color="#002060" size="2">tel. <a href="tel:%2B39%20010%20353%202497" value="+390103532497" target="_blank">+39 010 353 2497</a></font><font style="font-size:10pt" color="#002060" size="2"><br>
cell. <a href="tel:%2B39%20338%207142904" value="+393387142904" target="_blank">+39 338 7142904</a><br></font><font style="font-size:10pt" color="#002060" size="2">e-mail <a href="mailto:marco.mazzuoli@unige.it" target="_blank">marco.mazzuoli@unige.it</a></font><font style="font-size:10pt" color="#002060" size="2"><br>
</font><font style="font-size:10pt" color="#002060" size="2"> <a href="mailto:marco.mazzuoli84@gmail.com" target="_blank">marco.mazzuoli84@gmail.com</a><br></font><font style="font-size:10pt" size="2"><img src="" alt=""></font><br>
<br><br><br></pre> </div></div> </div></div>
</blockquote></div><br><br clear="all"><br>-- <br>**********************************************************************************************************<br>Anshu Dubey<br>Associate Director and CS/Applications Group Leader 5747 S. Ellis Avenue 3rd Flr.<br>
Flash Center for Computational Science 773 834 2999 (office)<br>Fellow, Computation Institute 312 420 0033 (mobile)<br>University of Chicago and Argonne National Laboratory 773 834 3230 (fax)<br>
**********************************************************************************************************<br><br>