[FLASH-USERS] how to force refinement

Slavin, Jonathan jslavin at cfa.harvard.edu
Thu Apr 22 10:52:41 EDT 2021


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/20210422/5ce56147/attachment-0001.htm>


More information about the flash-users mailing list