[petsc-dev] plex errors in next

Matthew Knepley knepley at gmail.com
Thu Aug 21 11:17:02 CDT 2014


On Thu, Aug 21, 2014 at 11:11 AM, Barry Smith <bsmith at mcs.anl.gov> wrote:

> /usr/home/balay/petsc.clone/src/dm/impls/plex/plex.c:5320: warning: 'newP'
> may be used uninitialized in this function
> /usr/home/balay/petsc.clone/src/dm/impls/plex/plexpreallocate.c:170:
> warning: 'anchorAdj' may be used uninitialized in this function
> /usr/home/balay/petsc.clone/src/dm/impls/plex/plexsubmesh.c:149: warning:
> 'point' is used uninitialized in this function
> /usr/home/balay/petsc.clone/src/dm/impls/plex/plextree.c:1914: warning:
> unused variable ‘k'
>

Satish mailed me first :)

  Matt


> ---- WARNINGS ----
> /sandbox/petsc/petsc.clone-2/src/dm/impls/plex/plex.c:5590:24: warning:
> variable 'newP' is uninitialized when used here [-Wuninitialized]
> 1 warning generated.
> /sandbox/petsc/petsc.clone-2/src/dm/impls/plex/plexsubmesh.c:149:12:
> warning: variable 'point' is uninitialized when used here [-Wuninitialized]
> 1 warning generated.
>
> ---- ERRORS ----
> clang: warning: treating 'c' input as 'c++' when in C++ mode, this
> behavior is deprecated
>          CXX
> arch-linux-cxx-cmplx-pkgs-64idx/obj/src/dm/impls/plex/ftn-auto/plexfemf.o
> /sandbox/petsc/petsc.clone-2/src/dm/impls/plex/plextree.c:1729:10: error:
> no matching function for call to 'MPI_Comm_rank'
>   ierr =
> MPI_Comm_rank(PetscObjectComm((PetscObject)dm),&rank);CHKERRQ(ierr);
>          ^~~~~~~~~~~~~
> /sandbox/petsc/petsc.clone-2/arch-linux-cxx-cmplx-pkgs-64idx/include/mpi.h:1031:5:
> note: candidate function not viable: no known conversion from 'PetscInt *'
> (aka 'long *') to 'int *' for 2nd argument
> int MPI_Comm_rank(MPI_Comm comm, int *rank)
> MPICH_ATTR_WEAK_ALIAS("PMPI_Comm_rank");
>     ^
>     ^
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140821/747239e3/attachment.html>


More information about the petsc-dev mailing list