Skip to content

Commit 1326f6f

Browse files
Merge pull request #4516 from bernhardmgruber/mp11_seq
Replace mpl by mp11 (part 1.5/2)
2 parents 5ff83cd + 2970967 commit 1326f6f

File tree

18 files changed

+49
-135
lines changed

18 files changed

+49
-135
lines changed

include/picongpu/particles/Manipulate.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ namespace picongpu
134134
uint32_t T_area = CORE + BORDER>
135135
inline void manipulate(uint32_t const currentStep)
136136
{
137-
using SpeciesSeq = typename pmacc::ToSeq<T_Species>::type;
137+
using SpeciesSeq = pmacc::ToSeq<T_Species>;
138138
using Functor
139139
= Manipulate<T_Manipulator, boost::mpl::_1, T_Filter, std::integral_constant<uint32_t, T_area>>;
140140
pmacc::meta::ForEach<SpeciesSeq, Functor> forEach;
@@ -155,7 +155,7 @@ namespace picongpu
155155
typename T_Filter = filter::All>
156156
inline void manipulate(uint32_t const currentStep, T_AreaMapperFactory const& areaMapperFactory)
157157
{
158-
using SpeciesSeq = typename pmacc::ToSeq<T_Species>::type;
158+
using SpeciesSeq = pmacc::ToSeq<T_Species>;
159159
using Functor = Manipulate<T_Manipulator, boost::mpl::_1, T_Filter>;
160160
pmacc::meta::ForEach<SpeciesSeq, Functor> forEach;
161161
forEach(currentStep, areaMapperFactory);

include/picongpu/particles/collision/Collider.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace picongpu
6666
{
6767
void operator()(std::shared_ptr<DeviceHeap> const& deviceHeap, uint32_t currentStep)
6868
{
69-
using SpeciesPairList = typename pmacc::ToSeq<typename T_Collider::SpeciesPairs>::type;
69+
using SpeciesPairList = pmacc::ToSeq<typename T_Collider::SpeciesPairs>;
7070
constexpr size_t numPairs = pmacc::mp_size<SpeciesPairList>::value;
7171
std::make_index_sequence<numPairs> index{};
7272
detail::CallColliderForAPair<SpeciesPairList, T_Collider, colliderId>{}(

include/picongpu/particles/particleToGrid/ComputeGridValuePerFrame.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ namespace picongpu
193193
struct CreateEligible
194194
{
195195
// wrap single arguments to sequence
196-
using SeqSpecies = typename pmacc::ToSeq<T_SeqSpecies>::type;
196+
using SeqSpecies = pmacc::ToSeq<T_SeqSpecies>;
197197
using FilteredAttribute = FilteredDerivedAttribute<T_DerivedAttribute, T_Filter>;
198198

199199
using type = typename traits::GenerateSolversIfSpeciesEligible<

include/picongpu/particles/traits/GenerateSolversIfSpeciesEligible.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace picongpu
5454
struct GenerateSolversIfSpeciesEligible
5555
{
5656
// wrap single arguments to sequence
57-
using SeqSpecies = typename pmacc::ToSeq<T_SeqSpecies>::type;
57+
using SeqSpecies = pmacc::ToSeq<T_SeqSpecies>;
5858

5959
// unspecialized solver
6060
using Solver = T_Solver;

include/picongpu/plugins/BinEnergyParticles.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ namespace picongpu
212212
// find all valid filter for the current used species
213213
template<typename T>
214214
using Op = typename particles::traits::GenerateSolversIfSpeciesEligible<T, ParticlesType>::type;
215-
using EligibleFilters =
216-
typename MakeSeqFromNestedSeq<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>::type;
215+
using EligibleFilters = pmacc::mp_flatten<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>;
217216

218217
//! periodicity of computing the particle energy
219218
plugins::multi::Option<std::string> notifyPeriod = {"period", "enable plugin [for each n-th step]"};

include/picongpu/plugins/Emittance.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ namespace picongpu
221221
// find all valid filter for the current used species
222222
template<typename T>
223223
using Op = typename particles::traits::GenerateSolversIfSpeciesEligible<T, ParticlesType>::type;
224-
using EligibleFilters =
225-
typename MakeSeqFromNestedSeq<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>::type;
224+
using EligibleFilters = pmacc::mp_flatten<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>;
226225

227226
//! periodicity of computing the particle energy
228227
plugins::multi::Option<std::string> notifyPeriod

include/picongpu/plugins/EnergyParticles.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ namespace picongpu
178178
// find all valid filter for the current used species
179179
template<typename T>
180180
using Op = typename particles::traits::GenerateSolversIfSpeciesEligible<T, ParticlesType>::type;
181-
using EligibleFilters =
182-
typename MakeSeqFromNestedSeq<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>::type;
181+
using EligibleFilters = pmacc::mp_flatten<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>;
183182

184183
//! periodicity of computing the particle energy
185184
plugins::multi::Option<std::string> notifyPeriod

include/picongpu/plugins/PhaseSpace/PhaseSpace.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ namespace picongpu
7171
// find all valid filter for the current used species
7272
template<typename T>
7373
using Op = typename particles::traits::GenerateSolversIfSpeciesEligible<T, Species>::type;
74-
using EligibleFilters =
75-
typename MakeSeqFromNestedSeq<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>::type;
74+
using EligibleFilters = pmacc::mp_flatten<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>;
7675

7776
//! periodicity of computing the particle energy
7877
plugins::multi::Option<std::string> notifyPeriod = {"period", "notify period"};

include/picongpu/plugins/PluginController.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070

7171
#include <pmacc/mappings/kernel/MappingDescription.hpp>
7272
#include <pmacc/meta/AllCombinations.hpp>
73-
#include <pmacc/meta/SeqToList.hpp>
7473

7574
#include <list>
7675
#include <memory>

include/picongpu/plugins/particleCalorimeter/ParticleCalorimeter.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ namespace picongpu
405405
// find all valid filter for the current used species
406406
template<typename T>
407407
using Op = typename particles::traits::GenerateSolversIfSpeciesEligible<T, ParticlesType>::type;
408-
using EligibleFilters =
409-
typename MakeSeqFromNestedSeq<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>::type;
408+
using EligibleFilters = pmacc::mp_flatten<pmacc::mp_transform<Op, particles::filter::AllParticleFilters>>;
410409

411410
//! periodicity of computing the particle energy
412411
plugins::multi::Option<std::string> notifyPeriod = {"period", "enable plugin [for each n-th step]"};

0 commit comments

Comments
 (0)