<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
> Hi,<br>
> I got quite far with my project, although I still have not managed (or<br>
> better "have not tried...") to get the parallelization running (Shri:<br>
> Any news about that?).<br>
We've figured out what needs to be done but haven't done it yet :-). Your application needs either a vertex distribution with an overlap or a custom MPI reduction scheme. After speaking with Barry last week, it seems to me that the latter option would be best
 way to proceed. The custom MPI reduction scheme is because you have 2 equations for every vertex with the first equation needing an ADD operation and the second one needs a PROD. Thus, we would need<br>
to have an ADD_PROD insertmode for DMLocalToGlobalXXX that we currently don't have.
<br>
<br>
> Now I would like to add a single global variable (and a single equation)<br>
> to the equation system. Is there an elegant way to do this with DMCircuit?<br>
<br>
Is this akin to a "Ground" node for circuits? Is the variable value constant?<br>
<br>
After working on your example I realized that specifying a bidirectional edge as two unidirectional edges in the data may cause problems for the partitioner. I observed that<br>
the two undirectional edges may be assigned to different processors although they are connected to the same vertices. This may be a problem when communicating ghost<br>
values. Hence, I've modified the data format in the attached links1.txt file to only specify edges via their nodal connectivity and then to specify the type information.
<br>
I've reworked your source code also accordingly and it gives the same answer as your original code. It gives a wrong answer for parallel runs because of the incorrect<br>
ghost value exchanges. Once we have the ADD_PROD insertmode, this code should work fine in parallel too. I think that going forward you should use a similar data format.
<br>
<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
> <br>
> A hackish solution might be to add an additional imaginary vertex that<br>
> is excluded from all other calculations, but that does not seem to be<br>
> the right way to do it.<br>
> <br>
> Greetings,<br>
> Florian<br>
<br>
</div>
</span></font></div>
</body>
</html>