DEHam/src/conv.irp.f

22 lines
602 B
FortranFixed
Raw Permalink Normal View History

subroutine conv(ideter,deti,dethi)
2018-01-29 00:10:47 +01:00
use iso_c_binding
2016-12-19 23:26:16 +01:00
implicit none
BEGIN_DOC
! this routine converts a detrminant in the old
! format into the new one and returns the determinant.
END_DOC
integer,INTENT(INOUT)::ideter(natomax)
2018-01-29 00:10:47 +01:00
integer(C_SIZE_T),INTENT(INOUT)::deti
integer(C_SIZE_T),INTENT(INOUT)::dethi
2016-12-19 23:26:16 +01:00
integer::i
deti=0
dethi=0
2016-12-19 23:26:16 +01:00
do i=1,natom
if(ideter(natom-i+1).eq.2 .and. ideter(natom-i+1).ne.3)then
deti=IBSET(deti,i-1)
2016-12-19 23:26:16 +01:00
elseif(ideter(natom-i+1).eq.3)then
dethi=IBSET(dethi,i-1)
2016-12-19 23:26:16 +01:00
endif
enddo
end