Skip to content
Snippets Groups Projects
Commit 7f77a01d authored by Boris Martin's avatar Boris Martin
Browse files

read from file

parent 5d810ba5
No related branches found
No related tags found
1 merge request!6Draft: "Flexible acquisition", a configuration with arbitrary sources and receivers read from a YAML file.
......@@ -56,17 +56,20 @@ namespace flexible_acquisition
}
// SETUP FROM YAML
// TODO read path
ShotsConfigurationYAML shotsConfig("shots.yaml");
std::string shotsPath;
if (!gmshFem.userDefinedParameter(shotsPath, "shots_config"))
{
throw common::Exception("Path to a shots_config is needed in flexible_acquisition.");
}
ShotsConfigurationYAML shotsConfig(shotsPath);
_ns = shotsConfig.numShots();
// Configure points
for (const auto &coords: shotsConfig.points()) {
for (const auto &coords : shotsConfig.points())
{
_er_positions.push_back(coords);
}
mesh();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment