- Timestamp:
- Apr 13, 2013, 4:28:08 PM (13 years ago)
- Children:
- 13b272
- Parents:
- 1e45786
- File:
-
- 1 edited
-
src/grid/grid_index_translations.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/grid/grid_index_translations.cpp
r1e45786 r14d38c 156 156 157 157 void GridIndexTranslations::GetInnerBoundary(const Grid& grid_c, Index& b1_c, Index& b2_c, 158 const Grid& grid_f, Index& b1_f, Index& b2_f)158 const Grid& grid_f, Index& b1_f, Index& b2_f) 159 159 { 160 160 if (grid_f.Global().BoundaryType() == LocallyRefined) { 161 161 162 const Boundary& bc = MG::GetComm()->BoundaryConditions(); 163 162 164 const int global_mult = Helper::intpow(2, MG::GetSol()->MaxLevel() - grid_c.Level()); 165 166 for (int i=0; i<3; ++i) { 167 if (bc[i] == Open) { 168 int begin_f_global = grid_f.Global().LocalBegin()[i] + (grid_f.Global().LocalBegin()[i] % 2 == 0 ? 0 : 1); 169 int end_f_global = grid_f.Global().LocalEnd()[i] + (grid_f.Global().LocalEnd()[i] % 2 == 0 ? 1 : 0); 170 } else { 171 172 } 173 } 163 174 164 175 Index begin_finest = GlobalToGlobalFinest(grid_c, grid_c.Global().LocalBegin())
Note:
See TracChangeset
for help on using the changeset viewer.
