Amesos2: Umfpack + Superlu compile failure when complex_double enabled
Created by: ndellingwood
Reported by Sam Browne via email.
When compiling Trilinos with Amesos2 enabled and Umfpack and Superlu TPLs a compile error results. This is due to ambiguity in matching the templated class ValueTypeConversionTraits
resulting in candidate specializations in both the Umfpack and Superlu TypeMaps.
Error:
/Users/ndellin/Research/trilinos/Trilinos/packages/amesos2/src/Amesos2_Details_registerLinearSolverFactory.cpp:102:1: required from here
/Users/ndellin/Research/trilinos/Trilinos/packages/teuchos/core/src/Teuchos_as.hpp:2830:61: error: ambiguous template instantiation for 'class Teuchos::ValueTypeConversionTraits<SLU::Z::doublecomplex, std::complex<double> >'
return ValueTypeConversionTraits<TypeTo,TypeFrom>::convert(t);
Fix is to add full specializations to the SuperLU TypeMap to prevent the ambiguity. PR coming in shortly.
@trilinos/amesos2