diff --git a/tests/dump.cpp b/tests/dump.cpp index 627cd1bba4..d325673e75 100644 --- a/tests/dump.cpp +++ b/tests/dump.cpp @@ -27,7 +27,7 @@ using Vec = llama::DS< >; using Particle = llama::DS< llama::DE, - llama::DE, + llama::DE, llama::DE, llama::DE> >; @@ -124,8 +124,28 @@ TEST_CASE("dump.Split.AoSoA8.AoS.One.3Buffer") Particle, llama::DatumCoord<1>, llama::mapping::PreconfiguredAoSoA<8>::type, - llama::mapping::PreconfiguredSplit, llama::mapping::AoS, llama::mapping::One, true>:: + llama::mapping::PreconfiguredSplit, llama::mapping::One, llama::mapping::AoS, true>:: type, true>{arrayDomain}, "Split.AoSoA8.SoA.One.3Buffer"); } + +TEST_CASE("dump.Split.AoSoA8.AoS.One.SoA.4Buffer") +{ + // split out velocity as AoSoA8, mass into a single value, position into AoS, and the flags into SoA, makes 4 + // buffers + dump( + llama::mapping::Split< + ArrayDomain, + Particle, + llama::DatumCoord<1>, + llama::mapping::PreconfiguredAoSoA<8>::type, + llama::mapping::PreconfiguredSplit< + llama::DatumCoord<1>, + llama::mapping::One, + llama::mapping:: + PreconfiguredSplit, llama::mapping::AoS, llama::mapping::SoA, true>::type, + true>::type, + true>{arrayDomain}, + "Split.AoSoA8.AoS.One.SoA.4Buffer"); +} diff --git a/tests/splitmapping.cpp b/tests/splitmapping.cpp index 1ec601451b..2d8d4b4907 100644 --- a/tests/splitmapping.cpp +++ b/tests/splitmapping.cpp @@ -101,5 +101,5 @@ TEST_CASE("Split.AoSoA8.AoS.One.SoA.4Buffer") CHECK(mapping.getBlobNrAndOffset<3, 2>({31}) == llama::NrAndOffset{3, 95}); CHECK(mapping.getBlobNrAndOffset<3, 3>({31}) == llama::NrAndOffset{3, 127}); - std::ofstream{"Split.AoSoA8.AoS.One.SoA.4Buffer.svg"} << llama::toSvg(mapping); + // std::ofstream{"Split.AoSoA8.AoS.One.SoA.4Buffer.svg"} << llama::toSvg(mapping); }