picongpu icon indicating copy to clipboard operation
picongpu copied to clipboard

use std::numbers when transitioning to c++20

Open PrometheusPi opened this issue 1 year ago • 1 comments

C++ 20 introduces the library numbers https://en.cppreference.com/w/cpp/header/numbers. What do you think of using it to replace some hard coded values in https://github.com/ComputationalRadiationPhysics/picongpu/blob/dev/include/picongpu/param/physicalConstants.param (Sadly, it does not introduce physics constants.)

PrometheusPi avatar Jun 09 '23 09:06 PrometheusPi

sounds like a great idea, especially the sqrt_3 and pi will be really helpful

BrianMarre avatar Jun 09 '23 12:06 BrianMarre