void setMPIComm(const RCP<const Comm<int> > &problemComm__) { # ifdef HAVE_ZOLTAN2_MPI mpicomm = TeuchosConst2MPI(problemComm__); # else mpicomm = MPI_COMM_WORLD; // taken from siMPI # endif }
/*! ParMETIS constructor * \param env parameters for the problem and library configuration * \param problemComm the communicator for the problem * \param model a graph * * Preconditions: The parameters in the environment have been processed. * TODO: THIS IS A MINIMAL CONSTRUCTOR FOR NOW. * TODO: WHEN ADD PARMETIS ORDERING, MOVE PARMETIS GRAPH CONSTRUCTION * TODO: TO THE CONSTRUCTOR SO THAT CODE MAY BE SHARED. */ AlgParMETIS(const RCP<const Environment> &env__, const RCP<const Comm<int> > &problemComm__, const RCP<graphModel_t> &model__) : env(env__), problemComm(problemComm__), mpicomm(TeuchosConst2MPI(problemComm__)), model(model__) { }
/*! Scotch constructor * \param env parameters for the problem and library configuration * \param problemComm the communicator for the problem * \param model a graph * * Preconditions: The parameters in the environment have been processed. * TODO: THIS IS A MINIMAL CONSTRUCTOR FOR NOW. * TODO: WHEN ADD SCOTCH ORDERING OR MAPPING, MOVE SCOTCH GRAPH CONSTRUCTION * TODO: TO THE CONSTRUCTOR SO THAT CODE MAY BE SHARED. */ AlgPTScotch(const RCP<const Environment> &env__, const RCP<const Comm<int> > &problemComm__, const RCP<graphModel_t> &model__) : env(env__), problemComm(problemComm__), #ifdef HAVE_ZOLTAN2_MPI mpicomm(TeuchosConst2MPI(problemComm__)), #endif model(model__) { }