[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
hyper_reduction_comparison.h
1 #ifndef __HYPER_REDUCTION_COMPARISON_H__
2 #define __HYPER_REDUCTION_COMPARISON_H__
3 
4 #include "tests.h"
5 #include "parameters/all_parameters.h"
6 #include "dg/dg_base.hpp"
7 #include <eigen/Eigen/Dense>
8 #include <Epetra_Vector.h>
9 
10 namespace PHiLiP {
11 namespace Tests {
12 
13 using Eigen::MatrixXd;
14 
17 template <int dim, int nstate>
19 {
20 public:
22  HyperReductionComparison(const Parameters::AllParameters *const parameters_input,
23  const dealii::ParameterHandler &parameter_handler_input);
24 
26  Parameters::AllParameters reinit_params(const int max_iter) const;
27 
29  bool getWeightsFromFile(std::shared_ptr<DGBase<dim,double>> &dg) const;
30 
32  int run_test () const override;
33 
35  const dealii::ParameterHandler &parameter_handler;
36 
38  mutable MatrixXd snapshot_parameters;
39 
41  mutable std::shared_ptr<Epetra_Vector> ptr_weights;
42 };
43 } // End of Tests namespace
44 } // End of PHiLiP namespace
45 
46 #endif
HyperReductionComparison(const Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input)
Constructor.
Files for the baseline physics.
Definition: ADTypes.hpp:10
bool getWeightsFromFile(std::shared_ptr< DGBase< dim, double >> &dg) const
Read ECSW weights from the text file.
Main parameter class that contains the various other sub-parameter classes.
Parameters::AllParameters reinit_params(const int max_iter) const
Reinitialize parameters.
std::shared_ptr< Epetra_Vector > ptr_weights
Ptr vector of ECSW Weights.
const dealii::ParameterHandler & parameter_handler
Dummy parameter handler because flowsolver requires it.
MatrixXd snapshot_parameters
Matrix of snapshot parameters.
DGBase is independent of the number of state variables.
Definition: dg_base.hpp:82
int run_test() const override
Build three models and evaluate error measures.
Base class of all the tests.
Definition: tests.h:17