1 #ifndef __TEST_LOCATION_BASE__ 2 #define __TEST_LOCATION_BASE__ 4 #include "parameters/all_parameters.h" 5 #include "pod_basis_base.h" 6 #include "reduced_order_solution.h" 7 #include <eigen/Eigen/Dense> 10 namespace ProperOrthogonalDecomposition {
11 using Eigen::RowVectorXd;
14 template <
int dim,
int nstate>
54 dealii::ConditionalOStream
pcout;
const int mpi_rank
MPI rank.
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.
TestLocationBase(const RowVectorXd ¶meter, std::unique_ptr< ROMSolution< dim, nstate >> rom_solution)
Constructor.
RowVectorXd parameter
Parameter.
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.
double total_error
Total error.
std::unique_ptr< ROMSolution< dim, nstate > > rom_solution
ROM solution.
virtual ~TestLocationBase()
Destructor.
Class to hold information about the reduced-order solution.
const MPI_Comm mpi_communicator
MPI communicator.
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.