18template <
typename BHEUpdateCallback>
23 std::pair<GlobalIndexType, GlobalIndexType>&& in_out_global_indices,
24 BHEUpdateCallback bhe_update_callback)
34 bc_values.
ids.resize(1);
35 bc_values.
values.resize(1);
48template <
typename BHEUpdateCallback>
49std::unique_ptr<BHEInflowDirichletBoundaryCondition<BHEUpdateCallback>>
51 std::pair<GlobalIndexType, GlobalIndexType>&& in_out_global_indices,
52 BHEUpdateCallback bhe_update_callback)
54 DBUG(
"Constructing BHEInflowDirichletBoundaryCondition.");
61 if (in_out_global_indices.first < 0 && in_out_global_indices.second < 0)
67 if (in_out_global_indices.first < 0 || in_out_global_indices.second < 0)
70 "The partition cuts the BHE into two independent parts. This "
71 "behaviour is not implemented.");
75 return std::make_unique<
77 std::move(in_out_global_indices), bhe_update_callback);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Global vector based on Eigen vector.
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