Skip to content

Commit 7f53cf7

Browse files
Rewrite IO with LLAMA
1 parent b26b1ff commit 7f53cf7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/picongpu/plugins/openPMD/WriteSpecies.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,12 @@ namespace picongpu
361361
{
362362
case WriteSpeciesStrategy::ADIOS:
363363
{
364-
using type = StrategyADIOS<openPMDFrameType, RunParameters_T>;
365-
strategy = std::unique_ptr<AStrategy>(dynamic_cast<AStrategy*>(new type));
364+
strategy = std::make_unique<StrategyADIOS<openPMDFrameType, RunParameters_T>>();
366365
break;
367366
}
368367
case WriteSpeciesStrategy::HDF5:
369368
{
370-
using type = StrategyHDF5<openPMDFrameType, RunParameters_T>;
371-
strategy = std::unique_ptr<AStrategy>(dynamic_cast<AStrategy*>(new type));
369+
strategy = std::make_unique<StrategyHDF5<openPMDFrameType, RunParameters_T>>();
372370
break;
373371
}
374372
}

0 commit comments

Comments
 (0)