[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
hyper_adaptive_sampling_new_error.cpp
1 #include "hyper_adaptive_sampling_new_error.h"
2 #include "reduced_order/pod_basis_offline.h"
3 #include "parameters/all_parameters.h"
4 #include "flow_solver/flow_solver.h"
5 #include "flow_solver/flow_solver_factory.h"
6 #include "ode_solver/ode_solver_factory.h"
7 #include "reduced_order/assemble_ECSW_residual.h"
8 #include "linear_solver/NNLS_solver.h"
9 #include "linear_solver/helper_functions.h"
10 #include "reduced_order/pod_adaptive_sampling.h"
11 #include "reduced_order/hyper_reduced_sampling_error_updated.h"
12 #include <iostream>
13 
14 namespace PHiLiP {
15 namespace Tests {
16 
17 template <int dim, int nstate>
19  const dealii::ParameterHandler &parameter_handler_input)
20  : TestsBase::TestsBase(parameters_input)
21  , parameter_handler(parameter_handler_input)
22 {}
23 
24 template <int dim, int nstate>
26 {
27  pcout << "Starting hyperreduced adaptive sampling procedure..." << std::endl;
28 
30  int exit = sampling_imp.run_sampling();
31 
32  if (exit == 0){
33  pcout << "Passed!";
34  return 0;
35  }else{
36  pcout << "Failed!";
37  return -1;
38  }
39 }
40 
41 #if PHILIP_DIM==1
43 #endif
44 
45 #if PHILIP_DIM!=1
47 #endif
48 } // Tests namespace
49 } // PHiLiP namespace
const dealii::ParameterHandler & parameter_handler
Dummy parameter handler because flowsolver requires it.
Files for the baseline physics.
Definition: ADTypes.hpp:10
Main parameter class that contains the various other sub-parameter classes.
const Parameters::AllParameters *const all_parameters
Pointer to all parameters.
Definition: tests.h:20
Hyperreduced Adaptive Sampling with the updated error indicator.
Runs hyperreduced adaptive sampling procedure.
int run_test() const override
Run hyperreduced adaptive sampling procedure.
dealii::ConditionalOStream pcout
ConditionalOStream.
Definition: tests.h:45
Base class of all the tests.
Definition: tests.h:17
HyperAdaptiveSamplingNewError(const Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input)
Constructor.