RBGen  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RBGen_MSPreprocessor.h
1 #ifndef RBGEN_MS_PREPROCESSOR_H
2 #define RBGEN_MS_PREPROCESSOR_H
3 
4 #include "RBGen_Preprocessor.hpp"
5 #include "RBGen_FileIOHandler.hpp"
6 #include "RBGen_ConfigDefs.h"
7 
8 // Forward declaration of Epetra_MultiVector class
10 
11 namespace RBGen {
12 
14  class MSPreprocessor : public Preprocessor< Epetra_MultiVector > {
15 
16  public:
18 
19 
22 
24  virtual ~MSPreprocessor() {};
26 
28 
29 
32  const Teuchos::RCP< FileIOHandler <Epetra_MultiVector> >& fileio = Teuchos::null );
33 
34  void Reset() { isInitialized_ = false; }
36 
38 
39 
43 
45 
46 
48  Teuchos::RCP< Epetra_MultiVector > getMSVector() const { return msVector_; }
49 
51 
52 
54  bool isInitialized() const { return isInitialized_; }
55 
57  private:
58 
60  bool isInitialized_;
61 
63  std::string preprocType_;
64 
66  std::string input_file_;
67 
69  double scale_;
70 
72  std::vector< double > scalings_;
73 
75  std::vector< std::pair<int,int> > scaling_idx_;
76 
78  std::vector< std::string > preproc_types_;
79 
82 
85  };
86 
87 } // end of RBGen namespace
88 
89 #endif // RBGEN_MS_PREPROCESSOR_H
MSPreprocessor()
Default constructor.
bool isInitialized() const
Return initialized status of the preprocessor.
void Initialize(const Teuchos::RCP< Teuchos::ParameterList > &params, const Teuchos::RCP< FileIOHandler< Epetra_MultiVector > > &fileio=Teuchos::null)
Initialize preprocessor.
Specialization for Preprocessor using Epetra_MultiVector.
virtual ~MSPreprocessor()
Destructor.
Teuchos::RCP< Epetra_MultiVector > getMSVector() const
Return the multivector used to modify the snapshot set.
void Preprocess(Teuchos::RCP< Epetra_MultiVector > &ss)
Preprocess the snapshot set passed in.
void Reset()
Reset preprocessor.
Abstract base class for encapsulating dataset preprocessing.