Chi-Tech
lbsadj_solver_04_qoi.cc
Go to the documentation of this file.
1#include <utility>
2
3#include "lbsadj_solver.h"
4
6
7//###################################################################
8/**Subscribes cells to QOIs.*/
10 AddResponseFunction(const std::string& qoi_name,
11 std::shared_ptr<chi_mesh::LogicalVolume> logical_volume,
12 const std::string& lua_function_name)
13{
14 // Make the designation
15 ResponseFunctionDesignation qoi_designation(qoi_name,
16 std::move(logical_volume),
17 lua_function_name);
18 // Make empty subscriber list (will be populated during initialize)
19 std::vector<size_t> cell_rf_subscriptions;
20
21 response_functions_.emplace_back(qoi_designation, cell_rf_subscriptions);
22
23 return response_functions_.size() - 1;
24}
size_t AddResponseFunction(const std::string &qoi_name, std::shared_ptr< chi_mesh::LogicalVolume > logical_volume, const std::string &lua_function_name)
std::vector< RespFuncAndSubs > response_functions_
Definition: lbsadj_solver.h:21