Skip to content

Commit

Permalink
Fixed clang formatting
Browse files Browse the repository at this point in the history
In GammaCalculator and ScalarFieldLevel, which the auto
tests for pushing to the repo complained about.
the-florist committed May 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c7f5885 commit 802672f
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Examples/KerrBH/KerrBHLevel.cpp
Original file line number Diff line number Diff line change
@@ -47,17 +47,17 @@ void KerrBHLevel::initialData()
m_state_new, m_state_new, INCLUDE_GHOST_CELLS);

fillAllGhosts();
if (m_p.max_spatial_derivative_order == FourthOrderDerivatives)
if (m_p.max_spatial_derivative_order == 4)
{
GammaCalculator<FourthOrderDerivatives> my_gamma_calculator(m_dx);
BoxLoops::loop(my_gamma_calculator, m_state_new, m_state_new,
EXCLUDE_GHOST_CELLS);
EXCLUDE_GHOST_CELLS);
}
else if (m_p.max_spatial_derivative_order == SixthOrderDerivatives)
else if (m_p.max_spatial_derivative_order == 6)
{
GammaCalculator<SixthOrderDerivatives> my_gamma_calculator(m_dx);
BoxLoops::loop(my_gamma_calculator, m_state_new, m_state_new,
EXCLUDE_GHOST_CELLS);
EXCLUDE_GHOST_CELLS);
}

#ifdef USE_AHFINDER
8 changes: 4 additions & 4 deletions Examples/ScalarField/ScalarFieldLevel.cpp
Original file line number Diff line number Diff line change
@@ -60,17 +60,17 @@ void ScalarFieldLevel::initialData()
m_state_new, m_state_new, INCLUDE_GHOST_CELLS);

fillAllGhosts();
if (m_p.max_spatial_derivative_order == FourthOrderDerivatives)
if (m_p.max_spatial_derivative_order == 4)
{
GammaCalculator<FourthOrderDerivatives> my_gamma_calculator(m_dx);
BoxLoops::loop(my_gamma_calculator, m_state_new, m_state_new,
EXCLUDE_GHOST_CELLS);
EXCLUDE_GHOST_CELLS);
}
else if (m_p.max_spatial_derivative_order == SixthOrderDerivatives)
else if (m_p.max_spatial_derivative_order == 6)
{
GammaCalculator<SixthOrderDerivatives> my_gamma_calculator(m_dx);
BoxLoops::loop(my_gamma_calculator, m_state_new, m_state_new,
EXCLUDE_GHOST_CELLS);
EXCLUDE_GHOST_CELLS);
}
}

2 changes: 1 addition & 1 deletion Examples/ScalarField/params.txt
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
verbosity = 0

# location / naming of output files
# output_path = "/nfs/st01/hpc-gr-epss/eaf49/dump" # Main path for all files. Must exist!
output_path = "/nfs/st01/hpc-gr-epss/eaf49/dump" # Main path for all files. Must exist!
chk_prefix = ScalarField_
plot_prefix = ScalarFieldp_
# restart_file = ScalarField_000000.3d.hdf5
3 changes: 1 addition & 2 deletions Source/CCZ4/GammaCalculator.hpp
Original file line number Diff line number Diff line change
@@ -16,8 +16,7 @@
#include "VarsTools.hpp"
#include "simd.hpp"

template<class deriv_t = FourthOrderDerivatives>
class GammaCalculator
template<class deriv_t = FourthOrderDerivatives> class GammaCalculator
{
// Only variables needed are metric
template <class data_t> struct Vars

0 comments on commit 802672f

Please sign in to comment.