[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
test_location_base.h
1 #ifndef __TEST_LOCATION_BASE__
2 #define __TEST_LOCATION_BASE__
3 
4 #include "parameters/all_parameters.h"
5 #include "pod_basis_base.h"
6 #include "reduced_order_solution.h"
7 #include <eigen/Eigen/Dense>
8 
9 namespace PHiLiP {
10 namespace ProperOrthogonalDecomposition {
11 using Eigen::RowVectorXd;
12 
14 template <int dim, int nstate>
16 {
17 public:
19  TestLocationBase(const RowVectorXd& parameter, std::unique_ptr<ROMSolution < dim, nstate>> rom_solution);
20 
22  virtual ~TestLocationBase () {};
23 
26 
28  virtual void compute_initial_rom_to_final_rom_error(std::shared_ptr<ProperOrthogonalDecomposition::PODBase<dim>> pod_updated) = 0;
29 
31  void compute_total_error();
32 
34  RowVectorXd parameter;
35 
37  std::unique_ptr<ROMSolution<dim, nstate>> rom_solution;
38 
41 
44 
46  double total_error;
47 
48  const MPI_Comm mpi_communicator;
49  const int mpi_rank;
50 
52 
54  dealii::ConditionalOStream pcout;
55 
56 };
57 
58 }
59 }
60 
61 
62 #endif
double fom_to_initial_rom_error
Error between FOM and initial ROM.
Base class for a ROM/HROM point, differences would be in the second DWR error indicator.
Files for the baseline physics.
Definition: ADTypes.hpp:10
TestLocationBase(const RowVectorXd &parameter, std::unique_ptr< ROMSolution< dim, nstate >> rom_solution)
Constructor.
void compute_FOM_to_initial_ROM_error()
Compute adjoint error estimate between FOM and initial ROM.
dealii::ConditionalOStream pcout
ConditionalOStream.
double initial_rom_to_final_rom_error
Error from initial ROM to final ROM.
std::unique_ptr< ROMSolution< dim, nstate > > rom_solution
ROM solution.
Class to hold information about the reduced-order solution.
void compute_total_error()
Compute total error between final ROM and FOM.
virtual void compute_initial_rom_to_final_rom_error(std::shared_ptr< ProperOrthogonalDecomposition::PODBase< dim >> pod_updated)=0
Compute error between initial ROM and final ROM.