SAnsell / CombLayer

MCNP(X) project builder using C++
GNU General Public License v3.0
13 stars 13 forks source link

Set MCNP version in DefUnitsESS #55

Closed kbat closed 7 years ago

kbat commented 7 years ago

I suggest to move the line SimPtr->setMCNPversion(IParam.getValue<int>("mcnp")); from mainSystem::createSimulation into the main function after calling mainSystem::setDefUnits since otherwise the MCNP version can't be set in that method.

I need it since in the ButterflyEngineering branch I would like to call A.setOption("mcnp", "10") if the geometry is being generated with -defaultConfig neutronics arguments.

SAnsell commented 7 years ago

This has been implemented but differently -- I believe that I have added the same functionality but by putting it into