Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunFell committed Sep 4, 2024
1 parent b20d6c7 commit ffd8b41
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Examples/EMMinkowski/ProcaField.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ProcaField : public BaseProcaField<DefaultBackground, ProcaField>

ProcaField(DefaultBackground a_background, params_t a_params)
: BaseProcaField<DefaultBackground, ProcaField>(a_background),
m_background(a_background){};
m_background(a_background) {};

template <class data_t>
void compute_emtensor_modification(
Expand Down
2 changes: 1 addition & 1 deletion Examples/NonLinearProcaKerrBH/CustomTaggingCriterion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CustomTaggingCriterion
bool activate_gnn_tagging)
: m_dx(dx), m_L(a_L), m_init_ratio(a_ratio), m_center(a_center),
m_level(a_level), m_activate_gnn_tagging(activate_gnn_tagging),
m_threshold(a_threshold){};
m_threshold(a_threshold) {};

template <class data_t>
data_t FixedGridTagging(Cell<data_t> current_cell) const
Expand Down
2 changes: 1 addition & 1 deletion Examples/NonLinearProcaKerrBH/InitialConditions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Initial_Proca_Conditions
ProcaField::params_t a_matter_params,
KerrParams a_Kerr_params, KerrSchild a_background)
: m_dx{a_dx}, m_params{a_params}, m_matter_params{a_matter_params},
m_Kerr_params{a_Kerr_params}, m_background(a_background){};
m_Kerr_params{a_Kerr_params}, m_background(a_background) {};

template <class data_t> void compute(Cell<data_t> current_cell) const
{
Expand Down
4 changes: 2 additions & 2 deletions Examples/NonLinearProcaKerrBH/NonlinearG2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class NonlinearG2
using MetricVars = typename ADMFixedBGVars::template Vars<data_t>;

public:
NonlinearG2(){}; // Default constructor for default initialization in
// matter class
NonlinearG2() {}; // Default constructor for default initialization in
// matter class

NonlinearG2(params_t a_params) : m_params{a_params} {};

Expand Down
2 changes: 1 addition & 1 deletion Examples/NonLinearProcaKerrBH/SecondClassConstraint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ template <class background_t> class SecondClassConstraint
const background_t a_background,
const ProcaField a_proca_field)
: m_dx{dx}, m_deriv(dx), m_background(a_background), m_center(a_center),
m_proca_field(a_proca_field){};
m_proca_field(a_proca_field) {};

template <class data_t> void compute(Cell<data_t> current_cell) const
{
Expand Down
2 changes: 1 addition & 1 deletion Examples/ProcaKerrBH/InitialConditions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Initial_Proca_Conditions
ProcaField::params_t a_matter_params,
KerrParams a_Kerr_params, KerrSchild a_background)
: m_dx{a_dx}, m_params{a_params}, m_matter_params{a_matter_params},
m_Kerr_params{a_Kerr_params}, m_background(a_background){};
m_Kerr_params{a_Kerr_params}, m_background(a_background) {};

template <class data_t> void compute(Cell<data_t> current_cell) const
{
Expand Down
2 changes: 1 addition & 1 deletion Examples/ProcaKerrdeSitter/InitialConditions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Initial_Proca_Conditions
ProcaField::params_t a_matter_params,
KdSParams a_Kerr_params, KerrdeSitter a_background)
: m_dx{a_dx}, m_params{a_params}, m_matter_params{a_matter_params},
m_Kerr_params{a_Kerr_params}, m_background(a_background){};
m_Kerr_params{a_Kerr_params}, m_background(a_background) {};

template <class data_t> void compute(Cell<data_t> current_cell) const
{
Expand Down
4 changes: 2 additions & 2 deletions Source/Background/DefaultBackground.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class DefaultBackground
};

public:
DefaultBackground(){};
DefaultBackground() {};

DefaultBackground(params_t a_params, double dx){};
DefaultBackground(params_t a_params, double dx) {};

template <class data_t> using MetricVars = ADMFixedBGVars::Vars<data_t>;

Expand Down
6 changes: 3 additions & 3 deletions Source/Core/TaggingCriterion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class TaggingCriterion
const bool a_activate_ham_tagging = false,
const bool a_activate_extraction_tagging = false,
const bool DIAGNOSTIC = false)
: m_center{a_center},
m_dx(dx), m_L{a_L}, m_init_ratio{a_rat}, m_params{a_params},
m_level{a_level}, m_activate_extraction{a_activate_extraction},
: m_center{a_center}, m_dx(dx), m_L{a_L}, m_init_ratio{a_rat},
m_params{a_params}, m_level{a_level},
m_activate_extraction{a_activate_extraction},
m_activate_ham_tagging{a_activate_ham_tagging},
m_activate_extraction_tagging{a_activate_extraction_tagging},
m_DIAGNOSTIC{DIAGNOSTIC} {};
Expand Down
2 changes: 1 addition & 1 deletion Source/Diagnostics/DampingField.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DampingFieldDiagnostic
// variables

