/[escript]/trunk/paso/src/SystemMatrix.h
ViewVC logotype

Diff of /trunk/paso/src/SystemMatrix.h

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

revision 4868 by caltinay, Wed Apr 9 02:14:58 2014 UTC revision 4869 by caltinay, Mon Apr 14 10:39:22 2014 UTC
# Line 29  Line 29 
29  #ifndef __PASO_SYSTEMMATRIX_H__  #ifndef __PASO_SYSTEMMATRIX_H__
30  #define __PASO_SYSTEMMATRIX_H__  #define __PASO_SYSTEMMATRIX_H__
31    
 #include "Common.h"  
 #include "Coupler.h"  
32  #include "SparseMatrix.h"  #include "SparseMatrix.h"
33  #include "SystemMatrixPattern.h"  #include "SystemMatrixPattern.h"
34  #include "Options.h"  #include "Options.h"
 #include "esysUtils/Esys_MPI.h"  
35    
36  namespace paso {  namespace paso {
37    
# Line 210  struct SystemMatrix : boost::enable_shar Line 207  struct SystemMatrix : boost::enable_shar
207      inline double getSparsity() const      inline double getSparsity() const
208      {      {
209          return getGlobalSize() /          return getGlobalSize() /
210                   (DBLE(getGlobalTotalNumRows())*getGlobalTotalNumCols());                   ((double)getGlobalTotalNumRows()*getGlobalTotalNumCols());
211      }      }
212    
213      inline dim_t getNumOutput() const      inline dim_t getNumOutput() const
# Line 344  void SystemMatrix_MatrixVector(double al Line 341  void SystemMatrix_MatrixVector(double al
341    
342  void SystemMatrix_MatrixVector_CSR_OFFSET0(double alpha, SystemMatrix_ptr A, const double* in, double beta, double* out);  void SystemMatrix_MatrixVector_CSR_OFFSET0(double alpha, SystemMatrix_ptr A, const double* in, double beta, double* out);
343    
344  void Paso_RHS_loadMM_toCSR(const char* filename, double* b, dim_t size);  void RHS_loadMM_toCSR(const char* filename, double* b, dim_t size);
345    
346    
347  } // namespace paso  } // namespace paso

Legend:
Removed from v.4868  
changed lines
  Added in v.4869

  ViewVC Help
Powered by ViewVC 1.1.26