<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="">Dear Markus,</div>
<div class=""><br class="">
</div>
<div class="">Thank you for your prompt response. </div>
<div class=""><br class="">
</div>
<div class="">Sure, you can find attached a stripped out version of the main. I only have inherited that code, not developed it myself. </div>
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
<div class=""><br class="">
</div>
<div class="">You’ll see that the same path to the dgf file is passed to all MPI ranks but I don’t understand why initialising the DGFGridFactory is rank dependent.</div>
<div class=""><br class="">
</div>
<div class="">Besides, any comments/suggestions on the code are very welcome. Part of my job is also to refactor it for a better use. The main issue is that there is such a gap between Dune2.3 and Dune2.6 which makes it uneasy to track (owing that I have never
 used Dune before :)</div>
<div class=""><br class="">
</div>
<div class="">Thank you again for your time</div>
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
Dr. Roland Guichard </div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
Research Software Engineer</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
UCL-RITS</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
Internal Extension: 86947</div>
External Number: 02031086947
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="">
</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="">
</div>
<br class="x_Apple-interchange-newline">
</div>
</div>
<br class="x_Apple-interchange-newline">
</div>
<br class="x_Apple-interchange-newline">
<br class="x_Apple-interchange-newline">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 5 Jul 2019, at 12:00, Markus Blatt <<a href="mailto:markus@dr-blatt.de" class="">markus@dr-blatt.de</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="">Hi,<br class="">
<br class="">
would you mind to share your setup code for the grid?<br class="">
<br class="">
Markus<br class="">
<br class="">
On Fri, Jul 05, 2019 at 09:24:33AM +0000, Guichard, Roland wrote:<br class="">
<blockquote type="cite" class="">Dear Dune people,<br class="">
<br class="">
I am currently working on a project to update a home made Dune module (peits) to the newest Dune modules. Peits was previously running fine with Dune modules (common, fem, grid, alugrid, geometry) v2.3.<br class="">
<br class="">
Now I am trying to update to the same Dune modules v2.6. I have managed to compile (under GNU compiler) and run serially Peits with Dune2.6 but the issue appears when I run in parallel using MPI. This occurs when the gridPtr is called,<br class="">
<br class="">
And trying to create the grid from a dgf file, especially the assertion:<br class="">
<br class="">
<a href="https://gitlab.dune-project.org/core/dune-grid/blob/master/dune/grid/io/file/dgfparser/gridptr.hh#L281" class="">https://gitlab.dune-project.org/core/dune-grid/blob/master/dune/grid/io/file/dgfparser/gridptr.hh#L281</a><br class="">
<br class="">
Basically, what I have narrowed down is:<br class="">
<br class="">
<br class="">
 *   The MPI rank 0 runs fine. It fetches all parameters from files, calls the DGFGridFactory, initializes it etc.<br class="">
 *   The MPI rank 1 comes to the same point but I have checked that the initialisation of the DGFGridFactory is not setting the necessary parameters the same way, I.e. the elParam_ size is set to 0 (whereas ~57000 in MPI rank 0) causing the above assertion
 to fail.<br class="">
<br class="">
I wanted to know if there is a dedicated procedure to create a grid in parallel which I am missing at this point. Could you advise on this issue ?<br class="">
<br class="">
That would be really helpful.<br class="">
<br class="">
Kind regards,<br class="">
<br class="">
Dr. Roland Guichard<br class="">
Research Software Engineer<br class="">
UCL-RITS<br class="">
Internal Extension: 86947<br class="">
External Number: 02031086947<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</blockquote>
<br class="">
<blockquote type="cite" class="">_______________________________________________<br class="">
Dune mailing list<br class="">
<a href="mailto:Dune@lists.dune-project.org" class="">Dune@lists.dune-project.org</a><br class="">
https://lists.dune-project.org/mailman/listinfo/dune<br class="">
</blockquote>
<br class="">
<br class="">
-- <br class="">
Using PT-Scotch with DUNE <a href="https://t.co/hZH8lxf5ZF" class="">https://t.co/hZH8lxf5ZF</a><br class="">
<br class="">
Dr. Markus Blatt - HPC-Simulation-Software & Services <a href="http://www.dr-blatt.de" class="">
http://www.dr-blatt.de</a><br class="">
Pedettistr. 38, 85072 Eichstätt, Germany<br class="">
Tel.: +49 (0) 160 97590858<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>