Commit abb23243 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Cleaning warnings.

parent 2f147bba
Pipeline #56530 passed with stages
in 15 minutes and 35 seconds
......@@ -158,7 +158,7 @@ int main(int argc, char **argv)
// Work out which fields are which data points - should be 2nd line (1)
std::cout << "Finding data fields..." << std::endl;
for (int entry = 0; entry < inputData[1].size(); ++entry)
for (size_t entry = 0; entry < inputData[1].size(); ++entry)
{
if (inputData[1][entry] == pressureString)
{
......@@ -250,7 +250,7 @@ int main(int argc, char **argv)
inputWDirs, inputWSpds, inputHeights;
std::cout << "Data fields found - reading data..." << std::endl;
float missingValue = -9999.f;
for (int row = 4; row < inputData.size(); ++row)
for (size_t row = 4; row < inputData.size(); ++row)
{
if (inputData[row].size() < inputData[1].size())
{
......@@ -262,7 +262,7 @@ int main(int argc, char **argv)
bool foundPressure = false, foundTemp = false, foundRelHum = false,
foundDewPt = false, foundWDir = false, foundWSpd = false,
foundHeight = false;
for (int entry = 0; entry < inputData[row].size(); ++entry)
for (size_t entry = 0; entry < inputData[row].size(); ++entry)
{
float thisValue = from_string(inputData[row][entry], missingValue);
......@@ -538,7 +538,7 @@ int main(int argc, char **argv)
thisIndexHeader.dummy = 0.f;
thisIndexHeader.nx = numberGridCells;
thisIndexHeader.ny = numberGridCells;
thisIndexHeader.nz = inputPressures.size();
thisIndexHeader.nz = int(inputPressures.size());
thisIndexHeader.z_flag = 2;
thisIndexHeader.lenh = numberGridCells * numberGridCells;
thisIndexHeader.levels = inputPressures;
......@@ -682,6 +682,8 @@ int main(int argc, char **argv)
metTime.tm_year = metTime.tm_year + 400;
#endif // _WIN32
addHour(&metTime, 1);
printf("%d%02d%02d:%02d\n", metTime.tm_year, (metTime.tm_mon + 1),
metTime.tm_mday, metTime.tm_hour);
#ifdef _WIN32
metTime.tm_year = metTime.tm_year - 400;
#endif
......
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