mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
EndRow had extra loop on rows that was not needed.
For many rows (400,000), it was unworkable before this fix. git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@7503 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
089981f633
commit
6620be7ce8
@ -99,21 +99,18 @@ int CSelectedOutput::EndRow(void)
|
|||||||
// make sure array is full
|
// make sure array is full
|
||||||
for (size_t col = 0; col < ncols; ++col)
|
for (size_t col = 0; col < ncols; ++col)
|
||||||
{
|
{
|
||||||
for (size_t row = 0; row < this->m_nRowCount; ++row)
|
size_t nrows = this->m_arrayVar[col].size();
|
||||||
|
if (nrows < this->m_nRowCount)
|
||||||
{
|
{
|
||||||
size_t nrows = this->m_arrayVar[col].size();
|
// fill w/ empty
|
||||||
if (nrows < this->m_nRowCount)
|
this->m_arrayVar[col].resize(this->m_nRowCount);
|
||||||
{
|
|
||||||
// fill w/ empty
|
|
||||||
this->m_arrayVar[col].resize(this->m_nRowCount);
|
|
||||||
}
|
|
||||||
#if defined(_DEBUG)
|
|
||||||
else if (nrows > this->m_nRowCount)
|
|
||||||
{
|
|
||||||
ASSERT(false);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#if defined(_DEBUG)
|
||||||
|
else if (nrows > this->m_nRowCount)
|
||||||
|
{
|
||||||
|
ASSERT(false);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user