<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>What I mean is that your simulation could have been running with
2 or more refinements criteria at the same time and one criterion
could be de-refining what the other is refining so at the end you
don't see any refinement. <br>
</p>
<p>As you said you need to have your own versions of
Grid_markRefineDerefine.f90 and Grid_markRefineSpecialized in
your simulation folder and probably you have used the
Grid_markRefineDerefine.f90 of one of the FLASH provided examples
as a template. This Grid_markRefineDerefine.f90 by default
includes the PARAMESH refinement criterion on these lines:</p>
<p> do l = 1,gr_numRefineVars<br>
iref = gr_refine_var(l)<br>
ref_cut = gr_refine_cutoff(l)<br>
deref_cut = gr_derefine_cutoff(l)<br>
ref_filter = gr_refine_filter(l)<br>
call gr_markRefineDerefine(iref,ref_cut,deref_cut,ref_filter)<br>
end do<br>
</p>
<p>So, if you don't provide the refine_var on your flash.par, I
think that this part of the code doesn't work, so you can debug
your code by only including the <br>
</p>
<p>Grid_markRefineSpecialized refinement criterion.</p>
<p>Guido,</p>
<div class="moz-cite-prefix">On 22/04/21 9:52, Slavin, Jonathan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACcRS=dSz7VLqP48xThk0LHyiDiOY_Gm3AjdTSG8QePqfEKR2g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small">Hi
Guido,</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small">I
don't understand why having no refine_var_# in my flash.par
helps. Could you explain?</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small">I
realized after posting that the correct way to do this is to
have a custom version of Grid_markRefineDerefine.F90 in my
simulation directory and include inside of that a call to
Grid_markRefineSpecialized. I did that, but for some reason
the grid is still not refining in the way I want. Print
statements inside Grid_markRefineSpecialized and
gr_markInRadius indicate that the proper blocks are getting
marked for refinement and yet no refinement is being done. I
put the call to Grid_markRefineSpecialized at the end of
Grid_markRefineDerefine so it should prevent refine and
derefine from getting overwritten.</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small">So I'm
at a loss for why this is not working. Any help in either
fixing or diagnosing this problem would be appreciated.</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small">Thanks,</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif;font-size:small">Jon</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Apr 20, 2021 at 1:00
PM <<a
href="mailto:flash-users-request@flash.uchicago.edu"
moz-do-not-send="true">flash-users-request@flash.uchicago.edu</a>>
wrote:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">---------- Forwarded
message ----------<br>
From: "Slavin, Jonathan" <<a
href="mailto:jslavin@cfa.harvard.edu" target="_blank"
moz-do-not-send="true">jslavin@cfa.harvard.edu</a>><br>
To: flash-users <<a
href="mailto:flash-users@flash.uchicago.edu"
target="_blank" moz-do-not-send="true">flash-users@flash.uchicago.edu</a>><br>
Cc: <br>
Bcc: <br>
Date: Tue, 20 Apr 2021 11:41:21 -0400<br>
Subject: [FLASH-USERS] how to force refinement<br>
<div dir="ltr">
<div style="font-family:tahoma,sans-serif;font-size:small">Hi
all,</div>
<div style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div style="font-family:tahoma,sans-serif;font-size:small">I
have a simulation where I'd like to, at a particular
time, force refinement within a given radius of the
origin. I call Grid_markRefineSpecialized and confirm
that it works and marks the relevant locations for
refinement (via print statements), but it seems that the
refinement is not actually done.</div>
<div style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div style="font-family:tahoma,sans-serif;font-size:small">So
my question is, why isn't the refinement done? How can I
force the refinement to be done?</div>
<div style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div style="font-family:tahoma,sans-serif;font-size:small">Thanks,</div>
<div style="font-family:tahoma,sans-serif;font-size:small">Jon</div>
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;" moz-do-not-send="true" width="350" height="2"></div>
<div dir="ltr">Jonathan D. Slavin</div>
<div dir="ltr">Astrophysicist - High Energy
Astrophysics Division</div>
<div dir="ltr">Center for Astrophysics |
Harvard & Smithsonian</div>
<div dir="ltr">Office: (617) 496-7981 |
Cell: (781) 363-0035<br>
60 Garden Street | MS 83 | Cambridge, MA
02138</div>
</div>
<div dir="ltr"><span>
<p dir="ltr"
style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" style="border: none;" moz-do-not-send="true" width="350" height="2"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">
</span></p>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
<br>
---------- Forwarded message ----------<br>
From: "guido granda muñoz" <<a
href="mailto:g.granda@irya.unam.mx" target="_blank"
moz-do-not-send="true">g.granda@irya.unam.mx</a>><br>
To: <a href="mailto:flash-users@flash.uchicago.edu"
target="_blank" moz-do-not-send="true">flash-users@flash.uchicago.edu</a><br>
Cc: <br>
Bcc: <br>
Date: Tue, 20 Apr 2021 11:41:04 -0500<br>
Subject: Re: [FLASH-USERS] how to force refinement<br>
<div>
<p>Hi,</p>
<p>I think this might caused by another refinement
criteria been executed at the same time. So what your
Grid_markRefineSpecilized refines is being de-refined by
the default (or maybe another) FLASH refinement
criterion. One way to check this is to run the
simulation without the any parameter "refine_var_#" in
your flash.par.</p>
<p>Cheers,</p>
<div>On 20/04/21 10:41, Slavin, Jonathan wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div
style="font-family:tahoma,sans-serif;font-size:small">Hi
all,</div>
<div
style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div
style="font-family:tahoma,sans-serif;font-size:small">I
have a simulation where I'd like to, at a particular
time, force refinement within a given radius of the
origin. I call Grid_markRefineSpecialized and
confirm that it works and marks the relevant
locations for refinement (via print statements), but
it seems that the refinement is not actually done.</div>
<div
style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div
style="font-family:tahoma,sans-serif;font-size:small">So
my question is, why isn't the refinement done? How
can I force the refinement to be done?</div>
<div
style="font-family:tahoma,sans-serif;font-size:small"><br>
</div>
<div
style="font-family:tahoma,sans-serif;font-size:small">Thanks,</div>
<div
style="font-family:tahoma,sans-serif;font-size:small">Jon</div>
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;" moz-do-not-send="true" width="350" height="2"></div>
<div dir="ltr">Jonathan D. Slavin</div>
<div dir="ltr">Astrophysicist - High
Energy Astrophysics Division</div>
<div dir="ltr">Center for Astrophysics |
Harvard & Smithsonian</div>
<div dir="ltr">Office: (617) 496-7981 |
Cell: (781) 363-0035<br>
60 Garden Street | MS 83 | Cambridge,
MA 02138</div>
</div>
<div dir="ltr"><span>
<p dir="ltr"
style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" style="border: none;" moz-do-not-send="true" width="350" height="2"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">
</span></p>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
_______________________________________________<br>
flash-users mailing list<br>
<a href="mailto:flash-users@flash.uchicago.edu"
target="_blank" moz-do-not-send="true">flash-users@flash.uchicago.edu</a><br>
<a
href="http://flash.uchicago.edu/mailman/listinfo/flash-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://flash.uchicago.edu/mailman/listinfo/flash-users</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;" moz-do-not-send="true" width="350" height="2"></div>
<div dir="ltr">Jonathan D. Slavin</div>
<div dir="ltr">Astrophysicist - High Energy
Astrophysics Division</div>
<div dir="ltr">Center for Astrophysics | Harvard
& Smithsonian</div>
<div dir="ltr">Office: (617) 496-7981 | Cell:
(781) 363-0035<br>
60 Garden Street | MS 83 | Cambridge, MA 02138</div>
</div>
<div dir="ltr"><span>
<p dir="ltr"
style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" style="border: none;" moz-do-not-send="true" width="350" height="2"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">
</span></p>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>