Changeset 8180d8 for src/level/level_operator_fas.cpp
- Timestamp:
- Apr 5, 2013, 12:39:30 PM (13 years ago)
- Children:
- 4a709e
- Parents:
- f57182
- File:
-
- 1 edited
-
src/level/level_operator_fas.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/level/level_operator_fas.cpp
rf57182 r8180d8 36 36 #include "base/index.hpp" 37 37 #include "comm/comm.hpp" 38 #include "grid/grid_index_translations.hpp" 38 39 #include "grid/multigrid.hpp" 39 40 #include "grid/tempgrid.hpp" … … 72 73 } 73 74 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); 80 77 81 78 const Stencil& op_res = OperatorRestrict(); … … 157 154 } 158 155 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); 166 158 167 159 comm.CommSubgrid(sol_f_dist, sol_f_undist, 0);
Note:
See TracChangeset
for help on using the changeset viewer.
