Skip to content

Commit 3e4e71e

Browse files
refactor Seq meta algorithms
1 parent 471a216 commit 3e4e71e

File tree

59 files changed

+97
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+97
-213
lines changed

include/picongpu/fields/incidentField/Solver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <pmacc/mappings/kernel/AreaMapping.hpp>
3636
#include <pmacc/math/Vector.hpp>
3737
#include <pmacc/meta/ForEach.hpp>
38-
#include <pmacc/meta/conversion/MakeSeq.hpp>
38+
#include <pmacc/meta/conversion/Seq.hpp>
3939
#include <pmacc/traits/IsBaseTemplateOf.hpp>
4040

4141
#include <algorithm>

include/picongpu/fields/incidentField/Traits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "picongpu/fields/MaxwellSolver/DispersionRelationSolver.hpp"
2525

2626
#include <pmacc/algorithms/math/defines/pi.hpp>
27-
#include <pmacc/meta/conversion/MakeSeq.hpp>
27+
#include <pmacc/meta/conversion/Seq.hpp>
2828
#include <pmacc/meta/conversion/Unique.hpp>
2929

3030
#include <cstdint>

include/picongpu/param/fileOutput.param

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#pragma once
2222

23-
#include <pmacc/meta/conversion/MakeSeq.hpp>
23+
#include <pmacc/meta/conversion/Seq.hpp>
2424

2525
/* some forward declarations we need */
2626
#include "picongpu/fields/Fields.def"

include/picongpu/param/speciesAttributes.param

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include <pmacc/identifier/alias.hpp>
4141
#include <pmacc/identifier/identifier.hpp>
4242
#include <pmacc/identifier/value_identifier.hpp>
43-
#include <pmacc/meta/conversion/MakeSeq.hpp>
43+
#include <pmacc/meta/conversion/Seq.hpp>
4444
#include <pmacc/particles/IdProvider.def>
4545
#include <pmacc/particles/Identifier.hpp>
4646

include/picongpu/param/speciesDefinition.param

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
#include <pmacc/identifier/value_identifier.hpp>
4040
#include <pmacc/meta/String.hpp>
41-
#include <pmacc/meta/conversion/MakeSeq.hpp>
41+
#include <pmacc/meta/conversion/Seq.hpp>
4242
#include <pmacc/particles/Identifier.hpp>
4343
#include <pmacc/particles/traits/FilterByFlag.hpp>
4444

include/picongpu/particles/Manipulate.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "picongpu/particles/manipulators/manipulators.def"
2626

2727
#include <pmacc/meta/ForEach.hpp>
28-
#include <pmacc/meta/conversion/ToSeq.hpp>
28+
#include <pmacc/meta/conversion/Seq.hpp>
2929
#include <pmacc/particles/algorithm/CallForEach.hpp>
3030
#include <pmacc/particles/meta/FindByNameOrType.hpp>
3131

@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <pmacc/meta/accessors/First.hpp>
2929
#include <pmacc/meta/accessors/Second.hpp>
3030
#include <pmacc/meta/conversion/ApplyGuard.hpp>
31-
#include <pmacc/meta/conversion/ToSeq.hpp>
31+
#include <pmacc/meta/conversion/Seq.hpp>
3232

3333

3434
namespace picongpu
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include "picongpu/particles/traits/GetShape.hpp"
4242
#include "picongpu/plugins/misc/SpeciesFilter.hpp"
4343

44-
#include <pmacc/meta/conversion/ToSeq.hpp>
44+
#include <pmacc/meta/conversion/Seq.hpp>
4545

4646
#include <boost/mpl/placeholders.hpp>
4747

@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "picongpu/particles/traits/SpeciesEligibleForSolver.hpp"
2323

24-
#include <pmacc/meta/conversion/ToSeq.hpp>
24+
#include <pmacc/meta/conversion/Seq.hpp>
2525

2626
#include <boost/mpl/apply.hpp>
2727

@@ -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]"};

0 commit comments

Comments
 (0)