Amesos2 tests FTBFS with MUMPS
Created by: bavier
With the following configure script at commit f95a33e8
cmake \
-DCMAKE_CXX_COMPILER=mpic++ \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_Fortran_COMPILER=mpifort \
-DBUILD_SHARED_LIBS:BOOL=YES \
-DTrilinos_ENABLE_Amesos2:BOOL=YES \
-DTPL_ENABLE_MUMPS:BOOL=YES \
-DMUMPS_LIBRARY_NAMES='dmumps;mumps_common;scalapack;lapack;ptscotch;scotch;scotcherr;metis;ptesmumps;esmumps;pord' \
-DTPL_ENABLE_MPI:BOOL=YES \
-DAmesos2_ENABLE_MUMPS:BOOL=YES \
-DAmesos2_ENABLE_TESTS:BOOL=YES \
..
I get the following failure when building amesos2/test/solvers/Solver_Test.cpp:
In file included from /ptmp/Trilinos/packages/amesos2/src/Amesos2_MUMPS.hpp:49:0,
from /ptmp/Trilinos/packages/amesos2/src/Amesos2_Factory.hpp:120,
from /ptmp/Trilinos/packages/amesos2/src/Amesos2.hpp:45,
from /ptmp/Trilinos/packages/amesos2/test/solvers/Solver_Test.cpp:72:
/ptmp/Trilinos/packages/amesos2/src/Amesos2_MUMPS_def.hpp: In instantiation of 'int Amesos2::MUMPS< <template-parameter-1-1>, <template-parameter-1-2> >::ConvertToTriplet() [with Matrix = Tpetra::CrsMatrix<std::complex<double>, long long int, long long int, Kokkos::
Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>; Vector = Tpetra::MultiVector<std::complex<double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>]':
/ptmp/Trilinos/packages/amesos2/src/Amesos2_MUMPS_def.hpp:404:27: required from 'bool Amesos2::MUMPS< <template-parameter-1-1>, <template-parameter-1-2> >::loadA_impl(Amesos2::EPhase) [with Matrix = Tpetra::CrsMatrix<std::complex<double>, long long int, long long
int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>; Vector = Tpetra::MultiVector<std::complex<double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>]'
/ptmp/Trilinos/packages/amesos2/src/Amesos2_SolverCore_def.hpp:512:18: required from 'void Amesos2::SolverCore<ConcreteSolver, Matrix, Vector>::loadA(Amesos2::EPhase) [with ConcreteSolver = Amesos2::MUMPS; Matrix = Tpetra::CrsMatrix<std::complex<double>, long long
int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>; Vector = Tpetra::MultiVector<std::complex<double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>]'
/ptmp/Trilinos/packages/amesos2/src/Amesos2_SolverCore_def.hpp:105:8: required from 'Amesos2::Solver<Matrix, Vector>& Amesos2::SolverCore<ConcreteSolver, Matrix, Vector>::preOrdering() [with ConcreteSolver = Amesos2::MUMPS; Matrix = Tpetra::CrsMatrix<std::complex<
double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>; Vector = Tpetra::MultiVector<std::complex<double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>]'
/ptmp/Trilinos/packages/amesos2/test/solvers/Solver_Test.cpp:1610:1: required from here
/ptmp/Trilinos/packages/amesos2/src/Amesos2_MUMPS_def.hpp:420:19: error: cannot convert 'Amesos2::MUMPS<Tpetra::CrsMatrix<std::complex<double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>, Tpetra::MultiVector<std::co
mplex<double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false> >::local_ordinal_type* {aka long long int*}' to 'int*' in assignment
mumps_par.irn = (local_ordinal_type*)malloc(mumps_par.nz *sizeof(local_ordinal_type));
^
/ptmp/Trilinos/packages/amesos2/src/Amesos2_MUMPS_def.hpp:421:19: error: cannot convert 'Amesos2::MUMPS<Tpetra::CrsMatrix<std::complex<double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>, Tpetra::MultiVector<std::co
mplex<double>, long long int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false> >::local_ordinal_type* {aka long long int*}' to 'int*' in assignment
mumps_par.jcn = (local_ordinal_type*)malloc(mumps_par.nz * sizeof(local_ordinal_type));
^