MueLu: Build errors for Scalar=std::complex<double>
Created by: mhoemmen
@trilinos/muelu
The build errors are in muelu/src/Graph/MueLu_VariableDofLaplacianFactory_def.hpp
(and possibly elsewhere). They relate to conversions from Scalar to built-in integer types like int
. This is not defined when Scalar is complex. Best practice is to take the real part via Teuchos::ScalarTraits<Scalar>::real(someScalar)
, then assign to the integer type. There are also comparisons of Scalar with int
that need fixing (presumably in the same way).
You folks aren't assuming Scalar is always 64 bits, are you? That seems unwise....