/[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 4815 by caltinay, Fri Mar 28 04:31:02 2014 UTC revision 4816 by caltinay, Fri Mar 28 06:16:02 2014 UTC
# Line 936  void NodeFile::createDOFMappingAndCoupli Line 936  void NodeFile::createDOFMappingAndCoupli
936      for (int i=0; i<offsetInShared[numNeighbors]; ++i)      for (int i=0; i<offsetInShared[numNeighbors]; ++i)
937          shared[i]=myLastDOF-myFirstDOF+i;          shared[i]=myLastDOF-myFirstDOF+i;
938    
939      Paso_SharedComponents *rcv_shcomp=Paso_SharedComponents_alloc(      paso::SharedComponents_ptr rcv_shcomp(new paso::SharedComponents(
940              myLastDOF-myFirstDOF, numNeighbors, &neighbor[0], &shared[0],              myLastDOF-myFirstDOF, numNeighbors, &neighbor[0], &shared[0],
941              &offsetInShared[0], 1, 0, MPIInfo);              &offsetInShared[0], 1, 0, MPIInfo));
942    
943      /////////////////////////////////      /////////////////////////////////
944      //   now we build the sender   //      //   now we build the sender   //
# Line 989  void NodeFile::createDOFMappingAndCoupli Line 989  void NodeFile::createDOFMappingAndCoupli
989          shared[i]=locDOFMask[shared[i]-min_DOF];          shared[i]=locDOFMask[shared[i]-min_DOF];
990      }      }
991    
992      Paso_SharedComponents* snd_shcomp=Paso_SharedComponents_alloc(      paso::SharedComponents_ptr snd_shcomp(new paso::SharedComponents(
993              myLastDOF-myFirstDOF, numNeighbors, &neighbor[0], &shared[0],              myLastDOF-myFirstDOF, numNeighbors, &neighbor[0], &shared[0],
994              &offsetInShared[0], 1, 0, MPIInfo);              &offsetInShared[0], 1, 0, MPIInfo));
995    
996      if (noError()) {      if (noError()) {
997          if (use_reduced_elements) {          if (use_reduced_elements) {
# Line 1000  void NodeFile::createDOFMappingAndCoupli Line 1000  void NodeFile::createDOFMappingAndCoupli
1000              degreesOfFreedomConnector=paso::Connector_alloc(snd_shcomp, rcv_shcomp);              degreesOfFreedomConnector=paso::Connector_alloc(snd_shcomp, rcv_shcomp);
1001          }          }
1002      }      }
   
     Paso_SharedComponents_free(rcv_shcomp);  
     Paso_SharedComponents_free(snd_shcomp);  
1003  }  }
1004    
1005  void NodeFile::createNodeMappings(const std::vector<int>& indexReducedNodes,  void NodeFile::createNodeMappings(const std::vector<int>& indexReducedNodes,

Legend:
Removed from v.4815  
changed lines
  Added in v.4816

  ViewVC Help
Powered by ViewVC 1.1.26