Skip to content

Commit 00c4b77

Browse files
author
Heikman
committed
rename runtime twistVectorAxes to twistComponents
1 parent 0b82a68 commit 00c4b77

5 files changed

Lines changed: 12 additions & 18 deletions

File tree

src/libPMacc/include/cuSTL/cursor/accessor/TwistAxesAccessor.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#pragma once
2424

2525
#include "types.h"
26-
#include "math/vector/tools/twistVectorAxes.hpp"
26+
#include "math/vector/twistComponents.hpp"
2727

2828
namespace PMacc
2929
{
@@ -33,7 +33,7 @@ namespace cursor
3333
template<typename TCursor, typename Axes>
3434
struct TwistAxesAccessor
3535
{
36-
typedef typename math::tools::result_of::TwistVectorAxes<
36+
typedef typename math::result_of::TwistComponents<
3737
Axes, typename TCursor::pureType>::type type;
3838

3939
/** Returns a reference to the result of '*cursor' (with twisted axes).
@@ -43,7 +43,7 @@ struct TwistAxesAccessor
4343
*/
4444
HDINLINE type operator()(TCursor& cursor)
4545
{
46-
return math::tools::twistVectorAxes<Axes>(*cursor);
46+
return math::twistComponents<Axes>(*cursor);
4747
}
4848

4949
///\todo: implement const method here with a const TCursor& argument and 'type' as return type.

src/libPMacc/include/math/vector/tools/twistVectorAxes.hpp renamed to src/libPMacc/include/math/vector/twistComponents.hpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,23 @@ namespace PMacc
2929
{
3030
namespace math
3131
{
32-
namespace tools
33-
{
3432

3533
namespace result_of
3634
{
3735

3836
template<typename T_Axes,
3937
typename T_Vector>
40-
struct TwistVectorAxes
38+
struct TwistComponents
4139
{
42-
typedef typename TwistVectorAxes<T_Axes,typename T_Vector::This>::type type;
40+
typedef typename TwistComponents<T_Axes,typename T_Vector::This>::type type;
4341
};
4442

4543
template<typename T_Axes,
4644
typename T_Type, int T_Dim,
4745
typename T_Accessor,
4846
typename T_Navigator,
4947
template <typename, int> class T_Storage>
50-
struct TwistVectorAxes<T_Axes,math::Vector<T_Type,T_Dim,T_Accessor,T_Navigator,T_Storage> >
48+
struct TwistComponents<T_Axes,math::Vector<T_Type,T_Dim,T_Accessor,T_Navigator,T_Storage> >
5149
{
5250
typedef math::Vector<T_Type, T_Dim, T_Accessor,
5351
math::StackedNavigator<T_Navigator, math::PermutedNavigator<T_Axes> >,T_Storage >& type;
@@ -69,15 +67,14 @@ struct TwistVectorAxes<T_Axes,math::Vector<T_Type,T_Dim,T_Accessor,T_Navigator,T
6967
*/
7068
template<typename T_Axes, typename T_Vector>
7169
HDINLINE
72-
typename result_of::TwistVectorAxes<T_Axes, T_Vector>::type
73-
twistVectorAxes(T_Vector& vector)
70+
typename result_of::TwistComponents<T_Axes, T_Vector>::type
71+
twistComponents(T_Vector& vector)
7472
{
7573
/* The reinterpret_cast is valid because the target type is the same as the
7674
* input type except its navigator policy which does not occupy any memory though.
7775
*/
78-
return reinterpret_cast<typename result_of::TwistVectorAxes<T_Axes, T_Vector>::type>(vector);
76+
return reinterpret_cast<typename result_of::TwistComponents<T_Axes, T_Vector>::type>(vector);
7977
}
8078

81-
} // tools
8279
} // math
8380
} // PMacc

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class DirSplitting : private ConditionCheck<fieldSolver::FieldSolver>
103103
-GuardDim().toRT()));
104104

105105
using namespace cursor::tools;
106-
using namespace PMacc::math::tools;
106+
using namespace PMacc::math;
107107

108108
PMacc::math::Size_t<3> gridSize = fieldE_coreBorder.size();
109109

@@ -117,15 +117,15 @@ class DirSplitting : private ConditionCheck<fieldSolver::FieldSolver>
117117
typedef PMacc::math::CT::Int<1,2,0> Orientation_Y;
118118
propagate(twistVectorFieldAxes<Orientation_Y>(fieldE_coreBorder.origin()),
119119
twistVectorFieldAxes<Orientation_Y>(fieldB_coreBorder.origin()),
120-
twistVectorAxes<Orientation_Y>(gridSize));
120+
twistComponents<Orientation_Y>(gridSize));
121121

122122
__setTransactionEvent(fieldE.asyncCommunication(__getTransactionEvent()));
123123
__setTransactionEvent(fieldB.asyncCommunication(__getTransactionEvent()));
124124

125125
typedef PMacc::math::CT::Int<2,0,1> Orientation_Z;
126126
propagate(twistVectorFieldAxes<Orientation_Z>(fieldE_coreBorder.origin()),
127127
twistVectorFieldAxes<Orientation_Z>(fieldB_coreBorder.origin()),
128-
twistVectorAxes<Orientation_Z>(gridSize));
128+
twistComponents<Orientation_Z>(gridSize));
129129

130130
if (laserProfile::INIT_TIME > float_X(0.0))
131131
dc.getData<FieldE > (FieldE::getName(), true).laserManipulation(currentStep);

src/picongpu/include/plugins/SliceFieldPrinter.tpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "cuSTL/algorithm/host/Foreach.hpp"
3535
#include "lambda/Expression.hpp"
3636
#include "SliceFieldPrinter.hpp"
37-
#include <math/vector/tools/twistVectorAxes.hpp>
3837
#include <sstream>
3938

4039
namespace picongpu
@@ -124,7 +123,6 @@ template<typename TField>
124123
void SliceFieldPrinter<Field>::printSlice(const TField& field, int nAxis, float slicePoint, std::string filename)
125124
{
126125
namespace vec = PMacc::math;
127-
using namespace vec::tools;
128126

129127
PMacc::GridController<simDim>& con = PMacc::Environment<simDim>::get().GridController();
130128
vec::Size_t<simDim> gpuDim = (vec::Size_t<simDim>)con.getGpuNodes();

src/picongpu/include/plugins/SliceFieldPrinterMulti.tpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include "cuSTL/algorithm/host/Foreach.hpp"
3737
#include "lambda/Expression.hpp"
3838
#include "SliceFieldPrinterMulti.hpp"
39-
#include <math/vector/tools/twistVectorAxes.hpp>
4039
#include <sstream>
4140

4241
namespace picongpu

0 commit comments

Comments
 (0)