@@ -139,7 +139,7 @@ void LPNSolverInterface::load_library(const std::string& interface_lib) {
139139//
140140// file_name: The name of the LPN configuration file (JSON).
141141//
142- void LPNSolverInterface::initialize (std::string file_name) {
142+ void LPNSolverInterface::initialize (const std::string& file_name) {
143143 lpn_initialize_ (file_name, problem_id_, pts_per_cycle_, num_cycles_,
144144 num_output_steps_, block_names_, variable_names_);
145145 std::cout << " [LPNSolverInterface::initialize] Problem ID: " << problem_id_
@@ -200,7 +200,7 @@ void LPNSolverInterface::run_simulation(const double time,
200200//
201201// new_params: The new parameters for the 0D block.
202202//
203- void LPNSolverInterface::update_block_params (std::string block_name,
203+ void LPNSolverInterface::update_block_params (const std::string& block_name,
204204 std::vector<double >& new_params) {
205205 lpn_update_block_params_ (problem_id_, block_name, new_params);
206206}
@@ -213,7 +213,7 @@ void LPNSolverInterface::update_block_params(std::string block_name,
213213//
214214// new_params: The parameters for the 0D block.
215215//
216- void LPNSolverInterface::read_block_params (std::string block_name,
216+ void LPNSolverInterface::read_block_params (const std::string& block_name,
217217 std::vector<double >& block_params) {
218218 lpn_read_block_params_ (problem_id_, block_name, block_params);
219219}
@@ -227,7 +227,7 @@ void LPNSolverInterface::read_block_params(std::string block_name,
227227//
228228// IDs: The solution IDs of the inlet and outlet nodes for the block.
229229//
230- void LPNSolverInterface::get_block_node_IDs (std::string block_name,
230+ void LPNSolverInterface::get_block_node_IDs (const std::string& block_name,
231231 std::vector<int >& IDs) {
232232 lpn_get_block_node_IDs_ (problem_id_, block_name, IDs);
233233}
0 commit comments