Skip to content
Snippets Groups Projects
Commit 712a6061 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm unnecessary 'static' from units

parent f28855b3
No related branches found
No related tags found
1 merge request!1923Remove or replace incorrect 'static' keyword for global variables
...@@ -30,24 +30,24 @@ ...@@ -30,24 +30,24 @@
namespace Units { namespace Units {
// Length // Length
static constexpr double nanometer = 1.; //!< Internal unit for lengths constexpr double nanometer = 1.; //!< Internal unit for lengths
static constexpr double angstrom = 1.e-1 * nanometer; constexpr double angstrom = 1.e-1 * nanometer;
static constexpr double micrometer = 1e3 * nanometer; constexpr double micrometer = 1e3 * nanometer;
static constexpr double millimeter = 1e6 * nanometer; constexpr double millimeter = 1e6 * nanometer;
// Symbols for length // Symbols for length
static constexpr double nm = nanometer; constexpr double nm = nanometer;
// Area (cross-section) // Area (cross-section)
static constexpr double nm2 = nanometer * nanometer; constexpr double nm2 = nanometer * nanometer;
// Angle // Angle
static constexpr double rad = 1.; //!< Radian, internal unit for angles constexpr double rad = 1.; //!< Radian, internal unit for angles
static constexpr double deg = (3.1415926535897932 / 180.0) * rad; constexpr double deg = (3.1415926535897932 / 180.0) * rad;
// Magnetic field // Magnetic field
static constexpr double tesla = 1.; //!< Internal unit for magnetic fields constexpr double tesla = 1.; //!< Internal unit for magnetic fields
static constexpr double gauss = 1e-4; constexpr double gauss = 1e-4;
// Converters // Converters
......
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