Skip to content

Commit

Permalink
Cleaning up for PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
massimim committed Sep 11, 2023
1 parent cb6b437 commit e9d12c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libNeonDomain/include/Neon/domain/details/bGrid/bField_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ auto bField<T, C, SBlock>::initHaloUpdateTable() -> void
T* srcMem = blockViewPartitions[Data::EndPoints::src]->mem();
T* dstMem = blockViewPartitions[Data::EndPoints::dst]->mem();

Neon::size_4d srcBoundaryBuff(boundaryZBeginIdx[Data::EndPoints::src][static_cast<int>(byDirection)], 0, 0, 0);
Neon::size_4d dstGhostBuff(ghostZBeginIdx[Data::EndPoints::dst][static_cast<int>(ByDirectionUtils::invert(byDirection))], 0, 0, 0);
Neon::size_4d srcBoundaryBuff(boundaryZBeginIdx[Data::EndPoints::src][static_cast<int>(byDirection)], 0, 0, 0);

size_t transferDataBlockCount = mData->grid->mData->partitioner1D.getSpanLayout().getBoundsBoundary(setIdxVec[Data::EndPoints::src], byDirection).count;

// std::cout << "To " << dstGhostBuff << " prt " << blockViewPartitions[Data::EndPoints::dst]->prtID() << " From " << srcBoundaryBuff << " prt " << blockViewPartitions[Data::EndPoints::src]->prtID() << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion libNeonDomain/include/Neon/domain/tools/SpaceCurves.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class Encoder
uint64_t transform = 0;
uint64_t out = 0;

for (int32_t i = 3 * (bits - 1); i >= 0; i -= 3) {
for (int32_t i = int(3 * (bits - 1)); i >= 0; i -= 3) {
transform = lookupTable[transform | ((in >> i) & 7)];
out = (out << 3) | (transform & 7);
transform &= ~7;
Expand Down

0 comments on commit e9d12c8

Please sign in to comment.