Changeset d6a338 for src/mg.cpp


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/mg.cpp

    re58835d rd6a338  
    133133  if (GetFactory().TestObject("COMM") && GetFactory().TestObject("INTERFACE")) {
    134134
    135     Multigrid* sol = new Multigrid(GetComm(), GetInterface());
     135    GetComm()->ComputeDomainDecomposition(*GetInterface());
     136
     137    Multigrid* sol = new Multigrid(*GetComm(), *GetInterface());
    136138    sol->Register("SOL");
    137139
    138     Multigrid* rhs = new Multigrid(GetComm(), GetInterface());
     140    Multigrid* rhs = new Multigrid(*GetComm(), *GetInterface());
    139141    rhs->Register("RHS");
    140142
     
    149151      GetCycle()->Generate();
    150152
    151     if (GetFactory().TestObject("COMM"))
    152       GetComm()->PostInit(*GetSol(), *GetRhs());
     153    GetComm()->PostInit(*GetSol(), *GetRhs());
    153154
    154155  }
Note: See TracChangeset for help on using the changeset viewer.