| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file domain_decomposition_mpi.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Jun 27 12:53:50 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Computes a domain decomposition which separates
|
|---|
| 7 | * the finest grid equally for all processes.
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | #ifndef DOMAIN_DECOMPOSITION_MPI_HPP_
|
|---|
| 12 | #define DOMAIN_DECOMPOSITION_MPI_HPP_
|
|---|
| 13 |
|
|---|
| 14 | #include "comm/domain_decomposition.hpp"
|
|---|
| 15 |
|
|---|
| 16 | namespace VMG
|
|---|
| 17 | {
|
|---|
| 18 |
|
|---|
| 19 | class Index;
|
|---|
| 20 |
|
|---|
| 21 | class DomainDecompositionMPI : public DomainDecomposition
|
|---|
| 22 | {
|
|---|
| 23 | public:
|
|---|
| 24 | void Compute(Comm* comm, const Interface* interface, std::vector<GlobalIndices>& global);
|
|---|
| 25 |
|
|---|
| 26 | private:
|
|---|
| 27 | bool IsActive(Comm* comm, const Index& size_global, Index& procs);
|
|---|
| 28 | void FineToCoarse(Comm* comm, int& begin, int& end, int levels);
|
|---|
| 29 | };
|
|---|
| 30 |
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | #endif /* DOMAIN_DECOMPOSITION_MPI_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.