WSL/SLF GitLab Repository

Commit 18ca4e04 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Fixed some warnings found by the Cray compiler (see http://bojolais.livejournal.com/222428.html).

parent ba5e874e
......@@ -56,8 +56,8 @@ class ARPSIO : public IOInterface {
virtual void readDEM(DEMObject& dem_out);
using IOInterface::read3DGrid; //to call before overwriding the method
virtual void read3DGrid(Grid3DObject& grid_out, const std::string& parameter="");
//virtual void read3DGrid(Grid3DObject& grid_out, const MeteoGrids::Parameters& parameter, const Date& date);
private:
void setOptions();
......
......@@ -42,12 +42,14 @@ class GrassIO : public IOInterface {
GrassIO(const GrassIO&);
GrassIO(const Config&);
using IOInterface::read2DGrid; //to call before overwriding the method
virtual void read2DGrid(Grid2DObject& dem_out, const std::string& parameter="");
virtual void readDEM(DEMObject& dem_out);
virtual void readLanduse(Grid2DObject& landuse_out);
virtual void readAssimilationData(const Date&, Grid2DObject& da_out);
using IOInterface::write2DGrid; //to call before overwriding the method
virtual void write2DGrid(const Grid2DObject& grid_in, const std::string& filename);
private:
......
......@@ -485,9 +485,10 @@ void SMETWriter::write(const std::vector<std::string>& vec_timestamp, const std:
if (!SMETCommon::validFileAndPath(filename)) throw SMETException("Invalid file name \""+filename+"\"", AT);
errno = 0;
/*if (append_mode) {
}*/
if (append_mode) {
//check where to insert the new data
//remove everything from there on
}
ofstream fout;
fout.open(filename.c_str(), ios::binary);
......
......@@ -40,6 +40,7 @@ class TEMPLATE : public IOInterface {
TEMPLATE(const Config& cfgreader);
~TEMPLATE() throw();
using IOInterface::read2DGrid; //to call before overwriding the method when NOT all the polymorphic call are implemented (see http://bojolais.livejournal.com/222428.html)
virtual void read2DGrid(Grid2DObject& grid_out, const std::string& parameter="");
virtual void readMeteoData(const Date& dateStart, const Date& dateEnd,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment