Memosa-FVM  0.2
MMReader.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef _MMREADER_H_
6 #define _MMREADER_H_
7 
8 #include "Reader.h"
9 #include "MultiField.h"
10 #include "MultiFieldMatrix.h"
11 #include "CRMatrix.h"
12 #include "Field.h"
13 
14 using namespace std;
15 
16 class MMReader : public Reader
17 {
18 public:
19 
21 
22  MMReader(const string& matrixFileName, const string& rhsFileName);
23  virtual ~MMReader();
24 
25  DEFINE_TYPENAME("MMReader");
26 
27  shared_ptr<LinearSystem> getLS();
28 
29 private:
30  const string _rhsFileName;
32  shared_ptr<StorageSite> _site;
33  shared_ptr<CRConnectivity> _cm;
34 
35  void readHeader(int& nRows, int& nCols,
36  int& nNonZeroes, bool& isSymmetric);
37 
38 };
39 
40 #endif
Definition: Reader.h:15
Definition: Field.h:14
shared_ptr< CRConnectivity > _cm
Definition: MMReader.h:33
#define DEFINE_TYPENAME(T)
Definition: RLogInterface.h:46
Field _field
Definition: MMReader.h:31
CRMatrix< double, double, double > MatrixType
Definition: MMReader.h:20
const string _rhsFileName
Definition: MMReader.h:30
shared_ptr< StorageSite > _site
Definition: MMReader.h:32