Skip to content

Commit 142515a

Browse files
committed
Fix failing tests
1. Use of unitialized variable `equant` in analysis.F90 caused any non-PI test to fail when compiled with floating-point checks (uncovered in PR #50). Fortunately, this bug did not really affect anything because we don't currently print equant anywhere. 2. Non-significant numerical difference in the HARMON test, which started showing up after a fix to numdiff.py in 4620895 in #51.
1 parent 6b39d82 commit 142515a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/abin.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ program abin_dyn
3838
#endif
3939
implicit none
4040
! TODO: These should probably be defined and stored in some module, not here
41-
real(DP) :: dt=20.0d0, eclas, equant
41+
real(DP) :: dt=20.0d0, eclas=0.0d0, equant=0.0d0
4242
integer :: itrj
4343
LOGICAL :: file_exists
4444
integer,dimension(8) :: time_start, time_end

tests/HARMON/restart.xyz.10.ref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
2.5598525275831154E-002 4.1583977679096086E-003
6868
0.0000000000000000
6969
6.5528461252687033E-005 1.0644896653503255E-005 1.7292388099163244E-006
70-
150.00002609814032 369.02517364208910
70+
0.1500000260981403E+03 0.3690251736420891E+03
7171
15.000078527454571
7272
3.7721620805381687E-007
7373
1.7231261869251429E-007

0 commit comments

Comments
 (0)