Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions modules/MM_Interface/mm_solv_constr.F
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ SUBROUTINE mm_solv_const(str,dt,taup,velp,tau0)

if(first)then
first=.false.
NCONST=0
do ia=1,NRAM
do ja=ia+1,min(ia+4,NRAM)
NCONST=NCONST+1
enddo
enddo
C pairs (ia,ja) with ia < ja <= min(ia+4,NRAM)
if(NRAM.ge.4)then
NCONST=4*NRAM-10
else
NCONST=NRAM*(NRAM-1)/2
endif
allocate(ABl(NCONST),STAT=ierr)
if(ierr/=0) call stopgm(procedureN,'allocation problem',
& __LINE__,'__file__')
Expand Down