2D AMRCLAW
outtre.f
Go to the documentation of this file.
1 c
2 c --------------------------------------------------------------
3 c
4  subroutine outtre(mlev,outgrd,nvar,naux)
5 c
6  use amr_module
7  implicit double precision (a-h,o-z)
8  logical outgrd
9 
10 c
11 c ::::::::::::::::::::::: OUTTRE :::::::::::::::::::::::::::::::::::
12 c
13 c outtre - output subtree
14 c input parameters:
15 c mlev - ptr to subtree to output i.e., start at level(mlev)
16 c outgrd - if true, output the values on the grid
17 c tree is output from 'level' to finest level.
18 c
19 c :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
20 c
21  write (outunit,1)
22 1 format(1x,14hthe subtree is)
23 c
24  level = node(nestlevel, mlev)
25 10 if (level .gt. lfine) go to 99
26  mptr = lstart(level)
27  20 if (mptr .eq. 0) go to 30
28  call outmsh(mptr,outgrd,nvar,naux)
29  mptr = node(levelptr, mptr)
30  go to 20
31  30 continue
32  write(outunit,2) numgrids(level), level,iregst(level),
33  1 jregst(level),iregend(level),jregend(level)
34  2 format(/,i5," grids at level ",i5," go from ",2i9," to",2i9,/)
35  level = level + 1
36  go to 10
37 c
38  99 return
39  end
40 c
41 c --------------------------------------------------------------
42 c
43  subroutine outlev(mlev,outgrd,nvar,naux)
44 c
45  use amr_module
46  implicit double precision (a-h,o-z)
47  logical outgrd
48 
49 c
50 c ::::::::::::::::::::::: OUTTRE :::::::::::::::::::::::::::::::::::
51 c
52 c outtre - output subtree
53 c input parameters:
54 c mlev - ptr to subtree to output i.e., start at level(mlev)
55 c outgrd - if true, output the values on the grid
56 c tree is output from 'level' to finest level.
57 c
58 c :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
59 c
60  write (outunit,1)
61 1 format(1x,"the partially built new subtree is:")
62 c
63  mptr = mlev
64  20 if (mptr .eq. 0) go to 30
65  call outmsh(mptr,outgrd,nvar,naux)
66  mptr = node(levelptr, mptr)
67  go to 20
68  30 continue
69 c
70  99 return
71  end
subroutine outlev(mlev, outgrd, nvar, naux)
Definition: outtre.f:43
subroutine outtre(mlev, outgrd, nvar, naux)
Definition: outtre.f:4
subroutine outmsh(mptr, outgrd, nvar, naux)
Definition: outmsh.f:4