mirror of https://gitlab.com/QEF/q-e.git
Small addition to becmod, and some general cleaning of exx.f90. Courtesy of Lorenzo Paulatto.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9549 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
parent
39dabfb394
commit
b9b4a9be8f
|
@ -70,7 +70,7 @@ MODULE becmod
|
|||
END INTERFACE
|
||||
!
|
||||
PUBLIC :: bec_type, becp, allocate_bec_type, deallocate_bec_type, calbec, &
|
||||
beccopy, becscal
|
||||
beccopy, becscal, is_allocated_bec_type
|
||||
!
|
||||
CONTAINS
|
||||
!-----------------------------------------------------------------------
|
||||
|
@ -323,6 +323,24 @@ CONTAINS
|
|||
!
|
||||
END SUBROUTINE calbec_nc
|
||||
!
|
||||
!
|
||||
!-----------------------------------------------------------------------
|
||||
FUNCTION is_allocated_bec_type (bec) RESULT (isalloc)
|
||||
!-----------------------------------------------------------------------
|
||||
IMPLICIT NONE
|
||||
TYPE (bec_type) :: bec
|
||||
LOGICAL :: isalloc
|
||||
#ifdef __STD_F95
|
||||
isalloc = (associated(bec%r) .or. associated(bec%nc) .or. associated(bec%k))
|
||||
#else
|
||||
isalloc = (allocated(bec%r) .or. allocated(bec%nc) .or. allocated(bec%k))
|
||||
#endif
|
||||
RETURN
|
||||
!
|
||||
!-----------------------------------------------------------------------
|
||||
END FUNCTION is_allocated_bec_type
|
||||
!-----------------------------------------------------------------------
|
||||
!
|
||||
!-----------------------------------------------------------------------
|
||||
SUBROUTINE allocate_bec_type ( nkb, nbnd, bec, comm )
|
||||
!-----------------------------------------------------------------------
|
||||
|
|
2534
PW/src/exx.f90
2534
PW/src/exx.f90
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue