exasmr/openmc

Photon transport does not work

Opened this issue · 0 comments

After I added the fixed source mode to the code, the neutrons got the correct tallies count, but the photon part was 0.

When I start photon transport, I encounter an assertion." assert(data::elements_size < = PHOTON_XS_SIZE);"
Then I ignored it and uncommented the code in physics.cpp,
// Create secondary photons if (settings::photon_transport) { p.stream_ = STREAM_PHOTON; sample_secondary_photons(p, i_nuclide); p.stream_ = STREAM_TRACKING; }
After adding settings::delayed_photon_scaling and settings::photon_transport on the device side, there are still some errors.

I see a lot of codes about photons on the device side, can photon transport be used?