MueLu: Driver DataToWrite option does not work with repartitioning
Created by: csiefer2
As reported by @rstumin . For instance. this crashes:
mpirun -np 2 MueLu_Driver.exe --xml=conchas_milestone_zoltan.xml
Looking at it in gdb tells me that the processor on which the data has been repartitioned away throws the following error:
p=1: *** Caught standard std::exception of type 'Teuchos::bad_any_cast' :
/ascldap/users/csiefer/Trilinos/sandbox5/Trilinos/packages/muelu/src/Interface/../MueCentral/MueLu_VariableContainer.hpp:103:
Throw number = 8
Throw test that evaluated to true: data_->type() != typeid(T)
Error, cast to type Data<Teuchos::RCP<Xpetra::Matrix<double, int, long long, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > >> failed since the actual underlying type is 'Teuchos::RCP<Xpetra::Operator<double, int, long long, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > >!
A workaround has been provided to @rstumin