Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlucf22 committed Mar 25, 2024
1 parent cda3137 commit 37995d5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
11 changes: 7 additions & 4 deletions source/QuadraticFreeEnergyStrategyMultiOrder.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ class QuadraticFreeEnergyStrategyMultiOrder : public FreeEnergyStrategy
void addDrivingForce(const double time, hier::Patch& patch,
const int temperature_id, const int phase_id,
const int eta_id, const int conc_id, const int f_l_id,
const int f_a_id, const int f_b_id, const int rhs_id)override;
const int f_a_id, const int f_b_id,
const int rhs_id) override;

void computeSecondDerivativeEnergyPhaseL(
const double temperature, const std::vector<double>& c,
std::vector<double>& d2fdc2, const bool use_internal_units = true)override
std::vector<double>& d2fdc2,
const bool use_internal_units = true) override
{
(void)temperature;

Expand All @@ -68,7 +70,8 @@ class QuadraticFreeEnergyStrategyMultiOrder : public FreeEnergyStrategy
}
void computeSecondDerivativeEnergyPhaseA(
const double temperature, const std::vector<double>& c,
std::vector<double>& d2fdc2, const bool use_internal_units = true)override
std::vector<double>& d2fdc2,
const bool use_internal_units = true) override
{
(void)temperature;

Expand Down Expand Up @@ -100,7 +103,7 @@ class QuadraticFreeEnergyStrategyMultiOrder : public FreeEnergyStrategy
}
}

void preRunDiagnostics(const double temperature)override{};
void preRunDiagnostics(const double temperature) override{};


private:
Expand Down
11 changes: 7 additions & 4 deletions source/QuadraticFreeEnergyStrategyMultiOrderTernaryThreePhase.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ class QuadraticFreeEnergyStrategyMultiOrderTernaryThreePhase
void addDrivingForce(const double time, hier::Patch& patch,
const int temperature_id, const int phase_id,
const int eta_id, const int conc_id, const int f_l_id,
const int f_a_id, const int f_b_id, const int rhs_id)override;
const int f_a_id, const int f_b_id,
const int rhs_id) override;

void computeSecondDerivativeEnergyPhaseL(
const double temperature, const std::vector<double>& c,
std::vector<double>& d2fdc2, const bool use_internal_units = true)override
std::vector<double>& d2fdc2,
const bool use_internal_units = true) override
{
(void)temperature;

Expand All @@ -65,7 +67,8 @@ class QuadraticFreeEnergyStrategyMultiOrderTernaryThreePhase
}
void computeSecondDerivativeEnergyPhaseA(
const double temperature, const std::vector<double>& c,
std::vector<double>& d2fdc2, const bool use_internal_units = true)override
std::vector<double>& d2fdc2,
const bool use_internal_units = true) override
{
(void)temperature;

Expand Down Expand Up @@ -114,7 +117,7 @@ class QuadraticFreeEnergyStrategyMultiOrderTernaryThreePhase
}
}

void preRunDiagnostics(const double temperature)override{};
void preRunDiagnostics(const double temperature) override{};


private:
Expand Down
8 changes: 5 additions & 3 deletions source/TemperatureFreeEnergyStrategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ class TemperatureFreeEnergyStrategy : public FreeEnergyStrategy

void computeSecondDerivativeEnergyPhaseL(
const double temperature, const std::vector<double>& c,
std::vector<double>& d2fdc2, const bool use_internal_units = true)override;
std::vector<double>& d2fdc2,
const bool use_internal_units = true) override;
void computeSecondDerivativeEnergyPhaseA(
const double temperature, const std::vector<double>& c,
std::vector<double>& d2fdc2, const bool use_internal_units = true)override;
std::vector<double>& d2fdc2,
const bool use_internal_units = true) override;
void computeSecondDerivativeEnergyPhaseB(
const double temperature, const std::vector<double>& c,
std::vector<double>& d2fdc2, const bool use_internal_units = true);
void preRunDiagnostics(const double temperature)override{};
void preRunDiagnostics(const double temperature) override{};

private:
double d_latent_heat;
Expand Down

0 comments on commit 37995d5

Please sign in to comment.