Changeset d6a338 for src/comm/comm.hpp
- Timestamp:
- Apr 16, 2013, 11:27:31 AM (13 years ago)
- Children:
- 177495
- Parents:
- e58835d
- File:
-
- 1 edited
-
src/comm/comm.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/comm/comm.hpp
re58835d rd6a338 29 29 #define COMM_HPP_ 30 30 31 #include <map> 31 32 #include <list> 32 33 … … 34 35 #include "base/index.hpp" 35 36 #include "base/object.hpp" 37 #include "comm/domain_decomposition.hpp" 36 38 #include "thirdparty/pugixml/pugixml.hpp" 37 39 … … 40 42 41 43 class DomainDecomposition; 44 class GlobalIndices; 42 45 class Grid; 46 class Interface; 43 47 class Multigrid; 44 48 class Stencil; … … 129 133 const Boundary& BoundaryConditions() const {return bound;} 130 134 131 DomainDecomposition& GetDomainDecomposition() {return *dd;}135 vmg_float ComputeResidualNorm(Multigrid& sol, Multigrid& rhs); 132 136 133 vmg_float ComputeResidualNorm(Multigrid& sol, Multigrid& rhs); 137 void ComputeDomainDecomposition(const Interface& interface) {dd->Compute(*this, interface, decomposed_global);} 138 const std::vector<GlobalIndices>& DecomposedGlobalMe() const {return decomposed_global.find(GlobalPos())->second;} 139 const std::map<Index, std::vector<GlobalIndices> >& DecomposedGlobal() const {return decomposed_global;} 140 134 141 135 142 protected: 136 143 const std::string& OutputPath(); 137 144 int OutputCount() {return ++output_count;} 145 146 std::map<Index, std::vector<GlobalIndices> > decomposed_global; 138 147 139 148 Boundary bound;
Note:
See TracChangeset
for help on using the changeset viewer.
