DOLFIN needs updating for PETSc 3.

Garth

Johannes Ring wrote:
> FYI:
> 
> I added a new buildslave that runs some of the latest software, like PETSc
> 3.0.0, SLEPc 3.0.0, Trilinos 9.0.2, and OpenMPI 1.3. Please tell me if
> this is not a good idea.
> 
> The buildslave failed (as expected) with some PETSc error:
> 
> mpic++ -o dolfin/la/PETScKrylovMatrix.os -c -Wall -pipe -ansi -Werror
> -DDEBUG -g -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK
> -DPACKAGE_VERSION=\"0.9.1\" -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_SCOTCH=1
> -DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_TRILINOS=1 -DHAS_CHOLMOD=1 -DHAS_MTL4=1
> -fPIC -I. -I/work/jhbuildbot/fenics/include -I/usr/include
> -I/usr/include/libxml2
> -I/work/jhbuildbot/src/petsc-3.0.0-p3/linux-gnu-cxx-debug/include
> -I/work/jhbuildbot/src/petsc-3.0.0-p3/include
> -I/work/jhbuildbot/local/include -I/work/jhbuildbot/src/slepc-3.0.0-p2
> -I/work/jhbuildbot/src/slepc-3.0.0-p2/linux-gnu-cxx-debug/include
> -I/work/jhbuildbot/src/slepc-3.0.0-p2/include
> -I/work/jhbuildbot/src/petsc-3.0.0-p3/linux-gnu-cxx-debug/include
> -I/work/jhbuildbot/src/petsc-3.0.0-p3/include
> -I/work/jhbuildbot/local/include -I/work/jhbuildbot/src/scotch_5.1/include
> -I/usr/include/suitesparse -I/usr/include -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/work/jhbuildbot/local/include
> -I/usr/include/suitesparse -I/work/jhbuildbot/src/mtl4 -I/usr/include
> dolfin/la/PETScKrylovMatrix.cpp
> mpic++ -o dolfin/la/PETScKrylovSolver.os -c -Wall -pipe -ansi -Werror
> -DDEBUG -g -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK
> -DPACKAGE_VERSION=\"0.9.1\" -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_SCOTCH=1
> -DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_TRILINOS=1 -DHAS_CHOLMOD=1 -DHAS_MTL4=1
> -fPIC -I. -I/work/jhbuildbot/fenics/include -I/usr/include
> -I/usr/include/libxml2
> -I/work/jhbuildbot/src/petsc-3.0.0-p3/linux-gnu-cxx-debug/include
> -I/work/jhbuildbot/src/petsc-3.0.0-p3/include
> -I/work/jhbuildbot/local/include -I/work/jhbuildbot/src/slepc-3.0.0-p2
> -I/work/jhbuildbot/src/slepc-3.0.0-p2/linux-gnu-cxx-debug/include
> -I/work/jhbuildbot/src/slepc-3.0.0-p2/include
> -I/work/jhbuildbot/src/petsc-3.0.0-p3/linux-gnu-cxx-debug/include
> -I/work/jhbuildbot/src/petsc-3.0.0-p3/include
> -I/work/jhbuildbot/local/include -I/work/jhbuildbot/src/scotch_5.1/include
> -I/usr/include/suitesparse -I/usr/include -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/work/jhbuildbot/local/include
> -I/usr/include/suitesparse -I/work/jhbuildbot/src/mtl4 -I/usr/include
> dolfin/la/PETScKrylovSolver.cpp
> dolfin/la/PETScKrylovMatrix.cpp: In function 'dolfin::LogStream&
> dolfin::operator<<(dolfin::LogStream&, const dolfin::PETScKrylovMatrix&)':
> dolfin/la/PETScKrylovMatrix.cpp:160: error: invalid conversion from
> 'char**' to 'const char**'
> dolfin/la/PETScKrylovMatrix.cpp:160: error:   initializing argument 2 of
> 'PetscErrorCode MatGetType(_p_Mat*, const char**)'
> scons: *** [dolfin/la/PETScKrylovMatrix.os] Error 1
> dolfin/la/PETScKrylovSolver.cpp: In member function 'void
> dolfin::PETScKrylovSolver::writeReport(int)':
> dolfin/la/PETScKrylovSolver.cpp:310: error: invalid conversion from
> 'char**' to 'const char**'
> dolfin/la/PETScKrylovSolver.cpp:310: error:   initializing argument 2 of
> 'PetscErrorCode KSPGetType(_p_KSP*, const char**)'
> dolfin/la/PETScKrylovSolver.cpp:316: error: invalid conversion from
> 'char**' to 'const char**'
> dolfin/la/PETScKrylovSolver.cpp:316: error:   initializing argument 2 of
> 'PetscErrorCode PCGetType(_p_PC*, const char**)'
> cc1plus: warnings being treated as errors
> dolfin/la/PETScKrylovSolver.cpp: In member function 'char*
> dolfin::PETScKrylovSolver::getType(dolfin::SolverType) const':
> dolfin/la/PETScKrylovSolver.cpp:328: warning: deprecated conversion from
> string constant to 'char*'
> dolfin/la/PETScKrylovSolver.cpp:330: warning: deprecated conversion from
> string constant to 'char*'
> dolfin/la/PETScKrylovSolver.cpp:332: warning: deprecated conversion from
> string constant to 'char*'
> dolfin/la/PETScKrylovSolver.cpp:334: warning: deprecated conversion from
> string constant to 'char*'
> dolfin/la/PETScKrylovSolver.cpp:337: warning: deprecated conversion from
> string constant to 'char*'
> scons: *** [dolfin/la/PETScKrylovSolver.os] Error 1
> scons: building terminated because of errors.
> 
> Johannes
> 
> 
> _______________________________________________
> DOLFIN-dev mailing list
> [email protected]
> http://www.fenics.org/mailman/listinfo/dolfin-dev

_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to