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:
sbinnie 2012-10-18 14:48:38 +00:00
parent 39dabfb394
commit b9b4a9be8f
2 changed files with 1255 additions and 1299 deletions

View File

@ -70,7 +70,7 @@ MODULE becmod
END INTERFACE END INTERFACE
! !
PUBLIC :: bec_type, becp, allocate_bec_type, deallocate_bec_type, calbec, & PUBLIC :: bec_type, becp, allocate_bec_type, deallocate_bec_type, calbec, &
beccopy, becscal beccopy, becscal, is_allocated_bec_type
! !
CONTAINS CONTAINS
!----------------------------------------------------------------------- !-----------------------------------------------------------------------
@ -323,6 +323,24 @@ CONTAINS
! !
END SUBROUTINE calbec_nc 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 ) SUBROUTINE allocate_bec_type ( nkb, nbnd, bec, comm )
!----------------------------------------------------------------------- !-----------------------------------------------------------------------

File diff suppressed because it is too large Load Diff