2
0
mirror of https://github.com/LCPQ/DEHam synced 2024-11-13 09:33:52 +01:00
DEHam/src/rank.irp.f

16 lines
285 B
FortranFixed
Raw Permalink Normal View History

2016-12-19 23:26:16 +01:00
BEGIN_PROVIDER [integer, rank]
&BEGIN_PROVIDER [integer, rank_16]
BEGIN_DOC
! calculates the rank of matrix
END_DOC
implicit none
rank=nt1*nt2
if(MOD(rank,16).eq.0)then
rank_16=rank
else
rank_16=rank+16-MOD(rank,16)
endif
END_PROVIDER