[petsc-dev] PETSc blame digest (next) 2016-05-16
Barry Smith
bsmith at mcs.anl.gov
Mon May 16 13:07:57 CDT 2016
You need to move the example to the snes directory if you want to use SNES in it. git mv ...
Barry
> On May 16, 2016, at 10:30 AM, Mark Adams <cal2princeton at yahoo.com> wrote:
>
> I don't see these errors on osx or on Linux (Cray):
>
> 1) I had this in a function:
>
> #define IDX(ii,jj,kk,ll) (27*ii+9*jj+3*kk+ll)
> int i,j,k,l;
>
> seems to fail. It wants a ';' before this declaration. I assume I should just move the #define outside of the function.
>
> 2) I added SNES to ksp ex56 and that cause missing SNES methods:
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:473: undefined reference to `SNESCreate'
>
> I guess I should not have SNES methods here. I can remove SNES but would rather not. Should I make this a SNES example?
>
> On Monday, May 16, 2016 10: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/ad02f83
> added new version of ex56 (Plex) + hyper version - nns version
>
> src/ksp/ksp/examples/tutorials/ex56.c:247
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-mswin_ps3.log]
> C:\cygwin\home\sbalay\PETSC~1.CLO\src\ksp\ksp\examples\TUTORI~1\ex56.c(247) : error C2143: syntax error : missing ';' before 'type'
>
> src/ksp/ksp/examples/tutorials/ex56.c:249
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-mswin_ps3.log]
> C:\cygwin\home\sbalay\PETSC~1.CLO\src\ksp\ksp\examples\TUTORI~1\ex56.c(249) : error C2065: 'j' : undeclared identifier
>
> src/ksp/ksp/examples/tutorials/ex56.c:250
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-mswin_ps3.log]
> C:\cygwin\home\sbalay\PETSC~1.CLO\src\ksp\ksp\examples\TUTORI~1\ex56.c(250) : error C2065: 'k' : undeclared identifier
>
> src/ksp/ksp/examples/tutorials/ex56.c:251
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-mswin_ps3.log]
> C:\cygwin\home\sbalay\PETSC~1.CLO\src\ksp\ksp\examples\TUTORI~1\ex56.c(251) : error C2065: 'l' : undeclared identifier
>
> src/ksp/ksp/examples/tutorials/ex56.c:473
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:473: undefined reference to `SNESCreate'
>
> src/ksp/ksp/examples/tutorials/ex56.c:474
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:474: undefined reference to `SNESSetDM'
>
> src/ksp/ksp/examples/tutorials/ex56.c:476
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:476: undefined reference to `SNESSetFromOptions'
>
> src/ksp/ksp/examples/tutorials/ex56.c:477
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:477: undefined reference to `DMPlexSNESComputeResidualFEM'
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:477: undefined reference to `DMSNESSetFunctionLocal'
>
> src/ksp/ksp/examples/tutorials/ex56.c:478
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:478: undefined reference to `DMPlexSNESComputeJacobianFEM'
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:478: undefined reference to `DMSNESSetJacobianLocal'
>
> src/ksp/ksp/examples/tutorials/ex56.c:480
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:480: undefined reference to `SNESSetJacobian'
>
> src/ksp/ksp/examples/tutorials/ex56.c:482
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:482: undefined reference to `SNESSetUp'
>
> src/ksp/ksp/examples/tutorials/ex56.c:483
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:483: undefined reference to `SNESGetKSP'
>
> src/ksp/ksp/examples/tutorials/ex56.c:492
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:492: undefined reference to `SNESComputeJacobian'
>
> src/ksp/ksp/examples/tutorials/ex56.c:493
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:493: undefined reference to `SNESComputeFunction'
>
> src/ksp/ksp/examples/tutorials/ex56.c:520
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:520: undefined reference to `SNESSolve'
>
> src/ksp/ksp/examples/tutorials/ex56.c:534
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:534: undefined reference to `SNESSetUp'
>
> src/ksp/ksp/examples/tutorials/ex56.c:542
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:542: undefined reference to `SNESSolve'
>
> src/ksp/ksp/examples/tutorials/ex56.c:552
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:552: undefined reference to `SNESSetUp'
>
> src/ksp/ksp/examples/tutorials/ex56.c:560
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:560: undefined reference to `SNESSolve'
>
> src/ksp/ksp/examples/tutorials/ex56.c:576
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-pkgs-cxx-mlib_el6.log]
> /sandbox/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:576: undefined reference to `SNESDestroy'
>
> src/ksp/ksp/examples/tutorials/ex56.c:68
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-osx-10.6-cxx-cmplx-pkgs-dbg_ipro.log]
> /Users/petsc/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:68:11: error: invalid operands to binary expression ('PetscReal' (aka 'double') and 'const PetscScalar' (aka 'const complex<double>'))
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-mswin-cxx-cmplx_ps3.log]
> C:\cygwin\home\sbalay\PETSC~2.CLO\src\ksp\ksp\examples\TUTORI~1\ex56.c(68) : error C2784: 'class std::complex<_Ty> &__cdecl std::operator +=(class std::complex<_Ty> &,const class std::complex<_U> &)' : could not deduce template argument for 'class std::complex<_Ty> &' from 'double'
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-mswin-cxx-cmplx_ps3.log]
> C:\cygwin\home\sbalay\PETSC~2.CLO\src\ksp\ksp\examples\TUTORI~1\ex56.c(68) : error C2677: binary '+=' : no global operator defined which takes type 'const class std::complex<double>' (or there is no acceptable conversion)
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-freebsd-cxx-cmplx-pkgs-dbg_wii.log]
> /usr/home/balay/petsc.clone-3/src/ksp/ksp/examples/tutorials/ex56.c:68:11: error: no match for 'operator+=' (operand types are 'PetscReal {aka double}' and 'const PetscScalar {aka const std::complex<double>}')
> [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/05/16/examples_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log]
> /sandbox/petsc/petsc.clone-2/src/ksp/ksp/examples/tutorials/ex56.c:68:11: error: invalid operands to binary expression ('PetscReal' (aka 'double') and 'const PetscScalar' (aka 'const 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