mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
Improved reporting of timestep mismatch
This commit is contained in:
parent
d364e045aa
commit
74133bacd0
@ -481,18 +481,29 @@ void RifReaderEclipseOutput::setHdf5FileName(const QString& fileName)
|
|||||||
if (hdfTimeSteps.size() != m_timeSteps.size())
|
if (hdfTimeSteps.size() != m_timeSteps.size())
|
||||||
{
|
{
|
||||||
RiaLogging::error("HDF: Time step count does not match");
|
RiaLogging::error("HDF: Time step count does not match");
|
||||||
|
RiaLogging::error(QString("HDF: Elicpse count %1").arg(m_timeSteps.size()));
|
||||||
|
RiaLogging::error(QString("HDF: HDF count %1").arg(hdfTimeSteps.size()));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isTimeStampsEqual = true;
|
||||||
for (size_t i = 0; i < m_timeSteps.size(); i++)
|
for (size_t i = 0; i < m_timeSteps.size(); i++)
|
||||||
{
|
{
|
||||||
if (hdfTimeSteps[i] != m_timeSteps[i])
|
if (hdfTimeSteps[i].date() != m_timeSteps[i].date())
|
||||||
{
|
{
|
||||||
RiaLogging::error("HDF: Time steps does not match");
|
RiaLogging::error("HDF: Time steps does not match");
|
||||||
|
|
||||||
return;
|
QString dateStr("yyyy.MMM.ddd hh:mm");
|
||||||
|
|
||||||
|
RiaLogging::error(QString("HDF: Elicpse date %1").arg(m_timeSteps[i].toString(dateStr)));
|
||||||
|
RiaLogging::error(QString("HDF: HDF date %1").arg(hdfTimeSteps[i].toString(dateStr)));
|
||||||
|
|
||||||
|
isTimeStampsEqual = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isTimeStampsEqual) return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user