Skip to content

Commit f16b03e

Browse files
committed
Merge branch 'remove-space-in-literal-defintions' into 'master'
remove non-standard space in literal definitions See merge request npneq/inq!1275
2 parents 0b5baa6 + 376d3f8 commit f16b03e

5 files changed

Lines changed: 32 additions & 32 deletions

File tree

src/magnitude/chirp.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ifndef INQ__MAGNITUDE__CHIRP
44
#define INQ__MAGNITUDE__CHIRP
55

6-
// Copyright (C) 2019-2023 Lawrence Livermore National Security, LLC., Xavier Andrade, Alfredo A. Correa
6+
// Copyright (C) 2019-2025 Lawrence Livermore National Security, LLC., Xavier Andrade, Alfredo A. Correa
77
//
88
// This Source Code Form is subject to the terms of the Mozilla Public
99
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -18,15 +18,15 @@ namespace magnitude {
1818

1919
struct chirp;
2020

21-
auto operator "" _auchirp(long double val){
21+
auto operator ""_auchirp(long double val){
2222
return inq::quantity<chirp>::from_atomic_units(val);
2323
}
2424

25-
auto operator "" _invfs2(long double val){
25+
auto operator ""_invfs2(long double val){
2626
return inq::quantity<chirp>::from_atomic_units(val/ ((1.0_fs).in_atomic_units() * (1.0_fs).in_atomic_units() ) );
2727
}
2828

29-
auto operator "" _invps2(long double val){
29+
auto operator ""_invps2(long double val){
3030
return inq::quantity<chirp>::from_atomic_units(val/ ((1.0_ps).in_atomic_units() * (1.0_ps).in_atomic_units() ) );
3131
}
3232

src/magnitude/energy.hpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,55 +18,55 @@ namespace magnitude {
1818

1919
struct energy;
2020

21-
auto operator "" _ha(long double val){
21+
auto operator ""_ha(long double val){
2222
return inq::quantity<energy>::from_atomic_units(val);
2323
}
2424

25-
auto operator "" _Ha(long double val){
25+
auto operator ""_Ha(long double val){
2626
return inq::quantity<energy>::from_atomic_units(val);
2727
}
2828

29-
auto operator "" _hartree(long double val){
29+
auto operator ""_hartree(long double val){
3030
return inq::quantity<energy>::from_atomic_units(val);
3131
}
3232

33-
auto operator "" _ev(long double val){
33+
auto operator ""_ev(long double val){
3434
return inq::quantity<energy>::from_atomic_units(0.0367493221756544*val);
3535
}
3636

37-
auto operator "" _eV(long double val){
37+
auto operator ""_eV(long double val){
3838
return val*1.0_ev;
3939
}
4040

41-
auto operator "" _electronvolt(long double val){
41+
auto operator ""_electronvolt(long double val){
4242
return val*1.0_ev;
4343
}
4444

45-
auto operator "" _ry(long double val){
45+
auto operator ""_ry(long double val){
4646
return inq::quantity<energy>::from_atomic_units(0.5*val);
4747
}
4848

49-
auto operator "" _rydberg(long double val){
49+
auto operator ""_rydberg(long double val){
5050
return val*1.0_ry;
5151
}
5252

53-
auto operator "" _Ry(long double val){
53+
auto operator ""_Ry(long double val){
5454
return val*1.0_ry;
5555
}
5656

57-
auto operator "" _K(long double val){
57+
auto operator ""_K(long double val){
5858
return inq::quantity<energy>::from_atomic_units(3.16681156345556e-06*val);
5959
}
6060

61-
auto operator "" _kelvin(long double val){
61+
auto operator ""_kelvin(long double val){
6262
return val*1.0_K;
6363
}
6464

65-
auto operator "" _THz(long double val){
65+
auto operator ""_THz(long double val){
6666
return inq::quantity<energy>::from_atomic_units(0.000151982850071586*val);
6767
}
6868

69-
auto operator "" _terahertz(long double val){
69+
auto operator ""_terahertz(long double val){
7070
return val*1.0_THz;
7171
}
7272

src/magnitude/length.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ifndef INQ__MAGNITUDE__LENGTH
44
#define INQ__MAGNITUDE__LENGTH
55

6-
// Copyright (C) 2019-2023 Lawrence Livermore National Security, LLC., Xavier Andrade, Alfredo A. Correa
6+
// Copyright (C) 2019-2025 Lawrence Livermore National Security, LLC., Xavier Andrade, Alfredo A. Correa
77
//
88
// This Source Code Form is subject to the terms of the Mozilla Public
99
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -17,19 +17,19 @@ namespace magnitude {
1717

1818
struct length;
1919

20-
auto operator "" _b(long double val){
20+
auto operator ""_b(long double val){
2121
return inq::quantity<length>::from_atomic_units(val);
2222
}
2323

24-
auto operator "" _bohr(long double val){
24+
auto operator ""_bohr(long double val){
2525
return inq::quantity<length>::from_atomic_units(val);
2626
}
2727

28-
auto operator "" _angstrom(long double val){
28+
auto operator ""_angstrom(long double val){
2929
return inq::quantity<length>::from_atomic_units(1.88972612462938*val);
3030
}
3131

32-
auto operator "" _A(long double val){
32+
auto operator ""_A(long double val){
3333
return val*1.0_angstrom;
3434
}
3535

src/magnitude/magfield.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ namespace magnitude {
1010

1111
struct magfield;
1212

13-
auto operator "" _amu(long double val){
13+
auto operator ""_amu(long double val){
1414
return inq::quantity<magfield>::from_atomic_units(val);
1515
}
1616

17-
auto operator "" _AMU(long double val){
17+
auto operator ""_AMU(long double val){
1818
return inq::quantity<magfield>::from_atomic_units(val);
1919
}
2020

21-
auto operator "" _tesla(long double val){
21+
auto operator ""_tesla(long double val){
2222
return inq::quantity<magfield>::from_atomic_units(val/2.3505e+05);
2323
}
2424

25-
auto operator "" _T(long double val){
25+
auto operator ""_T(long double val){
2626
return inq::quantity<magfield>::from_atomic_units(val/2.3505e+05);
2727
}
2828

29-
auto operator "" _beV(long double val){
29+
auto operator ""_beV(long double val){
3030
auto muB = 5.7883818060E-5; // eV T^-1
3131
auto ge = 2.00231930436256;
3232
auto val2 = 2.0*val/(ge*muB);

src/magnitude/time.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ifndef INQ__MAGNITUDE__TIME
44
#define INQ__MAGNITUDE__TIME
55

6-
// Copyright (C) 2019-2023 Lawrence Livermore National Security, LLC., Xavier Andrade, Alfredo A. Correa
6+
// Copyright (C) 2019-2025 Lawrence Livermore National Security, LLC., Xavier Andrade, Alfredo A. Correa
77
//
88
// This Source Code Form is subject to the terms of the Mozilla Public
99
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -17,19 +17,19 @@ namespace magnitude {
1717

1818
struct time;
1919

20-
auto operator "" _atomictime(long double val){
20+
auto operator ""_atomictime(long double val){
2121
return inq::quantity<time>::from_atomic_units(val);
2222
}
2323

24-
auto operator "" _atomictimeunits(long double val){
24+
auto operator ""_atomictimeunits(long double val){
2525
return inq::quantity<time>::from_atomic_units(val);
2626
}
2727

28-
auto operator "" _atu(long double val){
28+
auto operator ""_atu(long double val){
2929
return inq::quantity<time>::from_atomic_units(val);
3030
}
3131

32-
auto operator "" _attosecond(long double val){
32+
auto operator ""_attosecond(long double val){
3333
return inq::quantity<time>::from_atomic_units(0.0413413733352975*val);
3434
}
3535

0 commit comments

Comments
 (0)