[FLASH-USERS] how to force refinement

Andy Sha Liao andy at f.energy
Fri Apr 23 13:03:37 EDT 2021


Jonathan,


One possibility is that Grid_markRefineSpecialized is never reached because
Grid_markRefineDerefine returns before it reaches your call to
Grid_markRefineSpecialized.

If this is the case, you can make the call at the start of
Grid_markRefineDerefine instead of at the end.

When you do this, make sure that Grid_markRefineSpecialized sets refine(lb)
= .true. where you need it to be.

Then, in Grid_markRefineDerefine, return immediately after your call to
Grid_markRefineSpecialized to avoid your marks being overwritten by the
remaining Grid_markRefineDerefine code.


Andy

On Thu, Apr 22, 2021 at 10:53 AM Slavin, Jonathan <jslavin at cfa.harvard.edu>
wrote:

> Hi Guido,
>
> I don't understand why having no refine_var_# in my flash.par helps. Could
> you explain?
>
> 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.
>
> So I'm at a loss for why this is not working. Any help in either fixing or
> diagnosing this problem would be appreciated.
>
> Thanks,
> Jon
>
> On Tue, Apr 20, 2021 at 1:00 PM <flash-users-request at flash.uchicago.edu>
> wrote:
>
>> ---------- Forwarded message ----------
>> From: "Slavin, Jonathan" <jslavin at cfa.harvard.edu>
>> To: flash-users <flash-users at flash.uchicago.edu>
>> Cc:
>> Bcc:
>> Date: Tue, 20 Apr 2021 11:41:21 -0400
>> Subject: [FLASH-USERS] how to force refinement
>> Hi all,
>>
>> 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.
>>
>> So my question is, why isn't the refinement done? How can I force the
>> refinement to be done?
>>
>> Thanks,
>> Jon
>>
>> --
>> Jonathan D. Slavin
>> Astrophysicist - High Energy Astrophysics Division
>> Center for Astrophysics | Harvard & Smithsonian
>> Office: (617) 496-7981 | Cell: (781) 363-0035
>> 60 Garden Street | MS 83 | Cambridge, MA 02138
>>
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: "guido granda muñoz" <g.granda at irya.unam.mx>
>> To: flash-users at flash.uchicago.edu
>> Cc:
>> Bcc:
>> Date: Tue, 20 Apr 2021 11:41:04 -0500
>> Subject: Re: [FLASH-USERS] how to force refinement
>>
>> Hi,
>>
>> 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.
>>
>> Cheers,
>> On 20/04/21 10:41, Slavin, Jonathan wrote:
>>
>> Hi all,
>>
>> 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.
>>
>> So my question is, why isn't the refinement done? How can I force the
>> refinement to be done?
>>
>> Thanks,
>> Jon
>>
>> --
>> Jonathan D. Slavin
>> Astrophysicist - High Energy Astrophysics Division
>> Center for Astrophysics | Harvard & Smithsonian
>> Office: (617) 496-7981 | Cell: (781) 363-0035
>> 60 Garden Street | MS 83 | Cambridge, MA 02138
>>
>> _______________________________________________
>> flash-users mailing list
>> flash-users at flash.uchicago.edu
>> http://flash.uchicago.edu/mailman/listinfo/flash-users
>>
>
>
> --
> Jonathan D. Slavin
> Astrophysicist - High Energy Astrophysics Division
> Center for Astrophysics | Harvard & Smithsonian
> Office: (617) 496-7981 | Cell: (781) 363-0035
> 60 Garden Street | MS 83 | Cambridge, MA 02138
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210423/7140af68/attachment-0001.htm>


More information about the flash-users mailing list