Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRISplitIntegrator no longer derives from amrex::IntegratorBase. #1655

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions Source/TimeIntegration/ERF_MRI.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <functional>

template<class T>
class MRISplitIntegrator : public amrex::IntegratorBase<T>
class MRISplitIntegrator
{
private:
/**
Expand Down Expand Up @@ -90,12 +90,12 @@ public:
initialize_data(S_data);
}

void initialize (const T& S_data) override
void initialize (const T& S_data)
{
initialize_data(S_data);
}

~MRISplitIntegrator () override = default;
~MRISplitIntegrator () = default;

// Declare a default move constructor so we ensure the destructor is
// not called when we return an object of this class by value
Expand Down Expand Up @@ -184,7 +184,7 @@ public:
return rhs;
}

amrex::Real advance (T& S_old, T& S_new, amrex::Real time, const amrex::Real time_step) override
amrex::Real advance (T& S_old, T& S_new, amrex::Real time, const amrex::Real time_step)
{
BL_PROFILE_REGION("MRI_advance");
using namespace amrex;
Expand Down Expand Up @@ -348,9 +348,7 @@ public:
return timestep;
}

void time_interpolate (const T& /* S_new */, const T& /*S_old*/, amrex::Real /*timestep_fraction*/, T& /*data*/) override {}

void map_data (std::function<void(T&)> Map) override
void map_data (std::function<void(T&)> Map)
{
for (auto& F : T_store) {
Map(*F);
Expand Down
Loading