<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">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">jslavin@cfa.harvard.edu</a>><br>To: flash-users <<a href="mailto:flash-users@flash.uchicago.edu" target="_blank">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" width="350" height="2" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;"></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" width="350" height="2" style="border: none;"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></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">g.granda@irya.unam.mx</a>><br>To: <a href="mailto:flash-users@flash.uchicago.edu" target="_blank">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;" 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;" 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">flash-users@flash.uchicago.edu</a><br>
<a href="http://flash.uchicago.edu/mailman/listinfo/flash-users" rel="noreferrer" target="_blank">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" width="350" height="2" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;"></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" width="350" height="2" style="border: none;"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></p></span></div></div></div></div></div></div></div></div>