[petsc-dev] plex errors in next

Barry Smith bsmith at mcs.anl.gov
Thu Aug 21 11:11:22 CDT 2014


/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'

---- 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");
    ^
    ^




More information about the petsc-dev mailing list