Ignore:
Timestamp:
Apr 15, 2013, 1:45:14 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
e58835d
Parents:
0174593
Message:

Fixed global index issue with GaussSeidelRBPoisson2 class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/smoother/gsrb_poisson_2.cpp

    r0174593 rdc7dc9  
    6464{
    6565  const vmg_float prefactor_inv = Helper::pow_2(sol.Extent().MeshWidth().Max()) / 6.0;
    66   const int off = rhs.Global().LocalBegin().Sum() - rhs.Local().HaloSize1().Sum();
     66  const int off = rhs.Global().LocalBegin().Sum() - rhs.Global().GlobalBegin().Sum() + rhs.Local().HaloSize1().Sum();
    6767  const LocalIndices& local = rhs.Local();
    6868  Comm& comm = *MG::GetComm();
Note: See TracChangeset for help on using the changeset viewer.