Skip to content

Commit ea30cab

Browse files
committed
DataContainer: Fix Offset Read
Proposed fix for #254 on which the offset >0 during reads could never be determined.
1 parent 65345d2 commit ea30cab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/include/splash/domains/DataContainer.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ namespace splash
8383

8484
for (uint32_t i = 0; i < DSP_DIM_MAX; ++i)
8585
{
86-
offset[i] = std::min(entryOffset[i], offset[i]);
86+
if (subdomains.empty())
87+
offset[i] = entryOffset[i];
88+
else
89+
offset[i] = std::min(entryOffset[i], offset[i]);
8790
size[i] = std::max(entryBack[i] + 1 - offset[i], size[i]);
8891
}
8992

0 commit comments

Comments
 (0)