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