Skip to content

Commit

Permalink
Use stdout for printing
Browse files Browse the repository at this point in the history
  • Loading branch information
nscolonna committed Feb 29, 2024
1 parent 6486e0e commit 84c4a56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CPV/pseudopot_sub.f90
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ SUBROUTINE build_pstab_x( )
USE pseudopotential, ONLY : vps_sp, dvps_sp, xgtab
USE local_pseudo, ONLY : vps0
USE betax, ONLY : mmx
USE io_global, ONLY : stdout

IMPLICIT NONE

Expand Down Expand Up @@ -279,7 +280,7 @@ SUBROUTINE build_pstab_x( )
!IF ( upf(is)%tcoulombp .and. .not.allocated(upf(is)%vloc) ) then
! NsC: Not sure about the IF condition on the ASSOCIATED statement...
IF ( upf(is)%tcoulombp .AND. .NOT. ASSOCIATED(upf(is)%vloc) ) then
WRITE(*, '(3x, "COULOMB PSEUDO Z/r; Z =",I4 )') INT(zv(is))
WRITE(stdout, '(3x, "COULOMB PSEUDO Z/r; Z =",I4 )') INT(zv(is))
! ugly workaround for 1/r potentials
ALLOCATE(upf(is)%vloc(rgrid(is)%mesh))
upf(is)%vloc(:) = - 2.0_dp* zv(is) / rgrid(is)%r(:)
Expand Down

0 comments on commit 84c4a56

Please sign in to comment.