WSL/SLF GitLab Repository

Skip to content
Snippets Groups Projects
Commit e4905b13 authored by Thomas Egger's avatar Thomas Egger
Browse files

Bugfix for MeteoFilter: the vecWindowM was passed by value instead by reference.

parent 8916fe57
Branches
Tags
No related merge requests found
......@@ -66,7 +66,7 @@ MeteoFilter::MeteoFilter(const ConfigReader& _cfg) : cfg(_cfg) {
}
void MeteoFilter::filterData(const std::vector<MeteoData>& vecM, const std::vector<StationData>& vecS,
std::vector<MeteoData> vecWindowM, std::vector<StationData> vecWindowS,
std::vector<MeteoData>& vecWindowM, std::vector<StationData>& vecWindowS,
const bool& checkonly)
{
//Loop through each meteo parameter, call the respective filter function
......
......@@ -67,7 +67,7 @@ class MeteoFilter {
* @param[in] checkonly indicates whether to execute all filters or only "checkonly" filters
*/
void filterData(const std::vector<MeteoData>& vecM, const std::vector<StationData>& vecS,
std::vector<MeteoData> vecWindowM, std::vector<StationData> vecWindowS,
std::vector<MeteoData>& vecWindowM, std::vector<StationData>& vecWindowS,
const bool& checkonly = false);
......
......@@ -230,7 +230,7 @@ void GSNIO::readStationMetaData(StationData& sd, const unsigned int& stationinde
Coords coordinate(coordin, coordinparam);
coordinate.setLatLon(latitude, longitude, altitude);
sd.setStationData(coordinate, name, name);
sd.setStationData(coordinate, vecStationName[stationindex], name);
} else {
soap_print_fault(&gsn, stdout);
throw IOException("Error in communication with GSN",AT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment