13template <
typename BHEUpdateCallback>
18 std::pair<GlobalIndexType, GlobalIndexType>&& in_out_global_indices,
19 BHEUpdateCallback bhe_update_callback)
29 bc_values.
ids.resize(1);
30 bc_values.
values.resize(1);
43template <
typename BHEUpdateCallback>
44std::unique_ptr<BHEInflowDirichletBoundaryCondition<BHEUpdateCallback>>
46 std::pair<GlobalIndexType, GlobalIndexType>&& in_out_global_indices,
47 BHEUpdateCallback bhe_update_callback)
49 DBUG(
"Constructing BHEInflowDirichletBoundaryCondition.");
56 if (in_out_global_indices.first < 0 && in_out_global_indices.second < 0)
62 if (in_out_global_indices.first < 0 || in_out_global_indices.second < 0)
65 "The partition cuts the BHE into two independent parts. This "
66 "behaviour is not implemented.");
70 return std::make_unique<
72 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