1 #ifndef __HROM_TEST_LOCATION__ 2 #define __HROM_TEST_LOCATION__ 4 #include "parameters/all_parameters.h" 5 #include "pod_basis_base.h" 6 #include "reduced_order_solution.h" 7 #include <eigen/Eigen/Dense> 8 #include "test_location_base.h" 11 namespace ProperOrthogonalDecomposition {
12 using Eigen::RowVectorXd;
25 template <
int dim,
int nstate>
39 std::shared_ptr<Epetra_CrsMatrix>
generate_test_basis(Epetra_CrsMatrix &epetra_system_matrix,
const Epetra_CrsMatrix &pod_basis);
42 std::shared_ptr<DGBase<dim,double>>
dg;
Base class for a ROM/HROM point, differences would be in the second DWR error indicator.
std::shared_ptr< DGBase< dim, double > > dg
Smart pointer to DGBase.
Files for the baseline physics.
RowVectorXd parameter
Parameter.
std::shared_ptr< Epetra_CrsMatrix > generate_hyper_reduced_jacobian(const Epetra_CrsMatrix &system_matrix)
Generate hyper-reduced jacobian matrix.
Class to compute and store adjoint-based error estimates with hyperreduction.
Epetra_Vector ECSW_weights
ECSW hyper-reduction weights.
HROMTestLocation(const RowVectorXd ¶meter, std::unique_ptr< ROMSolution< dim, nstate >> rom_solution, std::shared_ptr< DGBase< dim, double > > dg_input, Epetra_Vector weights)
Constructor.
std::unique_ptr< ROMSolution< dim, nstate > > rom_solution
ROM solution.
void compute_initial_rom_to_final_rom_error(std::shared_ptr< ProperOrthogonalDecomposition::PODBase< dim >> pod_updated) override
Compute error between initial ROM and final ROM.
DGBase is independent of the number of state variables.
Class to hold information about the reduced-order solution.
std::shared_ptr< Epetra_CrsMatrix > generate_test_basis(Epetra_CrsMatrix &epetra_system_matrix, const Epetra_CrsMatrix &pod_basis)
Generate test basis.