/[escript]/trunk/weipa/src/FinleyElements.cpp
ViewVC logotype

Diff of /trunk/weipa/src/FinleyElements.cpp

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

revision 5616 by jfenwick, Fri Apr 24 01:36:26 2015 UTC revision 5617 by jfenwick, Tue May 19 01:03:17 2015 UTC
# Line 484  void FinleyElements::reorderArray(IntVec Line 484  void FinleyElements::reorderArray(IntVec
484      } else {      } else {
485          for (idxIt=idx.begin(); idxIt!=idx.end(); idxIt++) {          for (idxIt=idx.begin(); idxIt!=idx.end(); idxIt++) {
486              int i = *idxIt;              int i = *idxIt;
487              copy(&v[i*elementsPerIndex], &v[(i+1)*elementsPerIndex], arrIt);          int* start = &v[i*elementsPerIndex];
488            copy(start, start+elementsPerIndex, arrIt);
489              arrIt += elementsPerIndex;              arrIt += elementsPerIndex;
490          }          }
491      }      }

Legend:
Removed from v.5616  
changed lines
  Added in v.5617

  ViewVC Help
Powered by ViewVC 1.1.26