/[escript]/trunk/dataexporter/src/NodeData.cpp
ViewVC logotype

Diff of /trunk/dataexporter/src/NodeData.cpp

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

revision 2853 by caltinay, Mon Jan 18 01:46:05 2010 UTC revision 2880 by caltinay, Thu Jan 28 01:21:30 2010 UTC
# Line 126  bool NodeData::initFromFinley(const Finl Line 126  bool NodeData::initFromFinley(const Finl
126      numNodes = finleyFile->numNodes;      numNodes = finleyFile->numNodes;
127    
128      int mpisize = finleyFile->MPIInfo->size;      int mpisize = finleyFile->MPIInfo->size;
129      iPtr = finleyFile->nodesDistribution->first_component;      int* iPtr = finleyFile->nodesDistribution->first_component;
130      nodeDist.clear();      nodeDist.clear();
131      nodeDist.insert(nodeDist.end(), mpisize+1, 0);      nodeDist.insert(nodeDist.end(), mpisize+1, 0);
132      copy(iPtr, iPtr+mpisize+1, nodeDist.begin());      copy(iPtr, iPtr+mpisize+1, nodeDist.begin());
# Line 152  bool NodeData::initFromFinley(const Finl Line 152  bool NodeData::initFromFinley(const Finl
152              }              }
153          }          }
154    
         int* iPtr;  
   
155          iPtr = finleyFile->Id;          iPtr = finleyFile->Id;
156          nodeID.insert(nodeID.end(), numNodes, 0);          nodeID.insert(nodeID.end(), numNodes, 0);
157          copy(iPtr, iPtr+numNodes, nodeID.begin());          copy(iPtr, iPtr+numNodes, nodeID.begin());
# Line 285  const IntVec& NodeData::getVarDataByName Line 283  const IntVec& NodeData::getVarDataByName
283  StringVec NodeData::getVarNames() const  StringVec NodeData::getVarNames() const
284  {  {
285      StringVec res;      StringVec res;
286      if (numNodes > 0) {      res.push_back("Nodes_Id");
287          res.push_back("Nodes_Id");      res.push_back("Nodes_Tag");
288          res.push_back("Nodes_Tag");      res.push_back("Nodes_gDOF");
289          res.push_back("Nodes_gDOF");      res.push_back("Nodes_gNI");
290          res.push_back("Nodes_gNI");      res.push_back("Nodes_grDfI");
291          res.push_back("Nodes_grDfI");      res.push_back("Nodes_grNI");
         res.push_back("Nodes_grNI");  
     }  
292      return res;      return res;
293  }  }
294    

Legend:
Removed from v.2853  
changed lines
  Added in v.2880

  ViewVC Help
Powered by ViewVC 1.1.26