On Wed, Oct 3, 2012 at 5:24 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think the attached patch should fix this issue. But I'll let Matt<br>
confirm - before comitting to repo</blockquote><div><br></div><div>Yes, this is right.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Satish<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, 3 Oct 2012, Chris Eldred wrote:<br>
<br>
> I am having issues compiling petsc-dev (the most recent version according<br>
> to hg pull -u). Here are the last few lines of output:<br>
><br>
> [ 65%] Building CXX object<br>
> CMakeFiles/petsc.dir/src/dm/impls/complex/complexcreate.c.o<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:<br>
> In function ‘PetscErrorCode DMComplexCreateSquareBoundary(DM, const<br>
> PetscReal*, const PetscReal*, const PetscInt*)’:<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:40:18:<br>
> warning: unused variable ‘mesh’ [-Wunused-variable]<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:<br>
> In function ‘PetscErrorCode DMComplexCreateCubeBoundary(DM, const<br>
> PetscReal*, const PetscReal*, const PetscInt*)’:<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:158:18:<br>
> warning: unused variable ‘mesh’ [-Wunused-variable]<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:<br>
> In function ‘PetscErrorCode DMComplexCreateSquareMesh(DM, const PetscReal*,<br>
> const PetscReal*, const PetscInt*)’:<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:255:18:<br>
> warning: unused variable ‘mesh’ [-Wunused-variable]<br>
> [ 65%] Building CXX object<br>
> CMakeFiles/petsc.dir/src/dm/impls/complex/complex.c.o<br>
> [ 65%] Building CXX object<br>
> CMakeFiles/petsc.dir/src/dm/impls/complex/complexexodusii.c.o<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c: In<br>
> function ‘PetscErrorCode DMComplexGenerate_CTetgen(DM, PetscBool, _p_DM**)’:<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c:4610:50:<br>
> error: cannot convert ‘DM_Complex*’ to ‘DM {aka _p_DM*}’ for argument ‘1’<br>
> to ‘PetscErrorCode DMGetCoordinatesLocal(DM, _p_Vec**)’<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c:4611:59:<br>
> error: cannot convert ‘DM_Complex*’ to ‘DM {aka _p_DM*}’ for argument ‘1’<br>
> to ‘PetscErrorCode DMComplexGetCoordinateSection(DM, _n_PetscSection**)’<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c: In<br>
> function ‘PetscErrorCode DMComplexRefine_CTetgen(DM, PetscReal*, _p_DM**)’:<br>
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c:4729:18:<br>
> warning: unused variable ‘mesh’ [-Wunused-variable]<br>
> [ 65%] Building CXX object<br>
> CMakeFiles/petsc.dir/src/dm/impls/complex/complexvtk.c.o<br>
> make[4]: *** [CMakeFiles/petsc.dir/src/dm/impls/complex/complex.c.o] Error 1<br>
> make[4]: *** Waiting for unfinished jobs....<br>
> make[3]: *** [CMakeFiles/petsc.dir/all] Error 2<br>
> make[2]: *** [all] Error 2<br>
> make[1]: *** [cmake] Error 2<br>
> ********************************************************************<br>
>   Error during compile, check arch-linux2-cxx-debug/conf/make.log<br>
>   Send it and arch-linux2-cxx-debug/conf/configure.log to<br>
> <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a><br>
> ********************************************************************<br>
> make: *** [all] Error 1<br>
><br>
> I've sent my make.log and configure.log files to <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a> as<br>
> requested.<br>
><br>
> </div></div></blockquote></div><br><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<br>