Changeset da7c98


Ignore:
Timestamp:
Apr 20, 2013, 4:15:44 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
252f5c
Parents:
881e4b
Message:

Experimental fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/discretization/discretization_poisson_fv.cpp

    r881e4b rda7c98  
    106106  const Boundary& bc = comm.BoundaryConditions();
    107107  const Index off((GridIndexTranslations::LocalToGlobal(sol_f, sol_f.Local().Begin())[0] % 2 == 0 ? 0 : 1),
    108       (GridIndexTranslations::LocalToGlobal(sol_f, sol_f.Local().Begin())[1] % 2 == 0 ? 0 : 1),
    109       (GridIndexTranslations::LocalToGlobal(sol_f, sol_f.Local().Begin())[2] % 2 == 0 ? 0 : 1));
     108                  (GridIndexTranslations::LocalToGlobal(sol_f, sol_f.Local().Begin())[1] % 2 == 0 ? 0 : 1),
     109                  (GridIndexTranslations::LocalToGlobal(sol_f, sol_f.Local().Begin())[2] % 2 == 0 ? 0 : 1));
    110110
    111111  const Index begin_f = sol_f.Local().Begin() - off;
     
    114114  const Index begin_c = GridIndexTranslations::GlobalFinestToLocal(sol_c, GridIndexTranslations::LocalToGlobalFinest(sol_f, begin_f));
    115115
    116   const Index b1_finest = GridIndexTranslations::LocalToGlobalFinest(sol_f, sol_f.Local().Begin());
    117   const Index b2_finest = GridIndexTranslations::LocalToGlobalFinest(sol_f, sol_f.Local().End()-1);
    118 
    119116  const Index b1_f = sol_f.Local().BoundaryBegin1();
    120117  const Index b2_f = sol_f.Local().BoundaryBegin2();
     118
     119  const Index b1_finest = GridIndexTranslations::LocalToGlobalFinest(sol_f, sol_f.Local().Begin() + off);
     120  const Index b2_finest = GridIndexTranslations::LocalToGlobalFinest(sol_f, sol_f.Local().End()-1);
    121121
    122122  const Index b1_c = GridIndexTranslations::GlobalFinestToLocal(sol_c, b1_finest) - 1;
Note: See TracChangeset for help on using the changeset viewer.