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_regular.cpp

    rd24c2f rac6d04  
    3838#endif
    3939
    40   this->Realloc(rhs.Global().SizeGlobal().Product());
     40  this->Realloc(rhs.Global().GlobalSize().Product());
    4141
    4242  for (grid_iter = rhs.Iterators().Local().Begin(); grid_iter != rhs.Iterators().Local().End(); ++grid_iter) {
    4343
    44     mat_index = rhs.GlobalLinearIndex(*grid_iter + rhs.Global().BeginLocal());
     44    mat_index = rhs.GlobalLinearIndex(*grid_iter + rhs.Global().LocalBegin());
    4545
    4646    assert(mat_index >= 0 && mat_index<this->Size());
     
    5656    for (stencil_iter = A.begin(); stencil_iter != A.end(); ++stencil_iter) {
    5757
    58       mat_index2 = rhs.GlobalLinearIndex(*grid_iter + rhs.Global().BeginLocal() + stencil_iter->Disp());
     58      mat_index2 = rhs.GlobalLinearIndex(*grid_iter + rhs.Global().LocalBegin() + stencil_iter->Disp());
    5959
    6060      assert(mat_index2 >= 0 && mat_index2<this->Size());
     
    6969    for (grid_iter = rhs.Iterators().Boundary1()[i].Begin(); grid_iter != rhs.Iterators().Boundary1()[i].End(); ++grid_iter) {
    7070
    71       mat_index = rhs.GlobalLinearIndex(*grid_iter + rhs.Global().BeginLocal());
     71      mat_index = rhs.GlobalLinearIndex(*grid_iter + rhs.Global().LocalBegin());
    7272
    7373      assert(mat_index >= 0 && mat_index<this->Size());
     
    8484    for (grid_iter = rhs.Iterators().Boundary2()[i].Begin(); grid_iter != rhs.Iterators().Boundary2()[i].End(); ++grid_iter) {
    8585
    86       mat_index = rhs.GlobalLinearIndex(*grid_iter + rhs.Global().BeginLocal());
     86      mat_index = rhs.GlobalLinearIndex(*grid_iter + rhs.Global().LocalBegin());
    8787
    8888      assert(mat_index >= 0 && mat_index<this->Size());
     
    110110
    111111  for (Grid::iterator iter = sol.Iterators().CompleteGrid().Begin(); iter != sol.Iterators().CompleteGrid().End(); ++iter) {
    112     index = sol.GlobalLinearIndex(sol.Global().BeginLocal() + *iter - offset);
     112    index = sol.GlobalLinearIndex(sol.Global().LocalBegin() + *iter - offset);
    113113    sol(*iter) = this->Sol(index);
    114114  }
Note: See TracChangeset for help on using the changeset viewer.