/[escript]/trunk/escript/src/DataTypes.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataTypes.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1714 by jfenwick, Thu Aug 21 00:01:55 2008 UTC revision 1715 by jfenwick, Thu Aug 21 04:52:14 2008 UTC
# Line 173  namespace DataTypes Line 173  namespace DataTypes
173        return result;        return result;
174     }     }
175    
176       DataTypes::RegionLoopRangeType
177       getSliceRegionLoopRange(const DataTypes::RegionType& region)
178       {
179          DataTypes::RegionLoopRangeType region_loop_range(region.size());
180          unsigned int i;
181          for (i=0;i<region.size();i++) {
182             if (region[i].first==region[i].second) {
183                region_loop_range[i].first=region[i].first;
184                region_loop_range[i].second=region[i].second+1;
185             } else {
186                region_loop_range[i].first=region[i].first;
187                region_loop_range[i].second=region[i].second;
188             }
189          }
190          return region_loop_range;
191       }
192    
193  }   // end namespace DataTypes  }   // end namespace DataTypes
194  }   // end namespace escript  }   // end namespace escript

Legend:
Removed from v.1714  
changed lines
  Added in v.1715

  ViewVC Help
Powered by ViewVC 1.1.26