22 std::unique_ptr<NumLib::LocalToGlobalIndexMap> dof_table,
23 std::size_t
const source_term_mesh_id,
const int variable_id,
24 const int component_id,
25 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters)
27 DBUG(
"Constructing NodalSourceTerm from config.");
33 DBUG(
"Using parameter {:s} as nodal source term.", param_name);
35 auto& param = ParameterLib::findParameter<double>(param_name, parameters, 1,
38 return std::make_unique<NodalSourceTerm>(std::move(dof_table),
39 source_term_mesh_id, st_mesh,
40 variable_id, component_id, param);
std::unique_ptr< SourceTerm > createNodalSourceTerm(BaseLib::ConfigTree const &config, MeshLib::Mesh const &st_mesh, std::unique_ptr< NumLib::LocalToGlobalIndexMap > dof_table, std::size_t const source_term_mesh_id, const int variable_id, const int component_id, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters)