/[escript]/branches/diaplayground/ripley/src/Brick.cpp
ViewVC logotype

Diff of /branches/diaplayground/ripley/src/Brick.cpp

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

revision 4803 by caltinay, Wed Mar 26 06:52:28 2014 UTC revision 4814 by caltinay, Fri Mar 28 04:31:02 2014 UTC
# Line 2579  void Brick::createPattern() Line 2579  void Brick::createPattern()
2579      createCouplePatterns(colIndices, rowIndices, numShared, &colPattern, &rowPattern);      createCouplePatterns(colIndices, rowIndices, numShared, &colPattern, &rowPattern);
2580    
2581      // allocate paso distribution      // allocate paso distribution
2582      Paso_Distribution* distribution = Paso_Distribution_alloc(m_mpiInfo,      paso::Distribution_ptr distribution(new paso::Distribution(m_mpiInfo,
2583              const_cast<index_t*>(&m_nodeDistribution[0]), 1, 0);              const_cast<index_t*>(&m_nodeDistribution[0]), 1, 0));
2584    
2585      // finally create the system matrix      // finally create the system matrix
2586      m_pattern = new paso::SystemMatrixPattern(MATRIX_FORMAT_DEFAULT,      m_pattern = new paso::SystemMatrixPattern(MATRIX_FORMAT_DEFAULT,
2587              distribution, distribution, mainPattern, colPattern, rowPattern,              distribution, distribution, mainPattern, colPattern, rowPattern,
2588              m_connector, m_connector);              m_connector, m_connector);
2589    
     Paso_Distribution_free(distribution);  
   
2590      // useful debug output      // useful debug output
2591      /*      /*
2592      cout << "--- rcv_shcomp ---" << endl;      cout << "--- rcv_shcomp ---" << endl;

Legend:
Removed from v.4803  
changed lines
  Added in v.4814

  ViewVC Help
Powered by ViewVC 1.1.26