summaryrefslogtreecommitdiff
path: root/modules/core/c++/particle/schema.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-07-15 15:39:41 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-07-15 15:39:41 +0200
commit44cb41bbe6128f2c7ca92b06e2267d52e3121721 (patch)
tree089220c108f12c65abe880f448085f2705c3606a /modules/core/c++/particle/schema.hpp
parent0dcc910d33832e2c5c29a6317467f85accf77aac (diff)
downloadlibs-lbm-44cb41bbe6128f2c7ca92b06e2267d52e3121721.tar.gz
Preping two way
Diffstat (limited to 'modules/core/c++/particle/schema.hpp')
-rw-r--r--modules/core/c++/particle/schema.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/c++/particle/schema.hpp b/modules/core/c++/particle/schema.hpp
index 714a16f..221137a 100644
--- a/modules/core/c++/particle/schema.hpp
+++ b/modules/core/c++/particle/schema.hpp
@@ -52,7 +52,7 @@ using Particle = Struct<
// Member<Array<Float64,D>, "mask">,
>;
-template<typename T, uint64_t D, typename CollisionType = coll::Spheroid<T>>
+template<typename T, uint64_t D, uint64_t PartAmount, typename CollisionType = coll::Spheroid<T>>
using ParticleGroup = Struct<
Member<Array<T,D>, "mask">,
Member<FixedArray<typename CollisionType::Schema,1u>, "collision">,
@@ -61,7 +61,7 @@ using ParticleGroup = Struct<
Member<FixedArray<Scalar<T>,1u>, "density">,
Member<FixedArray<Vector<T,D>,1u>, "center_of_mass">,
Member<FixedArray<Scalar<T>,1u>, "total_mass">,
- Member<Array<Particle<T,D>,1u>, "particles">
+ Member<FixedArray<Particle<T,D>,PartAmount>, "particles">
>;
}
}