2D AMRCLAW
Functions/Subroutines
basic.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine basic (time, lst, lend)
 outputs basic information needed by the other graphics output routines (valout) at the given time, write the entire levellist, from level 1 to lfine, and the tree structure from level lst to lend. More...
 

Function/Subroutine Documentation

◆ basic()

subroutine basic (   time,
  lst,
  lend 
)

outputs basic information needed by the other graphics output routines (valout) at the given time, write the entire levellist, from level 1 to lfine, and the tree structure from level lst to lend.

Definition at line 9 of file basic.f.

References amr_module::hxposs, amr_module::hyposs, amr_module::levelptr, amr_module::lfine, amr_module::lstart, amr_module::nghost, amr_module::node, amr_module::nsize, amr_module::pltunit1, amr_module::rnode, amr_module::rsize, amr_module::xlower, amr_module::xupper, amr_module::ylower, and amr_module::yupper.

9 c
10  use amr_module
11  implicit double precision (a-h,o-z)
12 
13 c
14 c :::::::::::::::::::::: BASIC :::::::::::::::::::::::::
15 c basic = outputs basic information needed by the other graphics
16 c output routines (valout) at the given time,
17 c write the entire levellist, from level 1 to lfine,
18 c and the tree structure from level lst to lend.
19 c :::::::::::::::::::::::::::::;::::::::::::::::::::::::
20 c
21  write(pltunit1,100) time
22 100 format(8h*time = ,f10.5)
23  write(pltunit1,101) lfine, (lstart(i),i=1,lfine), nghost
24 101 format(10i6)
26 105 format(4e15.8)
27  write(pltunit1,102) lst, lend
28 102 format(2i6)
29  write(pltunit1,106)(hxposs(i),i=1,lfine)
30  write(pltunit1,106)(hyposs(i),i=1,lfine)
31 106 format(6e15.8)
32 c
33  level = lst
34  10 if (level .gt. lend) go to 99
35  mptr = lstart(level)
36  20 if (mptr .eq. 0) go to 30
37  write(pltunit1,103) mptr, (node(i,mptr),i=1,nsize)
38  write(pltunit1,104) (rnode(i,mptr),i=1,rsize)
39 103 format(10i7)
40 104 format(5e15.8)
41  mptr = node(levelptr,mptr)
42  go to 20
43  30 level = level + 1
44  go to 10
45 c
46  99 return
integer, parameter rsize
Definition: amr_module.f90:30
real(kind=8), dimension(maxlv) hyposs
Definition: amr_module.f90:193
real(kind=8), dimension(maxlv) hxposs
Definition: amr_module.f90:193
integer, dimension(nsize, maxgr) node
Definition: amr_module.f90:198
real(kind=8) xupper
Definition: amr_module.f90:231
real(kind=8), dimension(rsize, maxgr) rnode
Definition: amr_module.f90:193
real(kind=8) xlower
Definition: amr_module.f90:231
integer, parameter nsize
Definition: amr_module.f90:31
real(kind=8) ylower
Definition: amr_module.f90:231
real(kind=8) yupper
Definition: amr_module.f90:231
integer, dimension(maxlv) lstart
Definition: amr_module.f90:198
integer, parameter levelptr
node number (index) of next grid on the same level
Definition: amr_module.f90:35
integer nghost
Definition: amr_module.f90:232
The module contains the definition of a "node descriptor" as well as other global variables used duri...
Definition: amr_module.f90:21
integer, parameter pltunit1
Definition: amr_module.f90:291
integer lfine
Definition: amr_module.f90:198