<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 14, 2013 at 4:01 PM, Geoffrey Irving <span dir="ltr"><<a href="mailto:irving@naml.us" target="_blank">irving@naml.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Nov 14, 2013 at 1:03 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>

> On Thu, Nov 14, 2013 at 2:01 PM, Geoffrey Irving <<a href="mailto:irving@naml.us">irving@naml.us</a>> wrote:<br>
>><br>
>> The SetupElement, SetupMaterialElement, and SetupBdElement functions<br>
>> are almost entirely duplicates of each other:<br>
>><br>
>>     ./src/snes/examples/tutorials/ex12.c<br>
>><br>
>> This makes it a bit difficult to understand what's going on: I'm new<br>
>> the code, so I had to run a diff to confirm that the boundary spaces<br>
>> are allocated identically to the interior spaces (I naively expected a<br>
>> difference, but it's apparently elsewhere in the code).<br>
>><br>
>> Are there any objections to me refactoring the code a bit to avoid the<br>
>> duplication?<br>
><br>
><br>
> No, however it would be nice to verify that the current tests run:<br>
><br>
>   ./config/builder2.py check src/snes/examples/tutorials/ex12.c<br>
<br>
</div>They don't, but I haven't started changing anything yet.  mpiexec<br>
fails with a exceedingly unhelpful usage message (below).  The test<br>
seems to run fine if I use mpirun directory.  I'm on openmpi 1.4.5.<br>
The problem appears to be the "-hosts" option: it also runs fine with<br>
mpiexec if I remove "-hosts localhost".<br>
<br>
Geoffrey<br>
<br>
---------------------------------<br>
<br>
cayley:petsc% mpiexec -hosts localhost -n 1 --<br>
/home/irving/petsc/debug/lib/ex12-obj/ex12 -run_type test<br>
-refinement_limit 0.0    -bc_type dirichlet -interpolate 0<br>
-petscspace_order 1 -show_initial -dm_plex_print_fem 1<br>
mpiexec (OpenRTE) 1.4.5<br>
<br>
Usage: mpiexec [OPTION]...  [PROGRAM]...<br>
...<br>
</blockquote></div><br>Yes, I hate mpiexec since its non-standard. I put in -hosts so that it will run on my laptop</div><div class="gmail_extra">when disconnected from Wifi. You can change builder.py:1701 to get it running. I need</div>
<div class="gmail_extra">to put in a stupid configure tests for this.</div><div class="gmail_extra"><br></div><div class="gmail_extra">  Matt<br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>