Ignore:
Timestamp:
Apr 5, 2013, 12:39:30 PM (13 years ago)
Author:
Julian Iseringhausen <julian.iseringhausen@…>
Children:
4a709e
Parents:
f57182
Message:

Merge stashed open boundary stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/level/level_operator_fas.cpp

    rf57182 r8180d8  
    3636#include "base/index.hpp"
    3737#include "comm/comm.hpp"
     38#include "grid/grid_index_translations.hpp"
    3839#include "grid/multigrid.hpp"
    3940#include "grid/tempgrid.hpp"
     
    7273  }
    7374
    74   Helper::AssertVectorsEqual(rhs_c_undist.GetSpatialPos(begin_c), rhs_f.GetSpatialPos(begin_f));
    75 
    76   const GridIteratorSet bounds_f(begin_f, end_f);
    77   const GridIteratorSet bounds_c(begin_c, end_c);
    78 
    79   assert(bounds_c.Begin().GetEnd()-bounds_c.Begin().GetBegin() == ((bounds_f.Begin().GetEnd()-bounds_f.Begin().GetBegin())-1)/2+1);
     75  GridIteratorSet bounds_c, bounds_f;
     76  GridIndexTranslations::GetGridAlignment(rhs_c_undist, bounds_c, rhs_f, bounds_f);
    8077
    8178  const Stencil& op_res = OperatorRestrict();
     
    157154  }
    158155
    159   Helper::AssertVectorsEqual(sol_c.GetSpatialPos(begin_c), sol_f_undist.GetSpatialPos(begin_f));
    160 
    161   const GridIteratorSet bounds_f(begin_f, end_f);
    162   const GridIteratorSet bounds_c(begin_c, end_c);
    163 
    164   assert(bounds_c.Begin().GetEnd()-bounds_c.Begin().GetBegin() == ((bounds_f.Begin().GetEnd()-bounds_f.Begin().GetBegin())-1)/2+1);
    165 
     156  GridIteratorSet bounds_c, bounds_f;
     157  GridIndexTranslations::GetGridAlignment(sol_c, bounds_c, sol_f_undist, bounds_f);
    166158
    167159  comm.CommSubgrid(sol_f_dist, sol_f_undist, 0);
Note: See TracChangeset for help on using the changeset viewer.