1 #include "base_parameterization.hpp" 8 : high_order_grid(_high_order_grid)
9 , mpi_communicator(MPI_COMM_WORLD)
10 , pcout(
std::cout, dealii::Utilities::MPI::this_mpi_process(mpi_communicator)==0)
12 MPI_Comm_rank(MPI_COMM_WORLD, &
mpi_rank);
13 MPI_Comm_size(MPI_COMM_WORLD, &
n_mpi);
28 diff -= updated_design_var;
30 bool is_design_variable_updated =
true;
31 if(diff.l2_norm() == 0.0) {is_design_variable_updated =
false;}
33 return is_design_variable_updated;
int n_mpi
Total no. of processors.
int mpi_rank
Processor# of current processor.
BaseParameterization(std::shared_ptr< HighOrderGrid< dim, double >> _high_order_grid)
Constructor.
bool has_design_variable_been_updated(const VectorType ¤t_design_var, const VectorType &updated_design_var) const
Checks if the design variable has changed.
Files for the baseline physics.
Abstract class for design parameterization. Objective function and the constraints take this class's ...
dealii::LinearAlgebra::distributed::Vector< double > VectorType
Alias for dealii's parallel distributed vector.
virtual void output_design_variables(const unsigned int) const
Outputs design variables. Doesn't output anything if not overridden.