Skip to content
Snippets Groups Projects
Commit 8fecf9e7 authored by Mark Meredith's avatar Mark Meredith
Browse files

by reference

parent 82b4ed19
No related branches found
No related tags found
1 merge request!21Provide better error messages for parsing inputs files
Pipeline #21240 passed
......@@ -3,7 +3,7 @@
namespace solver {
solver::GeometrySettings make_geometry(solver::InputInfo ii,
std::vector<InputsMessage> messages) {
std::vector<InputsMessage> &messages) {
solver::GeometrySettings geo;
if (ii.count(CSG_FILENAME)) {
......
......@@ -3,7 +3,7 @@
namespace solver {
solver::MeshSettings make_mesh(solver::InputInfo ii,
std::vector<InputsMessage> messages) {
std::vector<InputsMessage> &messages) {
solver::MeshSettings mesh;
auto [mx, my, mz] = mesh.axes;
......
......@@ -4,7 +4,7 @@
namespace solver {
void require(std::string key, std::vector<InputsMessage> messages, int size) {
void require(std::string key, std::vector<InputsMessage> &messages, int size) {
std::ostringstream oss;
if (size == 0) {
......
#include <solver.hpp>
namespace solver {
GeometrySettings make_geometry(solver::InputInfo,
std::vector<InputsMessage> messages);
MeshSettings make_mesh(solver::InputInfo, std::vector<InputsMessage> messages);
TimeSettings make_time(solver::InputInfo, std::vector<InputsMessage> messages);
void require(std::string, std::vector<InputsMessage>, int);
GeometrySettings make_geometry(solver::InputInfo, std::vector<InputsMessage> &);
MeshSettings make_mesh(solver::InputInfo, std::vector<InputsMessage> &);
TimeSettings make_time(solver::InputInfo, std::vector<InputsMessage> &);
void require(std::string, std::vector<InputsMessage> &, int);
} // namespace solver
......@@ -3,7 +3,7 @@
namespace solver {
solver::TimeSettings make_time(solver::InputInfo ii,
std::vector<InputsMessage> messages) {
std::vector<InputsMessage> &messages) {
solver::TimeSettings time;
auto dt_max = std::get<solver::NumberArray>(ii[DT_MAX]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment