11template <
typename BHEUpdateCallback>
16 std::pair<GlobalIndexType, GlobalIndexType>&& in_out_global_indices,
17 BHEUpdateCallback bhe_update_callback)
27 bc_values.
ids.resize(1);
28 bc_values.
values.resize(1);
41template <
typename BHEUpdateCallback>
42std::unique_ptr<BHEInflowDirichletBoundaryCondition<BHEUpdateCallback>>
44 std::pair<GlobalIndexType, GlobalIndexType>&& in_out_global_indices,
45 BHEUpdateCallback bhe_update_callback)
47 DBUG(
"Constructing BHEInflowDirichletBoundaryCondition.");
54 if (in_out_global_indices.first < 0 && in_out_global_indices.second < 0)
60 if (in_out_global_indices.first < 0 || in_out_global_indices.second < 0)
63 "The partition cuts the BHE into two independent parts. This "
64 "behaviour is not implemented.");
68 return std::make_unique<
70 std::move(in_out_global_indices), bhe_update_callback);
MathLib::EigenVector GlobalVector
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
BHEUpdateCallback _bhe_update_callback
BHEInflowDirichletBoundaryCondition(std::pair< GlobalIndexType, GlobalIndexType > &&in_out_global_indices, BHEUpdateCallback bhe_update_callback)
std::pair< GlobalIndexType, GlobalIndexType > const _in_out_global_indices
void getEssentialBCValues(const double t, GlobalVector const &x, NumLib::IndexValueVector< GlobalIndexType > &bc_values) const override
Writes the values of essential BCs to bc_values.
std::unique_ptr< BHEInflowDirichletBoundaryCondition< BHEUpdateCallback > > createBHEInflowDirichletBoundaryCondition(std::pair< GlobalIndexType, GlobalIndexType > &&in_out_global_indices, BHEUpdateCallback bhe_update_callback)
std::vector< IndexType > ids
std::vector< double > values