/[escript]/trunk/finley/src/NodeFile.cpp
ViewVC logotype

Diff of /trunk/finley/src/NodeFile.cpp

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

revision 4505 by jfenwick, Tue Jul 23 02:09:45 2013 UTC revision 4521 by jfenwick, Mon Aug 26 11:51:30 2013 UTC
# Line 577  int NodeFile::createDenseDOFLabeling() Line 577  int NodeFile::createDenseDOFLabeling()
577      for (int n=0; n<myDOFs; ++n)      for (int n=0; n<myDOFs; ++n)
578          DOF_buffer[n]+=loc_offsets[MPIInfo->rank];          DOF_buffer[n]+=loc_offsets[MPIInfo->rank];
579    
580      std::vector<bool_t> set_new_DOF(numNodes, TRUE);      std::vector<bool> set_new_DOF(numNodes, true);
581    
582      // now entries are collected from the buffer again by sending them around      // now entries are collected from the buffer again by sending them around
583      // in a circle      // in a circle
# Line 594  int NodeFile::createDenseDOFLabeling() Line 594  int NodeFile::createDenseDOFLabeling()
594              const int k=globalDegreesOfFreedom[n];              const int k=globalDegreesOfFreedom[n];
595              if (set_new_DOF[n] && dof0<=k && k<dof1) {              if (set_new_DOF[n] && dof0<=k && k<dof1) {
596                  globalDegreesOfFreedom[n]=DOF_buffer[k-dof0];                  globalDegreesOfFreedom[n]=DOF_buffer[k-dof0];
597                  set_new_DOF[n]=FALSE;                  set_new_DOF[n]=false;
598              }              }
599          }          }
600          if (p<MPIInfo->size-1) { // the last send can be skipped          if (p<MPIInfo->size-1) { // the last send can be skipped

Legend:
Removed from v.4505  
changed lines
  Added in v.4521

  ViewVC Help
Powered by ViewVC 1.1.26