/** * @file domain_decomposition_mpi.hpp * @author Julian Iseringhausen * @date Mon Jun 27 12:53:50 2011 * * @brief Computes a domain decomposition which separates * the finest grid equally for all processes. * */ #ifndef DOMAIN_DECOMPOSITION_MPI_HPP_ #define DOMAIN_DECOMPOSITION_MPI_HPP_ #include "comm/domain_decomposition.hpp" namespace VMG { class Index; class DomainDecompositionMPI : public DomainDecomposition { public: void Compute(Comm* comm, const Interface* interface, std::vector& global); private: bool IsActive(Comm* comm, const Index& size_global, Index& procs); void FineToCoarse(Comm* comm, int& begin, int& end, int levels); }; } #endif /* DOMAIN_DECOMPOSITION_MPI_HPP_ */