24 subroutine flglvl2(nvar,naux,lcheck,nxypts,index,lbase,npts,
28 implicit double precision (a-h,o-z)
29 integer clock_start, clock_finish, clock_rate
40 call system_clock(clock_start,clock_rate)
41 call flagger(nvar,naux,lcheck,start_time)
42 call system_clock(clock_finish,clock_rate)
49 call system_clock(clock_start,clock_rate)
50 call bufnst2(nvar,naux,numbad,lcheck,lbase)
51 call system_clock(clock_finish,clock_rate)
54 nxypts = nxypts + numbad
60 if (nxypts .gt. 0)
then 82 implicit double precision (a-h, o-z)
97 nwords = (mibuff*mjbuff)/ibytesperdp+1
98 call reclam(locdomflags, nwords)
99 call reclam(locdom2, nwords)
100 call reclam(locamrflags,mibuff*mjbuff)
103 if (mptr .ne. 0)
go to 10
function igetsp(nwords)
Allocate contiguous space of length nword in main storage array alloc.
subroutine colate2(badpts, len, lcheck, nUniquePts, lbase)
Takes flagged points on all grids on level lcheck and pack their (i,j) cell centered indices into the...
subroutine freeflags(lcheck)
subroutine flglvl2(nvar, naux, lcheck, nxypts, index, lbase, npts, start_time)
Controls the error estimation/flagging bad pts.
subroutine reclam(index, nwords)
integer, parameter ndihi
global i index of right border of this grid
subroutine bufnst2(nvar, naux, numbad, lcheck, lbase)
After error estimation, need to tag the cell for refinement, buffer the tags, take care of level nest...
integer, dimension(nsize, maxgr) node
integer, parameter domflags_base
domain flags, indexed within base level (lbase) index space
integer, parameter storeflags
pointer to the address of memory storing flags for refinement on this grid
integer, parameter domflags2
domain flags, indexed within level-of-this-grid level index space
integer, parameter ndilo
global i index of left border of this grid
integer, parameter ndjlo
global j index of lower border of this grid
integer, dimension(maxlv) lstart
integer, parameter ndjhi
global j index of upper border of this grid
integer, parameter levelptr
node number (index) of next grid on the same level
The module contains the definition of a "node descriptor" as well as other global variables used duri...
subroutine flagger(nvar, naux, lcheck, start_time)
Set up for and call two routines that flag using (a) spatial gradients, or other user-specified crite...
real(kind=8), dimension(:), allocatable alloc