File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -18,25 +18,20 @@ inline void assemble_current_whitney1(const Mesh& mesh,
1818 const NedelecSpace& space,
1919 policy_type iteration_policy)
2020{
21-
2221 using T = Mesh::value_type;
2322
24- const auto org_v = mesh.getOrigin (); // ippl::Vector<T,Dim>
25- const auto h_v = mesh.getMeshSpacing (); // ippl::Vector<T,Dim>
23+ const auto origin = mesh.getOrigin ();
24+ const auto h = mesh.getMeshSpacing ();
2625 constexpr unsigned Dim = Mesh::Dimension;
2726
28- std::array<T,Dim> origin_a{};
29- std::array<T,Dim> h_a{};
30- for (unsigned d = 0 ; d < Dim; ++d) {
31- origin_a[d] = org_v[d];
32- h_a[d] = h_v[d];
33- }
34-
3527 Kokkos::parallel_for (" assemble_current_whitney1_make_segments" , iteration_policy,
3628 KOKKOS_LAMBDA (const std::size_t p) {
3729
38- std::cout << X0 (p) << std::endl;
39- std::cout << X1 (p) << std::endl;
30+ auto segs = ippl::GridPathSegmenter<Dim, T, ippl::DefaultCellCrossingRule>
31+ ::split (X0(p), X1(p), origin, h);
32+
33+
34+
4035
4136 });
4237
You can’t perform that action at this time.
0 commit comments