<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I've reverted to dune 2.1.0 and dune-fem 1.2.1 and am now able to compile dune-fem-howto (it didn't compile with dune 2.2).<div><br></div><div>The examples I've tried in dune-fem-howto so far run without memory exceptions, so I'm guessing the issue could be with dune-fem 1.3.</div><div><br></div><div>(unfortunately dune-fem-school requires dune-fem v1.3 but hopefully I'll be able to figure out what I need from the dune-fem-howto examples).</div><div><br></div><div>I've written an installer script for Mac OS X so please let me know if anyone wants a copy.</div><div><br></div><div>Thanks,</div><div>Ali</div><div><br></div><div><br></div><div><div>On 18 Jul 2012, at 13:30, Alasdair McLeay wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><base href="x-msg://126/"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">(moved from dune to dune-fem)<div><br></div><div>Hi Andreas,</div><div><br></div><div>Yes that's correct - the 'intro' program runs, produces s0001-p0000-intro000000.vtu correctly, but the 'merged' file s0001-intro000000.pvtu is only 587 bytes so there seems to be a problem merging files. </div><div><br></div><div>I can view the output of the program by opening the part (s0001-p0000-intro000000.vtu), but I think this will cause me issues on time dependent problems so would like to resolve it if I can.</div><div><br></div><div>I have installed dune-grid-howto and compiled using dunecontrol with "--with-alugrid" and the integration program runs without a segmentation fault.<br><div><br></div><div>Thanks,</div><div>Ali</div><div><br></div><div><br><div><div>On 17 Jul 2012, at 18:42, Dedner, Andreas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div ocsi="0" fpstyle="1" style="word-wrap: break-word; "><div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt; ">Hi Ali.<br><br>This is perhaps not a clear case since it involves dune and its use on mac<br>but since the code you are using is from dune-fem it would be good<br>to keep these mail on the dune-fem list<br>(<a href="http://lists.dune-project.org/mailman/listinfo/dune-fem">http://lists.dune-project.org/mailman/listinfo/dune-fem</a>)<br><br>Did I understand correctly: the code ran successfully producing the<br>right results but terminated with the segfaults you have shown in your mail?<br>Perhaps we can reproduce the problem (seems to be dune+alu) with<br>some other program:<br>could you install the dune-grid-howto and use one of the test programs there<br>with alu to see if the same segfaults occurs.<span class="Apple-converted-space"> </span><br>Perhaps the intergration.cc testcase?<br><br>Thanks<br>Andreas<br><br><div style="font-family: 'Times New Roman'; color: rgb(0, 0, 0); font-size: 16px; "><hr tabindex="-1"><div id="divRpF607585" style="direction: ltr; "><font color="#000000" face="Tahoma" size="2"><b>From:</b><span class="Apple-converted-space"> </span><a href="mailto:dune-bounces+a.s.dedner=warwick.ac.uk@dune-project.org">dune-bounces+a.s.dedner=warwick.ac.uk@dune-project.org</a> [<a href="mailto:dune-bounces+a.s.dedner=warwick.ac.uk@dune-project.org">dune-bounces+a.s.dedner=warwick.ac.uk@dune-project.org</a>] on behalf of Alasdair McLeay [<a href="mailto:a.mcleay@sussex.ac.uk">a.mcleay@sussex.ac.uk</a>]<br><b>Sent:</b><span class="Apple-converted-space"> </span>17 July 2012 18:08<br><b>To:</b><span class="Apple-converted-space"> </span><a href="mailto:dune@dune-project.org">dune@dune-project.org</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>[Dune] Dune on Mac OS X - Segmentation Fault<br></font><br></div><div></div><div><div>Hi, I recently attended the DUNE School at the University of Warwick and have since been trying to get DUNE running under Mac OS X so that I can develop some code.</div><div><br></div><div>I have managed to get Dune installed and am able to compile the example code we were given at the DUNE school, but they all exit with a segmentation fault after finishing the execution of main(), e.g.</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><div><font class="Apple-style-span" face="Courier">$ ./intro </font></div></div><div><div><font class="Apple-style-span" face="Courier"><SNIP></font></div></div><div><div><font class="Apple-style-span" face="Courier">DataOutput[0]::write data writestep=0 sequenceStamp=0</font></div></div><div><div><font class="Apple-style-span" face="Courier">Debug: End of algorithm() </font></div></div><div><div><font class="Apple-style-span" face="Courier">Error: 0.0530314</font></div></div><div><div><font class="Apple-style-span" face="Courier">EOC( 4 ) = -0.00124586</font></div></div><div><div><font class="Apple-style-span" face="Courier">Debug: End of main() </font></div></div><div><div><font class="Apple-style-span" face="Courier">Segmentation fault: 11</font></div></div></blockquote><div><br></div><div>I've also been able to run the code in Xcode in order to debug it but the best I can do is find where the error is occurring:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">EXC_BAD_ACCESS during 'movl' at:</blockquote><div><br></div><blockquote class="webkit-indent-blockquote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><font class="Apple-style-span" face="Courier">4 start</font></div><div><font class="Apple-style-span" face="Courier">3 main</font></div><div><font class="Apple-style-span" face="Courier">2 Dune::GridPtr<Dune::ALUCubeGrid<2,2> >::~GridPtr()</font></div><div><font class="Apple-style-span" face="Courier">1 Dune::ALU2Grid<2,2,(ALU2Grid::ElementType)1>::~ALU2dGrid()</font></div><div><font class="Apple-style-span" face="Courier">0 Dune::DefaultIndexSet<DuneIndexSet<Dube::ALU2dGrid<2,2,(ALU2DGrid::ElementType)1>,Dune::EntityIterator<0,Dune::ALU2dGrid<2,2,(ALU2DGrid::ElementType)1> const, Dune::ALU2dGridLevelIterator<0,(Dune::PartitionIteratorType)4,DuneALU2dGrid<2,2,(ALU2DGrid::ElementType)1> const> > >::~DefaultIndexSet()</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div></blockquote><div style="font-family: Helvetica; ">Is anyone successfully running dune under Mac OS X?</div><div style="font-family: Helvetica; ">Any ideas what the problem may be?</div><div style="font-family: Helvetica; "><br></div><div style="font-family: Helvetica; ">I am using the following:</div><div style="font-family: Helvetica; "><br></div><blockquote class="webkit-indent-blockquote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><div><font class="Apple-style-span" face="Courier">dune-common-2.2.0</font></div></div><div><div><font class="Apple-style-span" face="Courier">dune-fem-1.3.0</font></div></div><div><div><font class="Apple-style-span" face="Courier">dune-geometry-2.2.0</font></div></div><div><div><font class="Apple-style-span" face="Courier">dune-grid-2.2.0</font></div></div><div><div><font class="Apple-style-span" face="Courier">dune-istl-2.2.0</font></div></div><div><div><font class="Apple-style-span" face="Courier">dune-localfunctions-2.2.0</font></div></div><div><font class="Apple-style-span" face="Courier">ALUGrid 1.5</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div></blockquote>Thanks,<div>Ali</div></div></div></div></div></span></blockquote></div><br></div></div></div>_______________________________________________<br>dune-fem mailing list<br><a href="mailto:dune-fem@dune-project.org">dune-fem@dune-project.org</a><br>http://lists.dune-project.org/mailman/listinfo/dune-fem<br></blockquote></div><br></body></html>