[FLASH-USERS] Grid changed

Seyit Hocuk seyit at mpe.mpg.de
Tue Jan 17 08:00:08 EST 2017


Thanks Mark,

That will work.
After my email, my current rough solution became to compare old vs. new 
total blocks. I may swith to your method if there is no better/more 
elegant way.

Best,
Seyit


call MPI_Allreduce(lnblocks, co_tot_blocks, 1, FLASH_INTEGER, MPI_SUM, 
MPI_COMM_WORLD, error) !>>> NOTE is MPI_COMM_WORLD or amr_mpi_meshComm 
better?
co_grid_changed = 0
if (co_tot_blocks_old .ne. co_tot_blocks) then        !>>> NOTE restart 
always thinks grid changed
     co_grid_changed = 1
     co_tot_blocks_old = co_tot_blocks
endif



On 17/01/17 12:31, Mark Richardson wrote:
> Hi Seyit,
>
>   My likely rough solution is that in gr_markRefineDerefine I check if 
> anything wants to either refine or derefine, and if so I set 
> grid_changed to 1. This will need to be propagated to all processors.
>
> Cheers,
>   -Mark
>
> On 17 January 2017 at 03:12, Seyit Hocuk <seyit at mpe.mpg.de 
> <mailto:seyit at mpe.mpg.de>> wrote:
>
>     Dear Flash users,
>
>     In one of my subroutines, I was making use of the variables
>     "grid_changed" and "dr_simGeneration" (both integer) to notify me
>     of any changes in the grid and perform a task in such a case. This
>     worked for the split solver(s). Now, with the unsplit solvers
>     "grid_changed" is not getting updated with the grid.
>
>     My basic question is, how can I know if the grid changed at any
>     place in the simulation. Any elegant/simple solution is acceptable.
>
>     Best wishes,
>     Seyit
>
>
>
>     -- 
>     Dr. Seyit Hocuk
>     Post-doctoral researcher
>     Center for Astrochemical Studies (CAS)
>     Max-Planck-Institute for Extraterrestrial physics (MPE)
>     Giessenbachstrasse 1, 85748 Garching bei Munchen
>     Phone: +49-8930000-3012 <tel:%2B49-8930000-3012> | Fax:
>     +49-8930000-3569 <tel:%2B49-8930000-3569>
>     Web  : www.mpe.mpg.de/~seyit <http://www.mpe.mpg.de/%7Eseyit>
>
>
>
>
> -- 
>
> Mark Richardson
> Beecroft Postdoctoral Fellow, Department of Physics
> Denys Wilkinson Building - 555F
> University of Oxford
> Mark.Richardson at physics.ox.ac.uk <mailto:Mark.Richardson at physics.ox.ac.uk>
> +44 1865 280793

-- 
Dr. Seyit Hocuk
Post-doctoral researcher
Center for Astrochemical Studies (CAS)
Max-Planck-Institute for Extraterrestrial physics (MPE)
Giessenbachstrasse 1, 85748 Garching bei Munchen
Phone: +49-8930000-3012 | Fax: +49-8930000-3569
Web  : www.mpe.mpg.de/~seyit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20170117/e6d7e7a0/attachment-0001.htm>


More information about the flash-users mailing list