2D AMRCLAW
outval.f
Go to the documentation of this file.
1 c
2 c =======================================================================
3  subroutine outval(val,nvar,mitot,mjtot,mptr,outgrd,naux,aux)
4 c =======================================================================
5 c
6  use amr_module
7  implicit double precision (a-h,o-z)
8 
9  dimension val(nvar,mitot,mjtot)
10  dimension aux(naux,mitot,mjtot)
11  logical outgrd
12 
13 
14 c ::::::::::::::::::::::OUTVAL :::::::::::::::::::::::::::::::
15 c print solution and aux. variables to output.
16 c if cell outside domain, don't print soln. value - nothing
17 c currently in ghost cells.
18 c ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
19 c
20  if (.not. outgrd) go to 99
21  level = node(nestlevel,mptr)
22  hx = hxposs(level)
23  hy = hyposs(level)
24  cornx = rnode(cornxlo,mptr) - nghost*hx
25  corny = rnode(cornylo,mptr) - nghost*hy
26 c
27  do 25 j=nghost+1,mjtot-nghost
28  do 20 i=nghost+1,mitot-nghost
29 
30  x = cornx + hx*(dble(i)-.5d0)
31  y = corny + hy*(dble(j)-.5d0)
32  write(outunit,107) x,y,i,j,(val(ivar,i,j),ivar=1,nvar)
33  107 format(2hx=,f6.3,2hy=,f6.3,3h,i=,i3,3h,j=,i3,' a=',
34  * e25.15)
35 c * 5(e9.3,1x))
36  if (naux.gt.0) write(outunit,108) (aux(iaux,i,j),iaux=1,naux)
37  108 format(1x,'aux = ',7(e10.3,1x))
38 
39  20 continue
40  25 continue
41 
42  99 return
43  end
subroutine outval(val, nvar, mitot, mjtot, mptr, outgrd, naux, aux)
Definition: outval.f:3