Changeset 3bd250
- Timestamp:
- Apr 25, 2012, 7:21:42 PM (14 years ago)
- Children:
- b2154a3
- Parents:
- d7de94
- File:
-
- 1 edited
-
src/level/level_operator_cs.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/level/level_operator_cs.cpp
rd7de94 r3bd250 39 39 const Stencil& op = OperatorRestrict(); 40 40 41 const Index begin_f_global = rhs_f.Global().LocalBegin() + rhs_f.Global().LocalBegin() % 2; 42 const Index end_f_global = rhs_f.Global().LocalEnd() - (rhs_f.Global().LocalEnd() - 1) % 2; 43 44 assert(begin_f_global % 2 == 0); 45 assert(end_f_global % 2 == 1); 41 const Index begin_f_global = rhs_f.Global().LocalSize().Product() > 0 42 ? rhs_f.Global().LocalBegin() + rhs_f.Global().LocalBegin() % 2 43 : rhs_f.Global().LocalBegin(); 44 const Index end_f_global = rhs_f.Global().LocalSize().Product() > 0 45 ? rhs_f.Global().LocalEnd() - (rhs_f.Global().LocalEnd() - 1) % 2 46 : rhs_f.Global().LocalBegin(); 46 47 47 48 Index begin_f = begin_f_global - rhs_f.Global().LocalBegin() + rhs_f.Local().Begin();
Note:
See TracChangeset
for help on using the changeset viewer.
