Skip to content

Region mapping - #49

Open
ikbuibui wants to merge 17 commits into
ComputationalRadiationPhysics:devfrom
ikbuibui:region-mapping
Open

ikbuibui wants to merge 17 commits into
ComputationalRadiationPhysics:devfrom
ikbuibui:region-mapping

Conversation

@ikbuibui

Copy link
Copy Markdown
Collaborator

No description provided.

int const numSourceRegions = static_cast<int>(source.bucketCount());

auto computeOneEntry = [&](auto& sourcePRBuf)
static constexpr uint32_t threadsPerBlock = 32;
REQUIRE(h_offsets(1) == 2); // Region 0 matches: 0, 1
REQUIRE(h_offsets(2) == 4); // Region 1 matches: 0, 1
REQUIRE(h_offsets(3) == 5); // Region 2 matches: 2
TEST_CASE("relativePos uses the explicit region chart", "[particles][position][contract]")
}

REQUIRE(h_neighbours(4) == 2);
TEST_CASE("WorldAABB has explicit empty and world-space operations", "[particles][bounds][contract]")
using Grid = pmacc::spearhed::FixedCartesianGrid<CS>;
using Bounds = pmacc::spearhed::WorldAABB<CS>;

Grid makeGrid(std::array<bool, CS::dimension> periodic = {})

} // namespace

TEST_CASE("fixed Cartesian grid defines dense slots and boundary location", "[spatial][fixed-grid]")
REQUIRE(location.canonicalWorldPosition[pmacc::spearhed::tags::x] == 3.75f);
}

TEST_CASE("fixed-grid provider matches brute-force cell geometry", "[spatial][fixed-grid]")
}
}

TEST_CASE("fixed-grid provider uses distinct target and source grids", "[spatial][fixed-grid]")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants