aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2020-12-11 14:15:12 -0800
committerGravatar GitHub <noreply@github.com> 2020-12-11 14:15:12 -0800
commitaee2ed2c75560bfc5bc29b51ad9cb621166ec834 (patch)
treeffd8c0d65106dfd3bea43c217156c3fdf423c939 /Source/WarpX.cpp
parent35f3a124414f99139818e34347b73c84d7e31400 (diff)
downloadWarpX-aee2ed2c75560bfc5bc29b51ad9cb621166ec834.tar.gz
WarpX-aee2ed2c75560bfc5bc29b51ad9cb621166ec834.tar.zst
WarpX-aee2ed2c75560bfc5bc29b51ad9cb621166ec834.zip
Code-Alignment Leftovers (#1570)
Fix some code alignment leftovers.
Diffstat (limited to '')
-rw-r--r--Source/WarpX.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 6e9c05427..13762bd80 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -1136,13 +1136,13 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm
spectral_solver_fp[lev]->InitFilter(filter_npass_each_dir, use_filter_compensation);
}
# else
- if ( fft_periodic_single_box == false ) {
- realspace_ba.grow(ngE); // add guard cells
- }
- bool const pml_flag_false=false;
- spectral_solver_fp[lev] = std::make_unique<SpectralSolver>( realspace_ba, dm,
- nox_fft, noy_fft, noz_fft, do_nodal, m_v_galilean, m_v_comoving, dx_vect, dt[lev],
- pml_flag_false, fft_periodic_single_box, update_with_rho, fft_do_time_averaging );
+ if ( fft_periodic_single_box == false ) {
+ realspace_ba.grow(ngE); // add guard cells
+ }
+ bool const pml_flag_false = false;
+ spectral_solver_fp[lev] = std::make_unique<SpectralSolver>( realspace_ba, dm,
+ nox_fft, noy_fft, noz_fft, do_nodal, m_v_galilean, m_v_comoving, dx_vect, dt[lev],
+ pml_flag_false, fft_periodic_single_box, update_with_rho, fft_do_time_averaging );
# endif
#endif
} // MaxwellSolverAlgo::PSATD
@@ -1264,10 +1264,10 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm
spectral_solver_cp[lev]->InitFilter(filter_npass_each_dir, use_filter_compensation);
}
# else
- c_realspace_ba.grow(ngE); // add guard cells
- spectral_solver_cp[lev] = std::make_unique<SpectralSolver>( c_realspace_ba, dm,
- nox_fft, noy_fft, noz_fft, do_nodal, m_v_galilean, m_v_comoving, cdx_vect, dt[lev],
- pml_flag_false, fft_periodic_single_box, update_with_rho, fft_do_time_averaging );
+ c_realspace_ba.grow(ngE); // add guard cells
+ spectral_solver_cp[lev] = std::make_unique<SpectralSolver>( c_realspace_ba, dm,
+ nox_fft, noy_fft, noz_fft, do_nodal, m_v_galilean, m_v_comoving, cdx_vect, dt[lev],
+ pml_flag_false, fft_periodic_single_box, update_with_rho, fft_do_time_averaging );
# endif
#endif
} // MaxwellSolverAlgo::PSATD