<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks Mark,<br>
<br>
That will work. <br>
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.<br>
<br>
Best,<br>
Seyit<br>
<br>
<br>
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?<br>
co_grid_changed = 0<br>
if (co_tot_blocks_old .ne. co_tot_blocks) then !>>>
NOTE restart always thinks grid changed<br>
co_grid_changed = 1<br>
co_tot_blocks_old = co_tot_blocks<br>
endif<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 17/01/17 12:31, Mark Richardson
wrote:<br>
</div>
<blockquote
cite="mid:CA+qw_EwR2EwUcwCDbUB6ezxdzgrAWeWGyhXq9edmjf_jL+YASA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Seyit,
<div><br>
</div>
<div> 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. </div>
<div><br>
</div>
<div>Cheers,</div>
<div> -Mark </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 17 January 2017 at 03:12, Seyit
Hocuk <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:seyit@mpe.mpg.de" target="_blank">seyit@mpe.mpg.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Flash
users,<br>
<br>
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.<br>
<br>
My basic question is, how can I know if the grid changed at
any place in the simulation. Any elegant/simple solution is
acceptable.<br>
<br>
Best wishes,<br>
Seyit<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
Dr. Seyit Hocuk<br>
Post-doctoral researcher<br>
Center for Astrochemical Studies (CAS)<br>
Max-Planck-Institute for Extraterrestrial physics (MPE)<br>
Giessenbachstrasse 1, 85748 Garching bei Munchen<br>
Phone: <a moz-do-not-send="true"
href="tel:%2B49-8930000-3012" value="+4989300003012"
target="_blank">+49-8930000-3012</a> | Fax: <a
moz-do-not-send="true" href="tel:%2B49-8930000-3569"
value="+4989300003569" target="_blank">+49-8930000-3569</a><br>
Web : <a moz-do-not-send="true"
href="http://www.mpe.mpg.de/%7Eseyit" rel="noreferrer"
target="_blank">www.mpe.mpg.de/~seyit</a><br>
<br>
</font></span></blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><br>
Mark Richardson<br>
<div>Beecroft Postdoctoral Fellow,
Department of Physics
<div>Denys Wilkinson Building - 555F</div>
<div>University of Oxford
<div><a moz-do-not-send="true"
href="mailto:Mark.Richardson@physics.ox.ac.uk"
target="_blank">Mark.Richardson@physics.ox.ac.uk</a><br>
<div>+44 1865 280793</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
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 : <a class="moz-txt-link-abbreviated" href="http://www.mpe.mpg.de/~seyit">www.mpe.mpg.de/~seyit</a></pre>
</body>
</html>