Changeset 2868


Ignore:
Timestamp:
Mar 19, 2012, 12:25:53 PM (13 years ago)
Author:
ldelgass
Message:

Fix (re)sampling fields at maximum bounds -- Mesh1D wasn't considering the
max. value of the interval as a match in _locateInterval, causing boundary
values at the max. to be considered outside the mesh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core2/RpMesh1D.cc

    r2199 r2868  
    280280        double x1 = (pos+1 <= max) ? _nodelist[pos+1].x() : x0;
    281281
    282         if (x >= x0 && x < x1) {
     282        if (x >= x0 && x <= x1) {
    283283            return pos;
    284284        }
Note: See TracChangeset for help on using the changeset viewer.