<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div><div dir="ltr"><div><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
Dear
Anshu, Dear Mark,<div><br>thank you very <span style="font-size:10pt">much. You have answered exactly what I need.</span></div><div><span style="font-size:10pt">Actually, I supposed that information on the guard cell would have been lost when the pointer had beed relesed.</span></div><div>Is it possible in such a way to make the changes on the guard cells effective in the <span style="font-size:10pt">interior</span><span style="font-size:10pt"> cells of</span><span style="font-size:10pt"> neighbouring blocks?</span></div><div><br></div><div>Thank you again.</div><div><br></div><div>Greetings,</div><div> Marco</div><div><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. +39 010 353 2497</font><font style="font-size:10pt" color="#002060" size="2"><br>cell. +39 338 7142904<br></font><font style="font-size:10pt" color="#002060" size="2">e-mail marco.mazzuoli@unige.it</font><font style="font-size:10pt" color="#002060" size="2"><br></font><font style="font-size:10pt" color="#002060" size="2"> marco.mazzuoli84@gmail.com<br></font><font style="font-size:10pt" size="2"><img alt=""></font><br><br><br><br></pre><br><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">From: mlricha4@asu.edu<br>Date: Tue, 21 Feb 2012 09:21:59 -0700<br>Subject: Re: [FLASH-USERS] Guardcells filling with PARAMESH4 data/grid structure<br>To: dubey@flash.uchicago.edu<br>CC: marco.mazzuoli@unige.it; flash-users@flash.uchicago.edu<br><br>
<div>Just an add on to Anshu's email. The fillGuardCells call only fills the guard cells of active blocks (children and their parents). It's extremely unlikely you would need to fill beyond the active region, but in case you do, I have a routine that does this. <br>
<br><div> -Mark</div><div><br></div>Sent from my iPhone</div><div><br>On 2012-02-21, at 5:09 AM, Anshu Dubey <<a href="mailto:dubey@flash.uchicago.edu">dubey@flash.uchicago.edu</a>> wrote:<br><br></div><div></div>
<blockquote><div>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="ecxgmail_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="ecxgmail_quote" style="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<span></span>".<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 target="_blank">+39 010 353 2497</a></font><font style="font-size:10pt" color="#002060" size="2"><br>
cell. <a 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">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">marco.mazzuoli84@gmail.com</a><br></font><font style="font-size:10pt" size="2"><img src="http://gfx2.hotmail.com/mail/w4/pr04/ltr/i_safe.gif" 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>
</div></blockquote></div></div> </div></div> </div></div> </div></body>
</html>