Changeset bd61b5c for src


Ignore:
Timestamp:
Apr 9, 2013, 1:39:16 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
61edd6
Parents:
0bd47e
Message:

Fixed offset calculation in GSRB4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/smoother/gsrb_poisson_4.cpp

    r0bd47e rbd61b5c  
    7777{
    7878  const vmg_float prefactor_inv = Helper::pow_2(sol.Extent().MeshWidth().Max()) / 4.0;
    79   const int off = rhs.Global().LocalBegin().Sum() - rhs.Local().HaloSize1().Sum();
     79  const int off = rhs.Global().LocalBegin().Sum() - rhs.Global().GlobalBegin().Sum() +  rhs.Local().HaloSize1().Sum();
    8080  const LocalIndices& local = rhs.Local();
    8181  Comm& comm = *MG::GetComm();
Note: See TracChangeset for help on using the changeset viewer.