We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b26b1ff commit 7f53cf7Copy full SHA for 7f53cf7
include/picongpu/plugins/openPMD/WriteSpecies.hpp
@@ -361,14 +361,12 @@ namespace picongpu
361
{
362
case WriteSpeciesStrategy::ADIOS:
363
364
- using type = StrategyADIOS<openPMDFrameType, RunParameters_T>;
365
- strategy = std::unique_ptr<AStrategy>(dynamic_cast<AStrategy*>(new type));
+ strategy = std::make_unique<StrategyADIOS<openPMDFrameType, RunParameters_T>>();
366
break;
367
}
368
case WriteSpeciesStrategy::HDF5:
369
370
- using type = StrategyHDF5<openPMDFrameType, RunParameters_T>;
371
+ strategy = std::make_unique<StrategyHDF5<openPMDFrameType, RunParameters_T>>();
372
373
374
0 commit comments