Skip to content

Commit c8aa44c

Browse files
committed
modify initFromData for vector change
1 parent 8a9a92d commit c8aa44c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/data/FluidDataSeries.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ class FluidDataSeries
238238
private:
239239
void initFromData()
240240
{
241-
assert(mIds.rows() == mData.rows());
242-
mDim = mData.cols();
241+
assert(mIds.rows() == mData.size());
242+
mDim = mData[0].cols();
243243
for (index i = 0; i < mIds.size(); i++) { mIndex.insert({mIds[i], i}); }
244244
}
245245

0 commit comments

Comments
 (0)