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

read from file

parent 5d810ba5
Branches
Tags
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 ...@@ -56,17 +56,20 @@ namespace flexible_acquisition
} }
// SETUP FROM YAML // SETUP FROM YAML
// TODO read path std::string shotsPath;
if (!gmshFem.userDefinedParameter(shotsPath, "shots_config"))
ShotsConfigurationYAML shotsConfig("shots.yaml"); {
throw common::Exception("Path to a shots_config is needed in flexible_acquisition.");
}
ShotsConfigurationYAML shotsConfig(shotsPath);
_ns = shotsConfig.numShots(); _ns = shotsConfig.numShots();
// Configure points // Configure points
for (const auto &coords: shotsConfig.points()) { for (const auto &coords : shotsConfig.points())
{
_er_positions.push_back(coords); _er_positions.push_back(coords);
} }
mesh(); mesh();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment