Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
712a6061
Commit
712a6061
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm unnecessary 'static' from units
parent
f28855b3
No related branches found
No related tags found
1 merge request
!1923
Remove or replace incorrect 'static' keyword for global variables
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Base/Const/Units.h
+10
-10
10 additions, 10 deletions
Base/Const/Units.h
with
10 additions
and
10 deletions
Base/Const/Units.h
+
10
−
10
View file @
712a6061
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment