Ignore:
Timestamp:
Apr 10, 2012, 1:55:49 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
a40eea
Parents:
d24c2f
Message:

Merge recent changes of the vmg library into ScaFaCos.

Includes a fix for the communication problems on Jugene.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1666 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/solver/solver.cpp

    rd24c2f rac6d04  
    2727#endif
    2828
    29   Comm* comm = MG::GetComm();
    30 
    31   Grid& rhsGlobal = comm->GetGlobalCoarseGrid(*rhs.Father());
    32 
    33   this->Realloc(rhsGlobal);
    34   this->AssembleMatrix(rhsGlobal);
    35   this->Compute();
    36   this->ExportSol(sol, rhs);
     29  if (rhs.Global().LocalSize().Product() > 0) {
     30    this->Realloc(rhs);
     31    this->AssembleMatrix(rhs);
     32    this->Compute();
     33    this->ExportSol(sol, rhs);
     34  }
    3735}
    3836
     
    5452void Solver::Realloc(Grid& sol)
    5553{
    56   this->Realloc(sol.Global().SizeGlobal().Product());
     54  this->Realloc(sol.Global().GlobalSize().Product());
    5755}
Note: See TracChangeset for help on using the changeset viewer.