Skip to content

Commit ffcb60f

Browse files
committed
Remove extra mdspans
1 parent c254187 commit ffcb60f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/lib/Naive.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ void Naive::init(std::string_view equilibriumName) {
3535
// Initialize equilibrium values
3636
auto [aParEq, phi] = equilibrium(equilibriumName, g);
3737

38-
fftHL(phi.to_mdspan(), phi_K.to_mdspan());
39-
fftHL(aParEq.to_mdspan(), aParEq_K.to_mdspan());
38+
fftHL(phi, phi_K);
39+
fftHL(aParEq, aParEq_K);
4040

4141
// Transform moments into phase space
4242
for (int m = G_MIN; m < g.M; ++m) {
@@ -470,7 +470,7 @@ Naive::Buf::R_XY Naive::getMoment(Dim m) const {
470470
g.for_each_kxky([&](Dim kx, Dim ky) { tmp(kx, ky) = moments_K(kx, ky, m); });
471471

472472
Buf::R_XY out = g.rBufXY();
473-
tf.bfft(tmp.to_mdspan(), out.to_mdspan());
473+
tf.bfft(tmp, out);
474474

475475
return out;
476476
}

0 commit comments

Comments
 (0)