I see these warnings only with Cray compilers. Maybe it is a false positive.
Hong On Jun 5, 2017, at 11:39 AM, Matthew Knepley <[email protected]<mailto:[email protected]>> wrote: On Mon, Jun 5, 2017 at 11:29 AM, Zhang, Hong <[email protected]<mailto:[email protected]>> wrote: The first one looks like a bug. CC-128 craycc: WARNING File = /global/u2/h/hongzh/Project/petsc/src/dm/impls/plex/plextree.c, Line = 3149 The indicated loop is not reachable from preceding code. SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,"Unsupported discretization object");CHKERRQ(ierr); Please describe why it looks like a bug: if (classId == PETSCFE_CLASSID) { ierr = PetscFEGetDualSpace((PetscFE)disc,&dsp);CHKERRQ(ierr); } else if (classId == PETSCFV_CLASSID) { ierr = PetscFVGetDualSpace((PetscFV)disc,&dsp);CHKERRQ(ierr); } else { SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,"Unsupported discretization object");CHKERRQ(ierr); } Thanks, Matt ftn-1279 crayftn: WARNING TSADAPTEQUALS, File = ../../../global/u2/h/hongzh/Project/petsc/src/ts/f90-mod/petsctsmod.F, Line = 66, Column = 32 Procedure "TSADAPTEQUALS" is defined at line 32 (/global/u2/h/hongzh/Project/petsc/src/ts/f90-mod/petsctsmod.F). The type of this argument does not agree with dummy argument "A". ftn-1279 crayftn: WARNING TSADAPTEQUALS, File = ../../../global/u2/h/hongzh/Project/petsc/src/ts/f90-mod/petsctsmod.F, Line = 66, Column = 34 Procedure "TSADAPTEQUALS" is defined at line 32 (/global/u2/h/hongzh/Project/petsc/src/ts/f90-mod/petsctsmod.F). The type of this argument does not agree with dummy argument "B". Hong (Mr.) -- 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 http://www.caam.rice.edu/~mk51/
