IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 98d41a9a authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Alan Coleman
Browse files

adapt to new Pythia rndmPtr interface

parent 452894cf
No related branches found
No related tags found
1 merge request!593Pythia 8 310
Pipeline #12470 passed
This commit is part of merge request !593. Comments created here will be created in the context of that merge request.
......@@ -33,8 +33,7 @@ namespace corsika::pythia8 {
// run this only once during construction
// link random number generator in pythia to CORSIKA8
Pythia8::RndmEngine* rndm = new corsika::pythia8::Random();
Pythia8::Pythia::setRndmEnginePtr(rndm);
Pythia8::Pythia::setRndmEnginePtr(std::make_shared<corsika::pythia8::Random>());
Pythia8::Pythia::readString("Next:numberShowInfo = 0");
Pythia8::Pythia::readString("Next:numberShowProcess = 0");
......
......@@ -33,7 +33,7 @@ namespace corsika::pythia8 {
: print_listing_(print_listing)
, pythiaMain_{CORSIKA_Pythia8_XML_DIR, false}
, pythiaColl_{CORSIKA_Pythia8_XML_DIR, false} {
Pythia8::RndmEngine* rndm = new corsika::pythia8::Random();
auto rndm = std::make_shared<corsika::pythia8::Random>();
pythiaColl_.setRndmEnginePtr(rndm);
pythiaMain_.setRndmEnginePtr(rndm);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment