Skip to content

Commit

Permalink
Merge pull request wannier-developers#266 from qiaojunfeng/io_wallclo…
Browse files Browse the repository at this point in the history
…cktime

negative return value of io_wallclocktime
  • Loading branch information
jryates authored Apr 20, 2019
2 parents 9a27337 + 9725aae commit dd2db38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Moreover, it generates a new file `seedname_band.labelinfo.dat` with information

- Fix berry_task check for morb, and add check for kpoint_path block in parameters [[#258]](https://github.com/wannier-developers/wannier90/pull/258)

- Use 64 bit integer in io_wallclocktime [[#266]](https://github.com/wannier-developers/wannier90/pull/266)



Expand Down
2 changes: 2 additions & 0 deletions src/constants.F90
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ module w90_constants
private

!~~ GENERIC CONSTANTS ~~!
integer, parameter, public :: i64 = selected_int_kind(15)
!! 64bit integer
!aam_2012-04-11; fix to run on MacBook Air
integer, parameter, public :: dp = kind(1.0d0)
!! double precision
Expand Down
6 changes: 3 additions & 3 deletions src/io.F90
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,13 @@ function io_wallclocktime()
! Returns elapsed wall clock time in seconds since its first call !
! !
!===================================================================
use w90_constants, only: dp
use w90_constants, only: dp, i64
implicit none

real(kind=dp) :: io_wallclocktime

integer :: c0, c1
integer :: rate
integer(kind=i64) :: c0, c1
integer(kind=i64) :: rate
logical :: first = .true.
save first, rate, c0

Expand Down

0 comments on commit dd2db38

Please sign in to comment.