Skip to content

Commit 4e57bde

Browse files
committed
Remove old apar function
1 parent e6bf417 commit 4e57bde

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

cpp/lib/HermiteRunner.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ class HermiteRunner {
2525
* @param N the number of timesteps.
2626
*/
2727
virtual void run(Dim N, Dim saveInterval) = 0;
28-
29-
/**
30-
*
31-
* @return Final values of APar.
32-
*/
33-
virtual mdarray<Real, dextents<Dim, 2u>> getFinalAPar() = 0;
3428
};
3529

3630
} // namespace ahr

cpp/lib/Naive.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -471,18 +471,6 @@ Real Naive::updateTimestep(Real dt, Real tempDt, bool noInc, Real relative_error
471471
return dt;
472472
}
473473

474-
mdarray<Real, dextents<Dim, 2u>> Naive::getFinalAPar() {
475-
Buf::R_XY buf = g.rBufXY();
476-
// This actually wrecks A_PAR, but we don't need it anymore
477-
tf.bfft(Grid::sliceXY(moments_K, A_PAR), buf.to_mdspan());
478-
479-
// Write to a layout_right array and normalize
480-
mdarray<Real, dextents<Dim, 2u>> result{g.X, g.Y};
481-
g.for_each_xy([&](Dim x, Dim y) { result(x, y) = buf(x, y) * XYNorm; });
482-
483-
return result;
484-
}
485-
486474
Naive::Buf::R_XY Naive::getMoment(Dim m) const {
487475
// Make a copy first
488476
Buf::C_XY tmp = g.cBufXY();

cpp/lib/Naive.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ class Naive : public ahr::HermiteRunner {
3232

3333
void run(Dim N, Dim saveInterval) override;
3434

35-
mdarray<Real, dextents<Dim, 2u>> getFinalAPar() override;
36-
37-
3835
Grid g;
3936
Transformer tf{g};
4037
Exporter exporter{g, tf};

0 commit comments

Comments
 (0)