public:
DampingFieldDiagnostic(){}; // explicit default constructor
DampingFieldDiagnostic() {}; // explicit default constructor

template <class data_t> void compute(Cell<data_t> current_cell) const
{
Expand Down
4 changes: 2 additions & 2 deletions Source/Diagnostics/ExcisionDiagnostics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ template <class matter_t, class background_t> class ExcisionDiagnostics
std::vector<int> a_vars_to_excise)
: m_background{a_background}, m_dx{a_dx}, m_center{a_center},
m_inner_boundary{a_inner_boundary},
m_outer_boundary{a_outer_boundary}, m_vars_to_excise{
a_vars_to_excise} {};
m_outer_boundary{a_outer_boundary},
m_vars_to_excise{a_vars_to_excise} {};

void compute(const Cell<double> current_cell) const
{
Expand Down
4 changes: 2 additions & 2 deletions Source/Lagrangians/DefaultG.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class DefaultG
using MetricVars = typename ADMFixedBGVars::template Vars<data_t>;

public:
DefaultG(){}; // Default constructor for default initialization in matter
// class
DefaultG() {}; // Default constructor for default initialization in matter
// class

DefaultG(params_t a_params) : m_params{a_params} {};

Expand Down
2 changes: 1 addition & 1 deletion Source/Lagrangians/L2_simp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ template <class G2 = DefaultG> class L2
using MetricVars = typename ADMFixedBGVars::template Vars<data_t>;

public:
L2(){}; // Default constructor for default initialization in matter class
L2() {}; // Default constructor for default initialization in matter class

L2(G2 a_G2_function, params_t a_params)
: m_g2_function(a_G2_function), m_params{a_params} {};
Expand Down
10 changes: 5 additions & 5 deletions Source/Matter/BaseProcaFieldLevel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class BaseProcaFieldLevel : public GRAMRLevel
pout() << "BaseProcaField constructor" << endl;
}

BaseProcaFieldLevel(){};
BaseProcaFieldLevel() {};

virtual void specificAdvance(); // do things at end of advance step, after
// RK4 calculation
Expand All @@ -79,22 +79,22 @@ class BaseProcaFieldLevel : public GRAMRLevel

// additional pre-plot routines from the user, e.g. writing custom
// diagnostic data
virtual void additionalPrePlotLevel(){};
virtual void additionalPrePlotLevel() {};
#endif

virtual void
specificEvalRHS(GRLevelData &a_soln, GRLevelData &a_rhs,
const double a_time); // RHS routines used at each RK4 step.
// e.g. calculate the time derivatives

virtual void preTagCells()
override{}; // things to do before tagging cells (e.g. filling ghosts)
virtual void preTagCells() override {
}; // things to do before tagging cells (e.g. filling ghosts)

virtual void specificPostTimeStep() override;

// additional post-time-step routines from the user, e.g. computating
// additional fluxes
virtual void additionalPostTimeStep(){};
virtual void additionalPostTimeStep() {};

virtual void computeTaggingCriterion(
FArrayBox &tagging_criterion, const FArrayBox &current_state,
Expand Down
4 changes: 2 additions & 2 deletions Tests/L2_test/DefaultG.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class DefaultG
using MetricVars = typename ADMFixedBGVars::template Vars<data_t>;

public:
DefaultG(){}; // Default constructor for default initialization in matter
// class
DefaultG() {}; // Default constructor for default initialization in matter
// class

DefaultG(params_t a_params) : m_params{a_params} {};

Expand Down
2 changes: 1 addition & 1 deletion Tests/L2_test/L2_simp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ template <class G2 = DefaultG> class L2
using MetricVars = typename ADMFixedBGVars::template Vars<data_t>;

public:
L2(){}; // Default constructor for default initialization in matter class
L2() {}; // Default constructor for default initialization in matter class

L2(G2 a_G2_function, params_t a_params)
: m_g2_function(a_G2_function), m_params{a_params} {};
Expand Down
2 changes: 1 addition & 1 deletion Tests/SimpleDataReader_test/ProcaField.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ProcaField : public BaseProcaField<KerrSchild, ProcaField>

ProcaField(KerrSchild a_background, params_t a_params)
: BaseProcaField<KerrSchild, ProcaField>(a_background),
m_background(a_background), m_params(a_params){};
m_background(a_background), m_params(a_params) {};

template <class data_t>
void compute_emtensor_modification(
Expand Down

0 comments on commit ffd8b41

Please sign in to comment.