Skip to content

Commit dc4f506

Browse files
committed
[wavecar.rs] make constants consistent with VASP's.
1 parent 5aa9f20 commit dc4f506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vasp_parsers/wavecar.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ use crate::{
5656

5757

5858
// Constants
59-
const PI: f64 = std::f64::consts::PI;
59+
const PI: f64 = 3.141592653589793238;
6060
const PIx2: f64 = PI * 2.0;
6161
//const H_PLANCK: f64 = 6.6260755E-34;
6262
//const HBAR: f64 = H_PLANCK / PIx2;
63-
const RY_TO_EV: f64 = 13.605693009;
63+
const RY_TO_EV: f64 = 13.605826;
6464
const AU_TO_A: f64 = 0.529177249;
6565
const AU_TO_DEBYE: f64 = 2.541746;
6666
const HBAR2D2ME: f64 = RY_TO_EV * AU_TO_A * AU_TO_A;

0 commit comments

Comments
 (0)