/[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 6619 by jfenwick, Tue Mar 7 06:50:34 2017 UTC revision 6620 by gross, Mon Aug 14 08:31:59 2017 UTC
# Line 314  void NodeFile::scatter(const index_t* in Line 314  void NodeFile::scatter(const index_t* in
314  }  }
315    
316  /// gathers this NodeFile from the NodeFile 'in' using the entries in  /// gathers this NodeFile from the NodeFile 'in' using the entries in
317  /// index[0:out->numNodes-1] which are between min_index and max_index  /// index[0:out->numNodes-1] which are between 0 (and in->numNodes)
318  /// (exclusive)  /// (exclusive)
319    // WARNING: This does not wotj for MPI!!!
320  void NodeFile::gather(const index_t* index, const NodeFile* in)  void NodeFile::gather(const index_t* index, const NodeFile* in)
321  {  {
322      const std::pair<index_t,index_t> id_range(in->getGlobalIdRange());      gatherEntries(numNodes, index, 0, in->getNumNodes(), Id, in->Id,
     gatherEntries(numNodes, index, id_range.first, id_range.second, Id, in->Id,  
323              Tag, in->Tag, globalDegreesOfFreedom, in->globalDegreesOfFreedom,              Tag, in->Tag, globalDegreesOfFreedom, in->globalDegreesOfFreedom,
324              numDim, Coordinates, in->Coordinates);              numDim, Coordinates, in->Coordinates);
325        
326  }  }
327    
328  void NodeFile::gather_global(const index_t* index, const NodeFile* in)  void NodeFile::gather_global(const index_t* index, const NodeFile* in)

Legend:
Removed from v.6619  
changed lines
  Added in v.6620

  ViewVC Help
Powered by ViewVC 1.1.26