7 open (unit=40,
file=
'q0')
8 open (unit=41,
file=
'q1')
9 open (unit=42,
file=
'q2')
11 write(6,*)
'this is ia:',ia(1),ia(2),n
55 aa = aa+abs(acsr(jc+j0))
58 write(6,*)
'inf-norm of row is small',aa
64 ae = abs(acsr(jc+j0)/aa)
68 acsr(kc+k0) = acsr(jc+j0)
80 subroutine outbox(xmax,xmin,ymax,ymin,io)
110 write(6,6) n,name,(x(i,k),k=1,n15)
112 6
format(i4,1x,a9,
':',2x,30i3)
119 write(6,*)
'abd:',lda,m,n
121 write(6,6) (abd(i,j),i=lda,1,-1)
126 open(unit=40,
file=
'b0')
127 open(unit=41,
file=
'b1')
128 open(unit=42,
file=
'b2')
152 real x(lx1,ly1,lz1,lelt)
155 if (nelv.gt.20)
return
158 1
format(
'rarr ',3x,a13)
166 write(6,3) (x(k,j,iz,1),k=1,lx1),(x(k,j,iz,2),k=1,lx1)
179 write(6,6) (x(k,j,1,3),k=1,lx1),(x(k,j,1,4),k=1,lx1)
186 write(6,6) (x(k,j,1,1),k=1,lx1),(x(k,j,1,2),k=1,lx1)
189 3
format(4f6.2,5x,4f6.2)
190 6
format(6f8.4,5x,6f8.4)
198 integer x(lx1,ly1,lz1,lelt)
201 if (nelv.gt.20)
return
212 write(6,3) (x(k,j,iz,1),k=1,lx1),(x(k,j,iz,2),k=1,lx1)
225 write(6,6) (x(k,j,1,3),k=1,lx1),(x(k,j,1,4),k=1,lx1)
232 write(6,6) (x(k,j,1,1),k=1,lx1),(x(k,j,1,2),k=1,lx1)
243 integer x(lx2,ly2,lz2,lelt)
246 if (nelv.gt.20)
return
253 write(6,6) (x(k,j,1,3),k=1,lx2),(x(k,j,1,4),k=1,lx2)
260 write(6,6) (x(k,j,1,1),k=1,lx2),(x(k,j,1,2),k=1,lx2)
268 $ ,icperm,inverse,nonzero,nzero)
289 integer icperm(n),nonzero(2,0:1)
290 integer inverse(n),nzero(n)
297 data icalld,max_n /0,0/
301 write(6,*)
'HMT HACK in subroutine scsr_permute() ... pls fix!'
306 write(6,*)
'scsr_permute',n,acsr(1)
318 mbw_in = max(mbw_in,abs(i-j))
326 if (n.le.200) itype = -2
327 write(6,*)
'this is mnz:',mnz
335 write(6,*)
'scsr_permute :: sm_bandwidth_reduction failed',ierr
337 elseif (ierr.lt.0)
then
338 write(6,*)
'scsr_permute :: graph disconnected?',ierr
357 call izero(nzero,2*mnz)
366 nzero(ii) = nzero(ii)+1
368 nzero(jj) = nzero(jj)+1
377 ib(i+1) = ib(i)+nzero(i)
382 call icopy(nzero,ib,n)
392 bcsr(nzero(ii)) = acsr(jc)
393 nzero(ii) = nzero(ii)+1
396 bcsr(nzero(jj)) = acsr(jc)
397 nzero(jj) = nzero(jj)+1
409 call isort(jb(n1),nzero,n2)
411 call swap (bcsr(n1),nzero,n2,inverse)
414 if (icalld.le.10.or.mod(icalld,50).eq.0.or.n.gt.max_n)
then
416 write(6,*) ierr,mbw,mbw_in,n,mnz,
' New bandwidth'
417 if (n.gt.max_n) max_n = n
431 integer m,n,ia(1),ja(1)
441 real abd(lda,1),acsr(1)
442 integer n,ia(1),ja(1)
444 call rzero(abd,lda*n)
452 abd(klin,jlin) = acsr(jc)
484 1
format(/,
'SPB Mat:',a9,3x,
'n =',i3,
' m =',i3,/)
493 if (a.ne.0..and.j.le.n22)
write(s(j),6) a
495 write(6,22) (s(k),k=1,n22)
539 write(6,1) name9,n,nnz
540 1
format(/,
'CSR Mat:',a9,3x,
'n =',i3,3x,
'nnz =',i5,/)
551 if (a.ne.0..and.j.le.n22)
write(s(j),6) a
553 write(6,22) (s(k),k=1,n22)
subroutine icopy(a, b, n)
subroutine isort(a, ind, n)
subroutine scsr_to_spbm(abd, lda, acsr, ia, ja, n)
subroutine outbox(xmax, xmin, ymax, ymin, io)
subroutine out_abd(abd, lda, n, m)
subroutine scsr_to_spb(abd, lda, acsr, ia, ja, n)
subroutine compress_acsr(acsr, ia, ja, n)
subroutine ipermute(a, icperm, n, b)
subroutine out_csrmat(acsr, ia, ja, n, name9)
subroutine out_spbmat(abd, n, lda, name)
subroutine iarr_out(x, name)
subroutine iar2_out(x, name)
function mbw_csr(ia, ja, n)
subroutine out_acsr(acsr, ia, ja, n)
subroutine imout(x, m, n, name)
subroutine scsr_permute(bcsr, ib, jb, acsr, ia, ja, n, icperm, inverse, nonzero, nzero)
subroutine swap(b, ind, n, temp)
subroutine rarr_out(x, name13)