Ignore:
Timestamp:
Apr 13, 2013, 4:28:08 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
13b272
Parents:
1e45786
Message:

Renamed folder samples to discretization and worked on inner boundaries for open boundary conditions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/grid/grid_index_translations.cpp

    r1e45786 r14d38c  
    156156
    157157void 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)
    159159{
    160160  if (grid_f.Global().BoundaryType() == LocallyRefined) {
    161161
     162    const Boundary& bc = MG::GetComm()->BoundaryConditions();
     163
    162164    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    }
    163174
    164175    Index begin_finest = GlobalToGlobalFinest(grid_c, grid_c.Global().LocalBegin())
Note: See TracChangeset for help on using the changeset viewer.