Skip to content

Commit bdcc36d

Browse files
author
JoMee
committed
wrap up
1 parent 7771196 commit bdcc36d

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/FEM/ProjectCurrent.hpp

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)