Changeset d6a338 for src/comm/comm.hpp


Ignore:
Timestamp:
Apr 16, 2013, 11:27:31 AM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
177495
Parents:
e58835d
Message:

Save the whole domain decomposition instead of just the part for the current process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/comm/comm.hpp

    re58835d rd6a338  
    2929#define COMM_HPP_
    3030
     31#include <map>
    3132#include <list>
    3233
     
    3435#include "base/index.hpp"
    3536#include "base/object.hpp"
     37#include "comm/domain_decomposition.hpp"
    3638#include "thirdparty/pugixml/pugixml.hpp"
    3739
     
    4042
    4143class DomainDecomposition;
     44class GlobalIndices;
    4245class Grid;
     46class Interface;
    4347class Multigrid;
    4448class Stencil;
     
    129133  const Boundary& BoundaryConditions() const {return bound;}
    130134
    131   DomainDecomposition& GetDomainDecomposition() {return *dd;}
     135  vmg_float ComputeResidualNorm(Multigrid& sol, Multigrid& rhs);
    132136
    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
    134141
    135142protected:
    136143  const std::string& OutputPath();
    137144  int OutputCount() {return ++output_count;}
     145
     146  std::map<Index, std::vector<GlobalIndices> > decomposed_global;
    138147
    139148  Boundary bound;
Note: See TracChangeset for help on using the changeset viewer.