Skip to content

Commit 992e341

Browse files
github annotations
- remove spaces before `#ifdef` - fix issing empty line before EOF - DirSplitting: remove `typedef` with `using` - fix code style
1 parent da9519d commit 992e341

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

include/picongpu/fields/MaxwellSolver/DirSplitting/DirSplitting.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ namespace dirSplitting
7474
PMACC_CASSERT_MSG(DirectionSplitting_use_cubic_cells____check_your_gridConfig_param_file,
7575
SI::CELL_HEIGHT_SI == SI::CELL_WIDTH_SI &&
7676
(sizeof(T_Dummy) != 0));
77-
#if (SIMDIM == DIM3)
77+
#if (SIMDIM == DIM3)
7878
PMACC_CASSERT_MSG(DirectionSplitting_use_cubic_cells____check_your_gridConfig_param_file,
7979
SI::CELL_DEPTH_SI == SI::CELL_WIDTH_SI &&
8080
(sizeof(T_Dummy) != 0));
81-
#endif
81+
#endif
8282
};
8383
} // namespace dirSplitting
8484

@@ -95,7 +95,7 @@ namespace dirSplitting
9595
auto gridSizeTwisted = twistComponents<OrientationTwist>(gridSize);
9696

9797
/* twist components of the supercell */
98-
typedef typename CT::TwistComponents<SuperCellSize, OrientationTwist>::type BlockDim;
98+
using BlockDim = typename CT::TwistComponents<SuperCellSize, OrientationTwist>::type;
9999

100100
algorithm::kernel::ForeachBlock<BlockDim> foreach;
101101
foreach(zone::SphericZone<3>(pmacc::math::Size_t<3>(BlockDim::x::value, gridSizeTwisted.y(), gridSizeTwisted.z())),
@@ -112,7 +112,7 @@ namespace dirSplitting
112112

113113
void update_beforeCurrent(uint32_t currentStep) const
114114
{
115-
typedef SuperCellSize GuardDim;
115+
using GuardDim = SuperCellSize;
116116

117117
DataConnector &dc = Environment<>::get().DataConnector();
118118

@@ -134,7 +134,7 @@ namespace dirSplitting
134134
pmacc::math::Size_t<3> gridSize = fieldE_coreBorder.size();
135135

136136

137-
typedef pmacc::math::CT::Int<0,1,2> Orientation_X;
137+
using Orientation_X = pmacc::math::CT::Int<0,1,2>;
138138
propagate<Orientation_X>(
139139
fieldE_coreBorder.origin(),
140140
fieldB_coreBorder.origin(),
@@ -143,7 +143,7 @@ namespace dirSplitting
143143
__setTransactionEvent(fieldE->asyncCommunication(__getTransactionEvent()));
144144
__setTransactionEvent(fieldB->asyncCommunication(__getTransactionEvent()));
145145

146-
typedef pmacc::math::CT::Int<1,2,0> Orientation_Y;
146+
using Orientation_Y = pmacc::math::CT::Int<1,2,0>;
147147
propagate<Orientation_Y>(
148148
fieldE_coreBorder.origin(),
149149
fieldB_coreBorder.origin(),
@@ -152,7 +152,7 @@ namespace dirSplitting
152152
__setTransactionEvent(fieldE->asyncCommunication(__getTransactionEvent()));
153153
__setTransactionEvent(fieldB->asyncCommunication(__getTransactionEvent()));
154154

155-
typedef pmacc::math::CT::Int<2,0,1> Orientation_Z;
155+
using Orientation_Z = pmacc::math::CT::Int<2,0,1>;
156156
propagate<Orientation_Z>(
157157
fieldE_coreBorder.origin(),
158158
fieldB_coreBorder.origin(),

include/picongpu/fields/MaxwellSolver/Lehe/Curl.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,4 +336,3 @@ namespace lehe
336336
} // namespace maxwellSolver
337337
} // namespace fields
338338
} // namespace picongpu
339-

include/picongpu/param/fieldSolver.param

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ namespace fields
6363
using Solver = maxwellSolver::Yee< CurrentInterpolation >;
6464

6565
} // namespace fields
66-
} // namespace picongpu
66+
} // namespace picongpu

include/picongpu/traits/FieldPosition.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
#include "picongpu/simulation_defines.hpp"
2323

24+
2425
namespace picongpu
2526
{
26-
2727
namespace traits
2828
{
2929
template<
@@ -33,6 +33,5 @@ namespace traits
3333
>
3434
struct FieldPosition;
3535

36-
} //namespace traits
37-
38-
}// namespace picongpu
36+
} // namespace traits
37+
} // namespace picongpu

0 commit comments

Comments
 (0)