/[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 4440 by caltinay, Fri May 31 07:09:03 2013 UTC revision 4441 by caltinay, Fri Jun 7 02:23:49 2013 UTC
# Line 21  Line 21 
21  *****************************************************************************/  *****************************************************************************/
22    
23  #include "NodeFile.h"  #include "NodeFile.h"
 #include "Util.h"  
24  #include <escript/Data.h>  #include <escript/Data.h>
25    
26  #include <limits>  #include <limits>
# Line 188  void NodeFile::freeTable() Line 187  void NodeFile::freeTable()
187      numNodes=0;      numNodes=0;
188  }  }
189    
 void NodeFile::updateTagList()  
 {  
     Finley_Util_setValuesInUse(Tag, numNodes, tagsInUse, MPIInfo);  
 }  
   
190  /// copies the array newX into this->coordinates  /// copies the array newX into this->coordinates
191  void NodeFile::setCoordinates(const escript::Data& cNewX)  void NodeFile::setCoordinates(const escript::Data& cNewX)
192  {  {
# Line 245  void NodeFile::setTags(const int newTag, Line 239  void NodeFile::setTags(const int newTag,
239    
240  std::pair<int,int> NodeFile::getDOFRange() const  std::pair<int,int> NodeFile::getDOFRange() const
241  {  {
242      std::pair<int,int> result(      std::pair<int,int> result(util::getMinMaxInt(
243              Finley_Util_getMinMaxInt(1, numNodes, globalDegreesOfFreedom));                                          1, numNodes, globalDegreesOfFreedom));
244      if (result.second < result.first) {      if (result.second < result.first) {
245          result.first = -1;          result.first = -1;
246          result.second = 0;          result.second = 0;
# Line 256  std::pair<int,int> NodeFile::getDOFRange Line 250  std::pair<int,int> NodeFile::getDOFRange
250    
251  std::pair<int,int> NodeFile::getGlobalIdRange() const  std::pair<int,int> NodeFile::getGlobalIdRange() const
252  {  {
253      std::pair<int,int> result(Finley_Util_getMinMaxInt(1, numNodes, Id));      std::pair<int,int> result(util::getMinMaxInt(1, numNodes, Id));
254    
255  #ifdef ESYS_MPI  #ifdef ESYS_MPI
256      int global_id_range[2];      int global_id_range[2];
# Line 274  std::pair<int,int> NodeFile::getGlobalId Line 268  std::pair<int,int> NodeFile::getGlobalId
268    
269  std::pair<int,int> NodeFile::getGlobalDOFRange() const  std::pair<int,int> NodeFile::getGlobalDOFRange() const
270  {  {
271      std::pair<int,int> result(      std::pair<int,int> result(util::getMinMaxInt(
272              Finley_Util_getMinMaxInt(1, numNodes, globalDegreesOfFreedom));                                          1, numNodes, globalDegreesOfFreedom));
273    
274  #ifdef ESYS_MPI  #ifdef ESYS_MPI
275      int global_id_range[2];      int global_id_range[2];
# Line 293  std::pair<int,int> NodeFile::getGlobalDO Line 287  std::pair<int,int> NodeFile::getGlobalDO
287    
288  std::pair<int,int> NodeFile::getGlobalNodeIDIndexRange() const  std::pair<int,int> NodeFile::getGlobalNodeIDIndexRange() const
289  {  {
290      std::pair<int,int> result(      std::pair<int,int> result(util::getMinMaxInt(1, numNodes, globalNodesIndex));
             Finley_Util_getMinMaxInt(1, numNodes, globalNodesIndex));  
291    
292  #ifdef ESYS_MPI  #ifdef ESYS_MPI
293      int global_id_range[2];      int global_id_range[2];

Legend:
Removed from v.4440  
changed lines
  Added in v.4441

  ViewVC Help
Powered by ViewVC 1.1.26