Skip to content

Commit

Permalink
Fix compatibility issue with latest GRChombo update
Browse files Browse the repository at this point in the history
  • Loading branch information
dinatraykova committed Oct 30, 2023
1 parent 13d656b commit 9c399e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Examples/BoostedBHComplexScalar/FluxExtraction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class FluxExtraction : public SphericalExtraction
{
public:
//! The constructor
FluxExtraction(SphericalExtraction::params_t &a_params, double a_dt,
FluxExtraction(const spherical_extraction_params_t &a_params, double a_dt,
double a_time, bool a_first_step,
double a_restart_time = 0.0)
: SphericalExtraction(a_params, a_dt, a_time, a_first_step,
Expand All @@ -30,7 +30,7 @@ class FluxExtraction : public SphericalExtraction

//! The old constructor which assumes it is called in specificPostTimeStep
//! so the first time step is when m_time == m_dt
FluxExtraction(SphericalExtraction::params_t a_params, double a_dt,
FluxExtraction(const spherical_extraction_params_t &a_params, double a_dt,
double a_time, double a_restart_time = 0.0)
: FluxExtraction(a_params, a_dt, a_time, (a_dt == a_time),
a_restart_time)
Expand Down
4 changes: 2 additions & 2 deletions Examples/KerrBHScalarField/FluxExtraction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class FluxExtraction : public SphericalExtraction
{
public:
//! The constructor
FluxExtraction(SphericalExtraction::params_t &a_params, double a_dt,
FluxExtraction(const spherical_extraction_params_t &a_params, double a_dt,
double a_time, bool a_first_step,
double a_restart_time = 0.0)
: SphericalExtraction(a_params, a_dt, a_time, a_first_step,
Expand All @@ -30,7 +30,7 @@ class FluxExtraction : public SphericalExtraction

//! The old constructor which assumes it is called in specificPostTimeStep
//! so the first time step is when m_time == m_dt
FluxExtraction(SphericalExtraction::params_t a_params, double a_dt,
FluxExtraction(const spherical_extraction_params_t &a_params, double a_dt,
double a_time, double a_restart_time = 0.0)
: FluxExtraction(a_params, a_dt, a_time, (a_dt == a_time),
a_restart_time)
Expand Down
5 changes: 4 additions & 1 deletion Source/Background/FixedBGSimulationParametersBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#include "GRParmParse.hpp"
#include "SphericalExtraction.hpp"

// add this type alias here for backwards compatibility
using extraction_params_t = spherical_extraction_params_t;

//! Class to handle the simulations params that are always required in
//! simulations with a fixed background
class FixedBGSimulationParametersBase : public ChomboParameters
Expand Down Expand Up @@ -166,7 +169,7 @@ class FixedBGSimulationParametersBase : public ChomboParameters

// Collection of parameters necessary for the extraction
bool activate_extraction;
SphericalExtraction::params_t extraction_params;
spherical_extraction_params_t extraction_params;

std::string data_path;
};
Expand Down

0 comments on commit 9c399e7

Please sign in to comment.