Skip to content

Commit

Permalink
warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahdhn committed Jun 26, 2023
1 parent f8dea2e commit 2116890
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions libNeonDomain/include/Neon/domain/details/mGrid/mField_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ auto mField<T, C>::forEachActiveCell(
}

if (active) {
Idx idx(blockIdx, i * kUserBlockSizeX + x, j * kUserBlockSizeY + y, k * kUserBlockSizeZ + z);
for (int c = 0; c < card; ++c) {
Idx idx(blockIdx, int8_t(i * kUserBlockSizeX + x), int8_t(j * kUserBlockSizeY + y), int8_t(k * kUserBlockSizeZ + z));
for (int c = 0; c < card; ++c) {
fun(voxelGlobalID, c, (*this)(level).getPartition(Neon::Execution::host, devID, Neon::DataView::STANDARD)(idx, c));
}
}
Expand Down Expand Up @@ -446,7 +446,7 @@ auto mField<T, C>::ioToVtk(std::string fileName,
file << x + y * refFactor + z * refFactor * refFactor
<< "\n";
} else if (op == Op::OutputData) {
Idx idx(blockIdx, i * kUserBlockSizeX + x, j * kUserBlockSizeY + y, k * kUserBlockSizeZ + z);
Idx idx(blockIdx, int8_t(i * kUserBlockSizeX + x), int8_t(j * kUserBlockSizeY + y), int8_t(k * kUserBlockSizeZ + z));
for (int c = 0; c < card; ++c) {
file << (*this)(l).getPartition(Neon::Execution::host, devID, Neon::DataView::STANDARD)(idx, c) << "\n";
}
Expand Down
2 changes: 1 addition & 1 deletion libNeonDomain/src/domain/details/mGrid/mGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ mGrid::mGrid(
childAllocSize[l]);
for (int32_t c = 0; c < childAllocSize[l].cardinality(); ++c) {
SetIdx devID(c);
for (int64_t i = 0; i < childAllocSize[l][c]; ++i) {
for (size_t i = 0; i < childAllocSize[l][c]; ++i) {
mData->mChildBlockID[l].eRef(devID, i) = std::numeric_limits<Idx::DataBlockIdx>::max();
}
}
Expand Down

0 comments on commit 2116890

Please sign in to comment.