Skip to content
Snippets Groups Projects
Commit 3b8657d8 authored by Tom Fischer's avatar Tom Fischer
Browse files

[FileIO] GMSHInterface::writeGMSHInputFile(): C++11.

parent 4ec43890
No related branches found
No related tags found
No related merge requests found
...@@ -414,18 +414,16 @@ void GMSHInterface::writeGMSHInputFile(std::ostream& out) ...@@ -414,18 +414,16 @@ void GMSHInterface::writeGMSHInputFile(std::ostream& out)
// *** insert stations // *** insert stations
auto gmsh_stations = std::unique_ptr<std::vector<GeoLib::Point*>>( auto gmsh_stations = std::unique_ptr<std::vector<GeoLib::Point*>>(
new std::vector<GeoLib::Point*>); new std::vector<GeoLib::Point*>);
const std::size_t n_geo_names(_selected_geometries.size()); for (auto const& geometry_name : _selected_geometries) {
for (std::size_t j(0); j < n_geo_names; j++) { auto const* stations(_geo_objs.getStationVec(geometry_name));
const std::vector<GeoLib::Point*>* stations (_geo_objs.getStationVec(_selected_geometries[j]));
if (stations) { if (stations) {
const std::size_t n_stations(stations->size()); for (auto * station : *stations) {
for (std::size_t k(0); k < n_stations; k++) {
bool found(false); bool found(false);
for (std::list<GMSH::GMSHPolygonTree*>::iterator it(_polygon_tree_list.begin()); for (auto it(_polygon_tree_list.begin());
it != _polygon_tree_list.end() && !found; ++it) { it != _polygon_tree_list.end() && !found; ++it) {
GeoLib::Station *station_pnt(new GeoLib::Station(* static_cast<GeoLib::Station*>((*stations)[k]))); gmsh_stations->emplace_back(new GeoLib::Station(
gmsh_stations->push_back(station_pnt); *static_cast<GeoLib::Station*>(station)));
if ((*it)->insertStation(station_pnt)) { if ((*it)->insertStation(gmsh_stations->back())) {
found = true; found = true;
} }
} }
......
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