ComputationalRadiationPhysics / picongpu

Performance-Portable Particle-in-Cell Simulations for the Exascale Era :sparkles:
https://picongpu.readthedocs.io
Other
710 stars 218 forks source link

Refactor atomic physics debug #5199

Closed BrianMarre closed 2 weeks ago

BrianMarre commented 3 weeks ago

refactor of the debug printing options of AtomicPhysics(FLYonPIC) to allow selectively activating debug prints depending on the sub-loop of the atomicPhysics stage.

This PR prepares the implementation of energy conservation for field ionization.

ATTENTION: This PR will break setups using a custom atomicPhysics_Debug.param-file. To Update them add the following,

namespace picongpu::atomicPhysics::debug::kernel::recordSuggestedChanges
{
    //! @attention only useful if using serial backend, no output unless compiling for cpu backend
    constexpr bool PRINT_DEBUG_TO_CONSOLE = false;
} // namespace picongpu::atomicPhysics::debug::kernel::recordSuggestedChanges

ci: picongpu

BrianMarre commented 2 weeks ago

@chillenzer ready for review