<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Nagaiah,<br>
<br>
I think the error is, that you do not remove entries from your map
in the gather method of your LoadBalanceDataHandle, i.e. add<br>
<br>
map.erase(id);<br>
<br>
to it. That fixed the problem for me. <br>
<br>
Best Regards,<br>
Martin<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 05/10/2016 12:31 PM, Nagaiah
Chamakuri wrote:<br>
</div>
<blockquote
cite="mid:CA+=DHn2OQOQbnE5euPa1V922XgoTrKWAstkbz-BqhzZOq5LwtA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Dear ALUGrid / DUNE developers,<br>
<br>
</div>
I have a question concerning mapping between Local ID
and indexSet values<br>
</div>
in ALUGrid data structure during the dynamic load
balancing. <br>
</div>
<div>(Keep in mind that <b>I only want to refine and coarse
<br>
the cells at leaf GridView)</b></div>
<div>I have written a simple example code to look at this
issue.<br>
</div>
I am doing in the following way (Steps 1-4 are explained in
the example code)<br>
<br>
</div>
<div>Step 0) The initial grid (level-0) is partitioned anyway<br>
</div>
<br>
Step 1) Initializing solution and refining the grid based on
simple strategy<br>
</div>
(solution data at cells is assigned based on indexset index
values, see test_alu_lb.hh file)<br>
<div><br>
<div>
<div>
<div>
<div>Step 2) Now I am creating a map between local ID
value and corresponding solution data at those cells
(extracting the data based on the indexset index
values, <b>accessing only leaf Grid VIEW cells</b>)<br>
<br>
</div>
<div>Step 3) Now I am creating the data handle and then
load balance of the refined grid <br>
</div>
<div> (Here I am writing the solution data to
buffer based on the local ID of the entity in <br>
</div>
<div> Gather operation, reading ID and
solution data from earlier created map. Reading the<br>
solution from buffer and writing to the map
using local ID of the entity in Scatter operation )<br>
</div>
<div><br>
</div>
<div>Step 4) Reading back from "map" to the solution
vector. (here assignment of solution data<br>
</div>
<div> based on the indexset index values,
similar in Step 2)<br>
<br>
</div>
<div>( run this example on 4 or more cores.)<br>
</div>
<div><br>
</div>
<div>It seems that one of(OR both) Step 2 or Step 4
method is wrong, due to my lack of deep understanding<br>
</div>
<div>of relation between local ID set and index set
values during loadBalance step.<b> <br>
</b>In my opinion this is producing wrong results in
attached test case.<br>
I believe that all cells from all grid levels are
communicated during the load <br>
balancing in ALUGrid implementation. But I want to
access only leafGridView cells only.<br>
</div>
<div>Test case is created against latest GIT version all
DUNE modules.<br>
</div>
<div><br>
</div>
<div>I would greatly appreciate if you shed some light
on this issue OR correcting my simple <br>
</div>
<div>example code. Thank you so much in advance.<br>
<br>
</div>
<div>Sincerely<br>
</div>
<div>Nagaiah<br>
</div>
<div> <br clear="all">
</div>
<div>
<div><br>
-- <br>
<div class="gmail_signature"><b
style="color:rgb(51,51,255)">========================================<br>
Dr. Chamakuri Nagaiah<br>
Radon Institute for Computational and Applied
Mathematics (RICAM)
<br>
Austrian Academy of Sciences<br>
Altenbergerstraße 69<br>
A-4040 Linz, Austria. Ph(office): +43 732 2468
5218<br>
<a moz-do-not-send="true"
href="http://people.ricam.oeaw.ac.at/n.chamakuri/"
target="_blank">http://people.ricam.oeaw.ac.at/n.chamakuri/</a><br>
========================================</b><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
</blockquote>
<br>
</body>
</html>