[petsc-dev] PETSc blame digest (next) 2017-07-12

Barry Smith bsmith at mcs.anl.gov
Wed Jul 12 16:35:43 CDT 2017


  Satish,

    I think I have fixed this complex problem.


> On Jul 12, 2017, at 9:00 AM, PETSc checkBuilds <petsc-checkbuilds at mcs.anl.gov> wrote:
> 
> 
> 
> Dear PETSc developer,
> 
> This email contains listings of contributions attributed to you by
> `git blame` that caused compiler errors or warnings in PETSc automated
> testing.  Follow the links to see the full log files. Please attempt to fix
> the issues promptly or let us know at petsc-dev at mcs.anl.gov if you are unable
> to resolve the issues.
> 
> Thanks,
>  The PETSc development team
> 
> ----
> 
> warnings attributed to commit https://bitbucket.org/petsc/petsc/commits/6777ff4
> Simple examples of the spectral method in one dimension using stored matrices
> 
>  src/sys/classes/gll/petscgll.c:209
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-osx-10.6-cxx-cmplx-pkgs-dbg_ipro.log]
>      /Users/petsc/petsc.clone-3/src/sys/classes/gll/petscgll.c:209:93: error: cannot convert 'PetscScalar' (aka 'complex<double>') to 'double' without a conversion operator
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-freebsd-cxx-cmplx-pkgs-dbg_wii.log]
>      /usr/home/balay/petsc.clone-3/src/sys/classes/gll/petscgll.c:209:115: error: invalid cast from type 'PetscScalar {aka std::complex<double>}' to type 'double'
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log]
>      /sandbox/petsc/petsc.clone-2/src/sys/classes/gll/petscgll.c:209:93: error: cannot convert 'PetscScalar' (aka 'complex<double>') to 'double' without a conversion operator
> 
>  src/sys/classes/gll/petscgll.c:239
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-osx-10.6-cxx-cmplx-pkgs-dbg_ipro.log]
>      /Users/petsc/petsc.clone-3/src/sys/classes/gll/petscgll.c:239:9: error: invalid operands to binary expression ('PetscReal' (aka 'double') and 'complex<double>')
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-freebsd-cxx-cmplx-pkgs-dbg_wii.log]
>      /usr/home/balay/petsc.clone-3/src/sys/classes/gll/petscgll.c:239:9: error: no match for 'operator+=' (operand types are 'PetscReal {aka double}' and 'std::complex<double>')
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log]
>      /sandbox/petsc/petsc.clone-2/src/sys/classes/gll/petscgll.c:239:9: error: invalid operands to binary expression ('PetscReal' (aka 'double') and 'complex<double>')
> 
>  src/sys/classes/gll/petscgll.c:315
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-opt-cxx-quad_grind.log]
>      /sandbox/petsc/petsc.clone-3/src/sys/classes/gll/petscgll.c:315:76: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-dbg-quad_churn.log]
>      /sandbox/petsc/petsc.clone-3/src/sys/classes/gll/petscgll.c:315:76: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-pkgs-opt_crank.log]
>      /sandbox/petsc/petsc.clone/src/sys/classes/gll/petscgll.c:315:76: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-xsdk-latest_cg.log]
>      /sandbox/petsc/petsc.clone-4/src/sys/classes/gll/petscgll.c:315:76: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-freebsd-pkgs-opt_wii.log]
>      /usr/home/balay/petsc.clone/src/sys/classes/gll/petscgll.c:315:76: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-cuda-single_es.log]
>      /sandbox/petsc/petsc.clone-2/src/sys/classes/gll/petscgll.c:315:76: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-freebsd-cxx-pkgs-opt_wii.log]
>      /usr/home/balay/petsc.clone-2/src/sys/classes/gll/petscgll.c:315:76: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-IPL64_thrash.log]
>      /sandbox/petsc/petsc.clone-2/src/sys/classes/gll/petscgll.c:315:76: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
> 
>  src/sys/classes/gll/petscgll.c:329
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-without-fc_cg.log]
>      /sandbox/petsc/petsc.clone-2/src/sys/classes/gll/petscgll.c:329:53: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-viennacl_es.log]
>      /sandbox/petsc/petsc.clone-4/src/sys/classes/gll/petscgll.c:329:53: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-c-exodus-dbg-builder_es.log]
>      /sandbox/petsc/petsc.clone-3/src/sys/classes/gll/petscgll.c:329:53: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-cuda-double_es.log]
>      /sandbox/petsc/petsc.clone/src/sys/classes/gll/petscgll.c:329:53: warning: 'z2' may be used uninitialized in this function [-Wmaybe-uninitialized]
> 
>  src/sys/classes/gll/petscgll.c:479
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-freebsd-cxx-cmplx-pkgs-dbg_wii.log]
>      /usr/home/balay/petsc.clone-3/src/sys/classes/gll/petscgll.c:479:36: error: cannot convert 'PetscScalar* {aka std::complex<double>*}' to 'const PetscReal* {aka const double*}' in initialization
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-gcc-ifc-cmplx_crank.log]
>      /sandbox/petsc/petsc.clone-2/src/sys/classes/gll/petscgll.c:479:31: warning: initialization from incompatible pointer type [enabled by default]
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log]
>      /sandbox/petsc/petsc.clone-2/src/sys/classes/gll/petscgll.c:479:21: error: cannot initialize a variable of type 'const PetscReal *' (aka 'const double *') with an lvalue of type 'PetscScalar *' (aka 'complex<double> *')
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log]
>      "/export/home/petsc/petsc.clone-3/src/sys/classes/gll/petscgll.c", line 479: warning: assignment type mismatch:
>    [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2017/07/12/build_next_arch-osx-10.6-cxx-cmplx-pkgs-dbg_ipro.log]
>      /Users/petsc/petsc.clone-3/src/sys/classes/gll/petscgll.c:479:21: error: cannot initialize a variable of type 'const PetscReal *' (aka 'const double *') with an lvalue of type 'PetscScalar *' (aka 'complex<double> *')
> 
> ----
> To opt-out from receiving these messages - send a request to petsc-dev at mcs.anl.gov.




More information about the petsc-dev mailing list