aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp8
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp
index 946d938c7..e396efe12 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmFirstOrder.cpp
@@ -53,10 +53,10 @@ PsatdAlgorithmFirstOrder::pushSpectralFields (SpectralFieldData& f) const
{
const bool div_cleaning = m_div_cleaning;
- const bool J_constant = (m_J_in_time == JInTime::Constant) ? true : false;
- const bool J_linear = (m_J_in_time == JInTime::Linear ) ? true : false;
- const bool rho_constant = (m_rho_in_time == RhoInTime::Constant) ? true : false;
- const bool rho_linear = (m_rho_in_time == RhoInTime::Linear ) ? true : false;
+ const bool J_constant = (m_J_in_time == JInTime::Constant);
+ const bool J_linear = (m_J_in_time == JInTime::Linear);
+ const bool rho_constant = (m_rho_in_time == RhoInTime::Constant);
+ const bool rho_linear = (m_rho_in_time == RhoInTime::Linear);
const amrex::Real dt = m_dt;
const amrex::Real dt2 = dt*dt;
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
index f6b3460e2..32825155f 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
@@ -82,7 +82,7 @@ PsatdAlgorithmRZ::pushSpectralFields(SpectralFieldDataRZ & f)
const bool update_with_rho = m_update_with_rho;
const bool time_averaging = m_time_averaging;
- const bool J_linear = (m_J_in_time == JInTime::Linear) ? true : false;
+ const bool J_linear = (m_J_in_time == JInTime::Linear);
const bool dive_cleaning = m_dive_cleaning;
const bool divb_cleaning = m_divb_cleaning;
@@ -337,7 +337,7 @@ PsatdAlgorithmRZ::pushSpectralFields(SpectralFieldDataRZ & f)
void PsatdAlgorithmRZ::InitializeSpectralCoefficients (SpectralFieldDataRZ const & f)
{
const bool time_averaging = m_time_averaging;
- const bool J_linear = (m_J_in_time == JInTime::Linear) ? true : false;
+ const bool J_linear = (m_J_in_time == JInTime::Linear);
// Fill them with the right values:
// Loop over boxes and allocate the corresponding coefficients